Wednesday, March 10, 2010

Configurasi Linux as rooter – Network Scenario

Pokok permasalahannya 3 desktop and 2 routers, computer memakai OS Linux.

topology
Desktop A
route add -net 172.17.0.0 gw 11.0.0.254
route add -net 192.168.2.0 netmask 255.255.255.0 gw 11.0.0.254

Desktop B

route add -net 11.0.0.0 netmask 255.0.0.0 gw 172.17.0.254
route add -net 192.168.2.0 netmas, 255.255.255.0 gw 172.17.254.254

Desktop C

route add -net 172.17.0.0 netmask 255.255.0.0 gw 192.168.2.254
route add -net 11.0.0.0 gw 192.168.2.254

Router ABC

eth0 172.17.0.254/16
eth0:1 11.0.0.254/8
echo “1″ > /proc/sys/net/ipv4/ip_forward
route add -net 192.168.2.0 gw 172.17.254.254

ROUTER BCA

eth0 172.17.254.254/16
eth0:1 192.168.2.254/24
echo “1″ > /proc/sys/net/ipv4/ip_forward
route add -net 11.0.0.0 netmask 255.0.0.0 gw 172.17.0.254

No comments: