LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2003, 05:58 PM   #1
avikosan
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
Question default gateway


I have a mandrake 9.0 linux and a windows XP professional which is connected to the internet (ADSL)
I can ping from the linux to the XP but I can't define the default gateway in a way that it will be kept between boots.

after I reboot I have to enter (in root user):
route add default gw twins2 (which is my XP station name)

after that everyting works fine.
where do I define a "permanent" route ?
 
Old 07-23-2003, 07:37 PM   #2
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Well.. there is nothing really permanent.. after all, that's what an operating system does while booting: restoring all the settings, and start all requires programs. The fun part of the linux boot is, linux allows you to alter this process completely.

In my case, (slackware), the script /etc/rc.d/rc.inet1 is commonly used to setup the internet. In fact, they've even put variables (ip / gateway) in there to make my life easier. At the end of the script, I see the line "route add default gateway ${gateway} metric 1".

So all you need to do, is edit such a similar script at your debian system.
 
Old 07-23-2003, 08:00 PM   #3
MagDaddy
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
In Redhat, the default gateway is configured in /etc/sysconfig/network. I don't know about Mandrake.
 
Old 12-09-2003, 06:47 PM   #4
theswan
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
just add "GATEWAY=blablabla" in file /etc/sysconfig/network-scripts/ifcfg-eth0 or eth1 ect.

Then restart network devices:
/etc/init.d/ ./network restart

Check routetable:
route
 
  


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
Default gateway dooda5555 Linux - Networking 1 06-17-2005 12:43 PM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 08:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 09:41 AM
Cannot change default gateway parr Linux - Networking 22 07-31-2003 07:13 PM
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 - Networking

All times are GMT -5. The time now is 07:14 PM.

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