07.46 -
No comments
Belajar Lebih Jauh Subnetting dan Routing dengan kasus tertentu
buatlah host, swithch dan routernya
#SWITCH
uml_switch -unix s1 > /dev/null < /dev/null &
uml_switch -unix s2 > /dev/null < /dev/null &
uml_switch -unix s3 > /dev/null < /dev/null &
uml_switch -unix s4 > /dev/null < /dev/null &
uml_switch -unix s5 > /dev/null < /dev/null &
uml_switch -unix s6 > /dev/null < /dev/null &
uml_switch -unix s7 > /dev/null < /dev/null &
uml_switch -unix s8 > /dev/null < /dev/null &
uml_switch -unix s9 > /dev/null < /dev/null &
#HOST
xterm -T tp -e linux ubd0=tp,uml umid=tp eth0=daemon,,,s9 &
xterm -T gm -e linux ubd0=gm,uml umid=gm eth0=daemon,,,s8 &
xterm -T taman_bungkul -e linux ubd0=taman_bungkul,uml umid=taman_bungkul eth0=daemon,,,s5 &
xterm -T kebun_bibit -e linux ubd0=kebun_bibit,uml umid=kebun_bibit eth0=daemon,,,s2 &
xterm -T sutos -e linux ubd0=sutos,uml umid=sutos eth0=daemon,,,s1 &
xterm -T plaza_surabaya -e linux ubd0=plaza_surabaya,uml umid=plaza_surabaya eth0=daemon,,,s3 &
#ROUTER
xterm -T balai_kota -e linux ubd0=balai_kota,uml umid=balai_kota eth0=daemon,,,s3 eth1=daemon,,,s2 &
xterm -T siola -e linux ubd0=siola,uml umid=siola eth0=daemon,,,s2 eth1=daemon,,,s1 &
xterm -T gubeng -e linux ubd0=gubeng,uml umid=gubeng eth0=daemon,,,s4 eth1=daemon,,,s5 &
xterm -T ampel -e linux ubd0=ampel,uml umid=ampel eth0=daemon,,,s7 eth1=daemon,,,s8 eth2=daemon,,,s9 &
xterm -T monkasel -e linux ubd0=monkasel,uml umid=monkasel eth0=daemon,,,s3 eth1=daemon,,,s4 eth2=daemon,,,s6 &
xterm -T tugu_pahlawan -e linux ubd0=tugu_pahlawan,uml umid=tugu_pahlawan eth0=daemon,,,s7 eth1=daemon,,,s6 eth2=tuntap,,,10.151.70.77 &
#SWITCH
uml_switch -unix s1 > /dev/null < /dev/null &
uml_switch -unix s2 > /dev/null < /dev/null &
uml_switch -unix s3 > /dev/null < /dev/null &
uml_switch -unix s4 > /dev/null < /dev/null &
uml_switch -unix s5 > /dev/null < /dev/null &
uml_switch -unix s6 > /dev/null < /dev/null &
uml_switch -unix s7 > /dev/null < /dev/null &
uml_switch -unix s8 > /dev/null < /dev/null &
uml_switch -unix s9 > /dev/null < /dev/null &
#HOST
xterm -T tp -e linux ubd0=tp,uml umid=tp eth0=daemon,,,s9 &
xterm -T gm -e linux ubd0=gm,uml umid=gm eth0=daemon,,,s8 &
xterm -T taman_bungkul -e linux ubd0=taman_bungkul,uml umid=taman_bungkul eth0=daemon,,,s5 &
xterm -T kebun_bibit -e linux ubd0=kebun_bibit,uml umid=kebun_bibit eth0=daemon,,,s2 &
xterm -T sutos -e linux ubd0=sutos,uml umid=sutos eth0=daemon,,,s1 &
xterm -T plaza_surabaya -e linux ubd0=plaza_surabaya,uml umid=plaza_surabaya eth0=daemon,,,s3 &
#ROUTER
xterm -T balai_kota -e linux ubd0=balai_kota,uml umid=balai_kota eth0=daemon,,,s3 eth1=daemon,,,s2 &
xterm -T siola -e linux ubd0=siola,uml umid=siola eth0=daemon,,,s2 eth1=daemon,,,s1 &
xterm -T gubeng -e linux ubd0=gubeng,uml umid=gubeng eth0=daemon,,,s4 eth1=daemon,,,s5 &
xterm -T ampel -e linux ubd0=ampel,uml umid=ampel eth0=daemon,,,s7 eth1=daemon,,,s8 eth2=daemon,,,s9 &
xterm -T monkasel -e linux ubd0=monkasel,uml umid=monkasel eth0=daemon,,,s3 eth1=daemon,,,s4 eth2=daemon,,,s6 &
xterm -T tugu_pahlawan -e linux ubd0=tugu_pahlawan,uml umid=tugu_pahlawan eth0=daemon,,,s7 eth1=daemon,,,s6 eth2=tuntap,,,10.151.70.77 &
konfigurasi untuk tiap host dan router
tugu pahlawan
================================================================
auto eth0
iface eth0 inet static
address 192.0.144.1
netmask 255.255.240.0
auto eth2
iface eth2 inet static
address 10.151.70.78
netmask 255.255.255.252
gateway 10.151.70.77
up route add -net 10.151.71.152 netmask 255.255.255.248 gw 192.0.144.2
up route add -net 192.1.0.0 netmask 255.255.128.0 gw 192.1.16.2
================================================================
GM
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.151.71.158
netmask 255.255.255.252
gateway 10.151.71.157
================================================================
TP
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.151.71.154
netmask 255.255.255.252
gateway 10.151.71.153
================================================================
GUBENG
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.1.40.1
netmask 255.255.252.0
auto eth0
iface eth0 inet static
address 192.1.36.2
netmask 255.255.252.0
up route add -net 192.1.48.0 netmask 255.255.240.0 gw 192.1.36.1
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.1.36.1
======================================================================
monkasel
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.52.1
netmask 255.255.252.0
auto eth1
iface eth1 inet static
address 192.1.36.1
netmask 255.255.252.0
auto eth2
iface eth2 inet static
address 192.1.16.2
netmask 255.255.240.0
up route add -net 192.1.56.0 netmask 255.255.252.0 gw 192.1.52.3
up route add -net 192.1.40.0 netmask 255.255.252.0 gw 192.1.36.2
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.1.16.1
#up route add -net 192.0.128.0 netmask 255.255.128.0 gw 192.1.16.1
======================================================================
balai kota
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.52.3
netmask 255.255.252.0
auto eth1
iface eth1 inet static
address 192.1.57.1
netmask 255.255.255.0
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.1.52.1
up route add -net 192.1.58.0 netmask 255.255.255.0 gw 192.1.57.3
======================================================================
sutos
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.58.2
netmask 255.255.255.0
gateway 192.1.58.1
======================================================================
plaza surabaya
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.52.2
netmask 255.255.252.0
gateway 192.1.52.1
===================================================================
siola
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.57.3
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 192.1.58.1
netmask 255.255.255.0
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.1.57.1
===================================================================
taman_bungkul
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.40.2
netmask 255.255.252.0
gateway 192.1.40.1
================================================================
ampel
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.0.144.2
netmask 255.255.240.0
auto eth1
iface eth1 inet static
address 192.0.176.1
netmask 255.255.240.0
auto eth2
iface eth2 inet static
address 192.0.160.1
netmask 255.255.240.0
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.0.144.1
===================================================================
kebun_bibit
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.1.57.2
netmask 255.255.255.0
gateway 192.1.57.1
0 komentar:
Posting Komentar