You are on page 1of 1

Subnet 1:

192.168.1.0/24
DHCP: 192.168.1.1
Int0 GW Router: 192.168.1.254

Subnet 2:
192.168.2.0/24
DNS : 192.168.2.1
Int1 GW Router: 192.168.2.254
Subnet 3:
PC1 : 192.168.3.1
PC2 : 192.168.3.3
Int2 GW Router: 192.168.3.254

route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.254


route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.254
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254

****************************************************************
For example network 192.168.55.0/24 available via 192.168.1.254:
# ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1
****************************************************************
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

You might also like