LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-18-2004, 10:38 PM   #1
rharvey32
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
lm10.0 gateway is set but when I reboot I have to set the gateway


I have Linux Mandrake 10.0
The gateway is in the /etc/sysconfig/network file and it does not change.
But when I reboot no internet.
so I type
route -n
It shows I don't have a gateway. I check the network file and it is in there.
I do the route add... and setup the gateway every thing works till I reboot.

Any ideas?

thanks
Robert
 
Old 11-18-2004, 11:50 PM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Eh, it's set by the interface settings...

see /etc/sysconfig/network-scripts/ifcfg-eth0

etc.
 
Old 11-19-2004, 08:41 AM   #3
rharvey32
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I have tried it in the ifcfg-eth0 file, with the same result.
but if you will look on the web or use the gui to setup the nic you will see
the file i mentioned is the place the gateway is put. /etc/sysconfig/network
GATEWAY=12.105.216.1

ver LM 10.0
thanks
Robert
 
Old 11-19-2004, 08:57 AM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Look on the web?

What does the web have to do with this?

/etc/sysconfig/network is supposed to contain the information the machine needs to establish which LOCAL device is connected to the gateway.

e.g if your primary ethernet nic is called eth0 on a 192.168.0.0 subnet, then it will read like this...

GATEWAY=192.168.0.1
GATEWAYDEV=eth0
NETWORKING=yes
HOSTNAME=MyHOSTNAME.DOMAIN.COM

If the eth0 configuration file differs then the routing is adjusted when the interface is brought up.
 
Old 11-19-2004, 09:23 AM   #5
rharvey32
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
eth0 is my web interface
I had the gateway in the eth0
I also searched the web to see if I was setting it up wrong
many documents say to put it there.
I get the same result in both places.
I am not expert enough nor am I here to debate where it goes I just want the problem fixed.
so if I put it in the ifcfg-eth0 file and it does not work what then?

Thanks
Robert
 
Old 11-19-2004, 10:41 AM   #6
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Mandrake is designed so you do all of this in the MCC instead of directly editing the files.

Usually if you are having problems the best thing to do is to eliminate all of the interfaces in the MCC then set them all up again, paying particular attention to how you name the machine (on eth0).
 
Old 11-19-2004, 11:17 AM   #7
rharvey32
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
so you are saying that linux mandrake is a gui only system now?
All the systems I have setup. I have not had this problem.
I have never had to set the network cards up with the gui.
Thanks for your time.
Robert
 
Old 11-19-2004, 10:49 PM   #8
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Nope... It's your system you can do whatever you want.

But you posted the question, and the answer is that you are fighting how Mandrake is supposed to work, so to speak.

This is akin to the newbie installing TAR files for programs which are available via URPMI, it's counter productive and tends to break things.

The whole point of Mandrake is to attempt to easy things for the user. As such it employs scripts and programs that have certain expectations as far as configuration files, etc.

If you set things up manually you'll often find that things will be set back to an unexpected state when you run certain applications that trigger the same programs and scripts.

You CAN work around this but in effect a) expect to deal with this yourself, b) you'll have to track down and modify those programs and scripts which try to set things back...

This includes, profiles, startup services, etc.

Also RPM/URPM updates will want to set things back.
 
Old 02-13-2006, 01:35 PM   #9
paddy
Member
 
Registered: Jan 2006
Location: Suedpfalz
Distribution: kubuntu
Posts: 114

Rep: Reputation: 15
are you still talking about the actual problem? 'cause I'm experiencing the very same...

ah, forget it, I solved it.

Last edited by paddy; 02-14-2006 at 05:27 AM.
 
  


Reply



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
How to set up FC 4 as a router/gateway tanchekseng Linux - Newbie 1 11-01-2005 05:11 AM
How can I set up an internet gateway? peaceofcrap2001 Linux - Networking 1 06-11-2005 10:39 PM
Gateway set up xowl Slackware 1 02-04-2005 10:20 PM
How can I set Gateway? gubak Linux - Networking 29 07-20-2004 04:43 AM
trying to set up a gateway annehoog Linux - Newbie 6 05-12-2003 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:14 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
Open Source Consulting | Domain Registration