Browse Source

Final, No Interface config on Clients and Servers

master
anxietypb 8 years ago
parent
commit
ef073e5390
  1. 47
      GIT-VIRL-HS-Fulda/Kommunikationsnetze und -protokolle (Bachelor AI)/kommprot-lab3_b-wanem.virl

47
GIT-VIRL-HS-Fulda/Kommunikationsnetze und -protokolle (Bachelor AI)/kommprot-lab3_b-wanem.virl

@ -69,12 +69,6 @@ interface GigabitEthernet0/1
speed auto
 speed auto
no shutdown
 no shutdown
!
 !
interface GigabitEthernet0/2
description to Rechnungswesen
ip address 192.168.100.1 255.255.255.128
duplex full
speed auto
no shutdown
!
 !
!
 !
!
 !
@ -158,14 +152,7 @@ interface GigabitEthernet0/1
duplex full
 duplex full
speed auto
 speed auto
no shutdown
 no shutdown
!
interface GigabitEthernet0/2
description to ServerLAN
ip address 192.168.32.1 255.255.255.0
ip ospf cost 1
duplex full
speed auto
no shutdown

!
 !
!
 !
!
 !
@ -449,20 +436,8 @@ write_files:
content: |-
 content: |-
#!/bin/sh -e
 #!/bin/sh -e
echo "nameserver 8.8.8.8" >/etc/resolv.conf
 echo "nameserver 8.8.8.8" >/etc/resolv.conf
screen -dmS install-webserver /tmp/install-webserver &
exit 0
- path: /tmp/install-webserver
owner: root:root
permissions: '0755'
content: |-
#!/bin/bash
echo "Waiting for internet connectivity"
until echo -n "." && ping -c1 archive.ubuntu.com &>/dev/null; do :; done
apt-get -y update
apt-get -y install apache2
echo "<h1>Willkommen auf Server-B!</h1>" >/var/www/html/index.html
read -p "Press any key..."
exit 0
 exit 0

</entry> </entry>
</extensions> </extensions>
<interface id="0" name="eth1"/> <interface id="0" name="eth1"/>
@ -521,18 +496,12 @@ write_files:&#xD;
permissions: '0755'&#xD; permissions: '0755'&#xD;
content: |-&#xD; content: |-&#xD;
#!/bin/sh -e&#xD; #!/bin/sh -e&#xD;
ifconfig eth1 up 192.168.32.100 netmask 255.255.254.0&#xD;
route del default&#xD;
route add default gw 192.168.32.1&#xD;
exit 0&#xD; exit 0&#xD;
&#xD; &#xD;
- path: /etc/resolv.conf&#xD; - path: /etc/resolv.conf&#xD;
owner: root:root&#xD; owner: root:root&#xD;
permissions: '0644'&#xD; permissions: '0644'&#xD;
content: |&#xD; content: |&#xD;
# ttyS0 - getty&#xD;
# This service maintains a getty on ttyS0 from the point the system is&#xD;
# started until it is shut down again.&#xD;
nameserver 8.8.8.8</entry> nameserver 8.8.8.8</entry>
</extensions> </extensions>
<interface id="0" name="eth1"/> <interface id="0" name="eth1"/>
@ -591,11 +560,6 @@ write_files:&#xD;
permissions: '0755'&#xD; permissions: '0755'&#xD;
content: |-&#xD; content: |-&#xD;
!/bin/sh -e&#xD; !/bin/sh -e&#xD;
ifconfig eth1 up 192.168.1.100 netmask 255.255.255.0&#xD;
route del default&#xD;
route add default gw 192.168.1.1&#xD;
arp -i eth1 -s 192.168.1.1 aa:aa:aa:aa:aa:aa&#xD;
echo "alias unbug='sudo arp -d 192.168.1.1'" &gt;&gt;/home/cisco/.bashrc&#xD;
exit 0&#xD; exit 0&#xD;
&#xD; &#xD;
- path: /etc/resolv.conf&#xD; - path: /etc/resolv.conf&#xD;
@ -662,11 +626,6 @@ write_files:&#xD;
permissions: '0755'&#xD; permissions: '0755'&#xD;
content: |-&#xD; content: |-&#xD;
!/bin/sh -e&#xD; !/bin/sh -e&#xD;
ifconfig eth1 up 192.168.1.100 netmask 255.255.255.0&#xD;
route del default&#xD;
route add default gw 192.168.1.1&#xD;
arp -i eth1 -s 192.168.1.1 aa:aa:aa:aa:aa:aa&#xD;
echo "alias unbug='sudo arp -d 192.168.1.1'" &gt;&gt;/home/cisco/.bashrc&#xD;
exit 0&#xD; exit 0&#xD;
&#xD; &#xD;
- path: /etc/resolv.conf&#xD; - path: /etc/resolv.conf&#xD;
@ -733,8 +692,6 @@ write_files:&#xD;
permissions: '0755'&#xD; permissions: '0755'&#xD;
content: |-&#xD; content: |-&#xD;
!/bin/sh -e&#xD; !/bin/sh -e&#xD;
ifconfig eth1 up 192.168.100.100 netmask 255.255.255.128&#xD;
route add default gw 192.168.100.1&#xD;
exit 0&#xD; exit 0&#xD;
&#xD; &#xD;
- path: /etc/resolv.conf&#xD; - path: /etc/resolv.conf&#xD;

Loading…
Cancel
Save