|
@ -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:
 |
|
|
permissions: '0755'
 |
|
|
permissions: '0755'
 |
|
|
content: |-
 |
|
|
content: |-
 |
|
|
#!/bin/sh -e
 |
|
|
#!/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
 |
|
|
exit 0
 |
|
|

 |
|
|

 |
|
|
- path: /etc/resolv.conf
 |
|
|
- path: /etc/resolv.conf
 |
|
|
owner: root:root
 |
|
|
owner: root:root
 |
|
|
permissions: '0644'
 |
|
|
permissions: '0644'
 |
|
|
content: |
 |
|
|
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> |
|
|
nameserver 8.8.8.8</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
<interface id="0" name="eth1"/> |
|
|
<interface id="0" name="eth1"/> |
|
@ -591,11 +560,6 @@ write_files:
 |
|
|
permissions: '0755'
 |
|
|
permissions: '0755'
 |
|
|
content: |-
 |
|
|
content: |-
 |
|
|
!/bin/sh -e
 |
|
|
!/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
 |
|
|
exit 0
 |
|
|

 |
|
|

 |
|
|
- path: /etc/resolv.conf
 |
|
|
- path: /etc/resolv.conf
 |
|
@ -662,11 +626,6 @@ write_files:
 |
|
|
permissions: '0755'
 |
|
|
permissions: '0755'
 |
|
|
content: |-
 |
|
|
content: |-
 |
|
|
!/bin/sh -e
 |
|
|
!/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
 |
|
|
exit 0
 |
|
|

 |
|
|

 |
|
|
- path: /etc/resolv.conf
 |
|
|
- path: /etc/resolv.conf
 |
|
@ -733,8 +692,6 @@ write_files:
 |
|
|
permissions: '0755'
 |
|
|
permissions: '0755'
 |
|
|
content: |-
 |
|
|
content: |-
 |
|
|
!/bin/sh -e
 |
|
|
!/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
 |
|
|
exit 0
 |
|
|

 |
|
|

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