3 host static routing lab
From Cloonix wiki
Please create a cloonix lab to the following specification.
- 3 routers, 2 vlans
- router 1 - eth0 192.168.100.10/24 - eth0 vlan1
- router 2 - eth0 192.168.100.20/24 - eth0 vlan1
- router 2 - eth1 192.168.200.20/24 - eth1 vlan2
- router 3 - eth0 192.168.200.30/24 - eth1 vlan2
on router01
- route add -net 192.168.200.0/24 gw 192.168.100.20
on router03
- route add -net 192.168.100.0/24 gw 192.168.200.20
router02 (make sure firewall / forwarding is enabled)
- cat /proc/sys/net/ipv4/ip_forward
- iptables -F
- iptables -P INPUT ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -P FORWARD ACCEPT
