Linux Machines as Routers – Network Scenario

The scenario has 3 desktops and 2 routers, remember that all of then are Linux computers.

  • Topology

topology1

  • Configurations

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: