|
|
@ -69,12 +69,6 @@ interface GigabitEthernet0/1
 |
|
|
|
speed auto
 |
|
|
|
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
 |
|
|
|
speed auto
 |
|
|
|
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: |-
 |
|
|
|
#!/bin/sh -e
 |
|
|
|
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
 |
|
|
|

 |
|
|
|
</entry> |
|
|
|
</extensions> |
|
|
|
<interface id="0" name="eth1"/> |
|
|
@ -521,18 +496,12 @@ write_files:
 |
|
|
|
permissions: '0755'
 |
|
|
|
content: |-
 |
|
|
|
#!/bin/sh -e
 |
|
|
|
ifconfig eth1 up 192.168.32.100 netmask 255.255.254.0
 |
|
|
|
route del default
 |
|
|
|
route add default gw 192.168.32.1
 |
|
|
|
exit 0
 |
|
|
|

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

 |
|
|
|
- path: /etc/resolv.conf
 |
|
|
@ -662,11 +626,6 @@ write_files:
 |
|
|
|
permissions: '0755'
 |
|
|
|
content: |-
 |
|
|
|
!/bin/sh -e
 |
|
|
|
ifconfig eth1 up 192.168.1.100 netmask 255.255.255.0
 |
|
|
|
route del default
 |
|
|
|
route add default gw 192.168.1.1
 |
|
|
|
arp -i eth1 -s 192.168.1.1 aa:aa:aa:aa:aa:aa
 |
|
|
|
echo "alias unbug='sudo arp -d 192.168.1.1'" >>/home/cisco/.bashrc
 |
|
|
|
exit 0
 |
|
|
|

 |
|
|
|
- path: /etc/resolv.conf
 |
|
|
@ -733,8 +692,6 @@ write_files:
 |
|
|
|
permissions: '0755'
 |
|
|
|
content: |-
 |
|
|
|
!/bin/sh -e
 |
|
|
|
ifconfig eth1 up 192.168.100.100 netmask 255.255.255.128
 |
|
|
|
route add default gw 192.168.100.1
 |
|
|
|
exit 0
 |
|
|
|

 |
|
|
|
- path: /etc/resolv.conf
 |
|
|
|