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?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
routing table updation for gateway in DHCP configuration
Re: routing table updation for gateway in DHCP configuration
Consult the manpage for dhcp-options(5), after You'll read the RFC3442, which describes the DHCP protocol option 121.
Regards.
Regards.
Odi profanum vulgus
Re: routing table updation for gateway in DHCP configuration
Thanks for the replay
I will go through the provided detail for detail understanding.
Meanwhile I came across one quick query as below.
During static configuration, we used to add gateway entry in routing table using route “add default gw xx.xx.xx.xx ethx” command
So during DHCP configuration, do we need to use the same command to add gateway entry into routing table?
I will go through the provided detail for detail understanding.
Meanwhile I came across one quick query as below.
During static configuration, we used to add gateway entry in routing table using route “add default gw xx.xx.xx.xx ethx” command
So during DHCP configuration, do we need to use the same command to add gateway entry into routing table?