LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2012, 05:29 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
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
 
Old 05-20-2012, 05:50 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by amartlk View Post
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
 
Old 05-21-2012, 12:32 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Thanks for reply , no my computer is not using any DHCP
 
Old 05-21-2012, 02:57 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Are you running/using network mangler, errrh, manager?
 
Old 05-21-2012, 03:14 AM   #5
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

No i am not using any network mangler
 
Old 05-21-2012, 03:26 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.

Last edited by Satyaveer Arya; 05-21-2012 at 03:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
normal default gateway reapperas with openvpn redirect-gateway jonnytabpni Linux - Networking 2 04-23-2009 03:11 PM
. as default gateway serge Linux - Networking 3 01-31-2009 10:39 AM
Default gateway dooda5555 Linux - Networking 1 06-17-2005 12:43 PM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 09:41 AM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration