Our system has two Ethernet port and both are configured using DHCP.
To get assigned Gateway information, we are using ‘netstat –rn’ command. As we observed in below routing table, we are finding gateway information only for eth0. We are not finding the entry for eth1.
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.207.145.1 0.0.0.0 UG 0 0 0 eth0
10.207.145.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.207.145.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
How routing table gets updated in case of DHCP?
What is the reason the routing table is not updated with gateway detail for eth1 when Ethernet ports are configured in DHCP?
Do we need to take some special care while configuring Ethernet using DHCP so that the routing table will updated for eth0 and eth1?