Hiya,
A little clarification is in order. I have 4 subnets, 172.20.0.0, 172.20.1.0, 172.20.2.0 and 172.20.3.0. At the moment, the 0 range is where all the admin staff are set up with static IPs, and the rest inhabit the 2 and 3 ranges with DHCP. Unfortunately, we've now hit 400 PCs which is slowing everything down hence the sub-netting (my first shot at it in the real world).
I tried to set the 0 range up with a 255.255.255.0 mask but Centos (which I originally tried) didn't like it although Ubuntu doesn't seem to object. After trying it out I found this tutorial -
http://www.comptechdoc.org/os/linux/...ugrouting.html and tried to base it on that although I've obviously bollocks'd it up.
In "man route" it specifies that * is entered in the gateway address column if no gateway is specified but I get 0.0.0.0 so I assume this is the same thing.
Anyway, I drew up a table of the three networks matching it to the example and entered them in order and this is what I got:
172.20.3.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth3
172.20.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
172.20.0.7 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
172.20.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
172.20.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
172.20.3.0 172.20.3.1 255.255.255.0 UG 0 0 0 eth3
172.20.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
172.20.2.0 172.20.2.1 255.255.255.0 UG 0 0 0 eth2
172.20.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.20.1.0 172.20.1.1 255.255.255.0 UG 0 0 0 eth1
172.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.20.0.0 172.20.0.7 255.255.255.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.20.0.1 0.0.0.0 UG 0 0 0 eth0
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:1b:21:21:cd:68 brd ff:ff:ff:ff:ff:ff
inet 172.20.0.7/24 brd 172.20.0.255 scope global eth0
inet6 fe80::21b:21ff:fe21:cd68/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:1b:21:21:02:8b brd ff:ff:ff:ff:ff:ff
inet 172.20.1.1/24 brd 172.20.1.255 scope global eth1
inet6 fe80::21b:21ff:fe21:28b/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:1b:21:21:02:8a brd ff:ff:ff:ff:ff:ff
inet 172.20.2.1/24 brd 172.20.2.255 scope global eth2
inet6 fe80::21b:21ff:fe21:28a/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:14:85:e4:37:96 brd ff:ff:ff:ff:ff:ff
inet 172.20.3.1/24 brd 172.20.3.255 scope global eth3
inet6 fe80::214:85ff:fee4:3796/64 scope link
valid_lft forever preferred_lft forever
Still got the sma ehting though.
Cheers.