1838263 Members
3619 Online
110125 Solutions
New Discussion

Default Router

 
Vivek_3
Advisor

Default Router

Hi,

I have confusion regarding default router or dynamic routing. I have defined a default router entry in /etc/rc.config.d/netconf file. But when I rebooted my system I found that I have lost my network connectivity with other system.

So when I was trying to find some reason I found followings suspicious things:

I don?t ( netstat ?rn) have default router entry in my routing table even though my /etc/rc.config.d/netconf file has a entry for default router.

Second thing I found that in my /etc/rc.config.d/netconf file dynamic routing was set to on (GATED=1). I am not using dynamic routing.

Does it create any problem with default router? Because everything is fine after I added default entry to my router table.

I need to find out cause of the problem, so please do reply.

Thanks
vivek
6 REPLIES 6
Harinath N
Frequent Advisor

Re: Default Router

Hi Vivek,

First thing, Since Dynamic Routing is not being used, you can comment GATED value or make it 0 in netconf file.

After doing so, still if the gateway problem continues, check for the Route Count value in the netconf file. It should be set to 1.

For me whenever I was rebooting the server, the default gateway was missing. Later we found that there was multiple entry of Route Count mentioned 1 as well as 0 in the last line of the file.

So check for the proper Route Count value in
the netconf file.

Hope this would help you.

Regards,
N.Harinath
T G Manikandan
Honored Contributor

Re: Default Router

Hello,
In the netconf file modify the entries.
change your GATED value to 0.
Enter your gateway ipaddress.
Change ROUTE_COUNT to 1.
ROUTE_GATEWAY[0]=xx.xx.xx.xx
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]="default" .
Then do a reboot.
OR

If you want to add the route entry on the fly
Then,
#route add net default xx.xx.xx.xx 1

OR

Even you can use
#set_parms addl_netwrk to configure your gateway.

Thanks
GManikandan
Praveen Bezawada
Respected Contributor

Re: Default Router

Hi

As you seem to have lost the network connectibity after reboot it will help to check the /etc/rc.log to check if network startup scripts were executed without errors.

..BPK...
Ravi_8
Honored Contributor

Re: Default Router

Hi,
#set_parms initial
once you set all the values including the gateway, your default gateway will remain unchanged
never give up
Vivek_3
Advisor

Re: Default Router

Hi,

Thanks to all of you for putting your time here.

when i rebooted my system After Changing GATED=0 evryting is fine.

thanks
vivek
rick jones
Honored Contributor

Re: Default Router

a count of 1 should be used when the gateway is a separate system. if you are using your own local IP address as the default route (aka proxy arp), the count should be 0
there is no rest for the wicked yet the virtuous have no pillows