Skip to content
Snippets Groups Projects
Commit ef073e53 authored by anxietypb's avatar anxietypb
Browse files

Final, No Interface config on Clients and Servers

parent 09b02351
No related branches found
No related tags found
No related merge requests found
......@@ -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:&#xD;
permissions: '0755'&#xD;
content: |-&#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;
&#xD;
- path: /etc/resolv.conf&#xD;
owner: root:root&#xD;
permissions: '0644'&#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>
</extensions>
<interface id="0" name="eth1"/>
......@@ -591,11 +560,6 @@ write_files:&#xD;
permissions: '0755'&#xD;
content: |-&#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;
&#xD;
- path: /etc/resolv.conf&#xD;
......@@ -662,11 +626,6 @@ write_files:&#xD;
permissions: '0755'&#xD;
content: |-&#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;
&#xD;
- path: /etc/resolv.conf&#xD;
......@@ -733,8 +692,6 @@ write_files:&#xD;
permissions: '0755'&#xD;
content: |-&#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;
&#xD;
- path: /etc/resolv.conf&#xD;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment