dhclient - routing tables truncated.
Hi,
I have 3 cards on my computer and I am connected through one of them through internet. I am trying to test whether I can run dhcpd and dhclient on them.
dhcpd server is running on eth0.
This is my initial routing table.
Destination Gateway Genmask Flags MSS Window irtt Iface
x.x.x.0 * 255.255.255.0 U 0 0 0 eth0
x.x.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default x.x.x.x 0.0.0.0 UG 0 0 0 eth0
But after I run dhclient eth1, my table changes its default and everything.
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
x.x.x.0 * 255.255.255.0 U 0 0 0 eth1
x.x.x.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default x.x.x.x 0.0.0.0 UG 0 0 0 eth1
but the ip address is assigned properly.
But when i do dhclient eth2, the routing table remains same and it shows the eth2 is up but no ip address is assigned. Also, the client gives an message:
SIOCADDRT: File exists.
And if I remove the two new devices added, the routing table is truncated to just two entries.
I want to know why the ip address is not assigned to the second device and why my routing table is all messed up. Any help would be appreciated.
Thanks,
Virendra.
|