LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default gateway (https://www.linuxquestions.org/questions/linux-newbie-8/default-gateway-945979/)

amartlk 05-20-2012 05:29 AM

default gateway
 
Hi

I have centos 5.3 installed i have 2 network interface eth0 connected to local lan and eth1 to isp line when i make command as route add default gw 172.16.1.19 eth0 then this default gateway is added but after some it automatically disappers .

Regards
Amar

Doc CPU 05-20-2012 05:50 AM

Hi there,

Quote:

Originally Posted by amartlk (Post 4683073)
I have centos 5.3 installed i have 2 network interface eth0 connected to local lan and eth1 to isp line when i make command as route add default gw 172.16.1.19 eth0 then this default gateway is added but after some it automatically disappers.

is your computer using DHCP, so that the network interface gets reconfigured by the DHCP server from time to time?

[X] Doc CPU

amartlk 05-21-2012 12:32 AM

Hi

Thanks for reply , no my computer is not using any DHCP

Tinkster 05-21-2012 02:57 AM

Are you running/using network mangler, errrh, manager?

amartlk 05-21-2012 03:14 AM

Hi

No i am not using any network mangler

Satyaveer Arya 05-21-2012 03:26 AM

Your computer is not taking IP from DHCP, means you have to make static route. You're not using any network manager. So, you have to add a static route. Static route configuration is stored in a /etc/sysconfig/network-scripts/route-interface file, whereas interface is like eth0, eth1, etc.
And to add a static route you can take reference from here.


All times are GMT -5. The time now is 12:15 PM.