Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > default gateway issue
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 23rd February 21:51
alex
External User
 
Posts: 1
Default default gateway issue



I've got defined the default gateway in drakconf, but when i start my
computer, the default gateway does not show up:


[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.6.0 * 255.255.255.0 U 10 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

I've got to manually add the route so it appears and i can get my
computer on the network.

[root@localhost ~]# route add default gw 192.168.6.1 dev eth0
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.6.0 * 255.255.255.0 U 10 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.6.1 0.0.0.0 UG 0 0 0 eth0


I've grepp'ed the gateway IP and it appears in /etc/sysconfig/network

[root@localhost etc]# grep -R 192.168.6.1 *
sysconfig/network:GATEWAY=192.168.6.1


How can i get this to show up correctly upon start. May it be a mandriva
2007 bug?

alex.
  Reply With Quote


  sponsored links


2 23rd February 23:27
wes newell
External User
 
Posts: 1
Default default gateway issue



Nake sure ONBOOT is set to yes, and disable network hotplugging.
ref. /sbin/ifup.

--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
http://mysettopbox.tv/knoppmyth.html Usenet alt.video.ptv.mythtv
My server http://wesnewell.no-ip.com/cpu.php
HD Tivo S3 compared http://wesnewell.no-ip.com/mythtivo.htm
  Reply With Quote
3 23rd February 23:27
bit twister
External User
 
Posts: 1
Default default gateway issue


["Followup-To:" header set to alt.os.linux.mandrake.]

No it is a feature. gateway value has been moved into the interface
config files. It would seem the last nic up, sets the gateway. So,

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.2.10
NETMASK=255.255.255.0
GATEWAY=192.168.2.1 <======== sets gateway when
ONBOOT=yes <=========== eth0 comes up on boot
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=no
MS_DNS1=68.87.85.98 <======= gets into /etc/resolv.conf
MS_DNS2=68.87.69.146 <======= from these fields
RESOLV_MODS=yes
IPV6INIT=no
IPV6TO4INIT=no
  Reply With Quote
4 24th February 06:23
alex
External User
 
Posts: 1
Default default gateway issue


En/na Bit Twister ha escrit:

changed the gateway value on this file and now it works.
i'll report mandriva that setting gateway on drakconf does not set the
value in this file.
  Reply With Quote
5 24th February 07:59
bit twister
External User
 
Posts: 1
Default default gateway issue


Hmmm, so you have all your security/bugfix/updates installed?
  Reply With Quote
6 24th February 12:22
alex
External User
 
Posts: 1
Default default gateway issue


En/na Bit Twister ha escrit:

i "urpmi.updade -a urpmi --auto-select" each day
  Reply With Quote
7 24th February 13:44
james j. dines
External User
 
Posts: 1
Default default gateway issue


OUCH!!! Then your system is woefully out of date!

Hopefully that was a typo ;-)

--
****** Warning - Highly US-Centric .sig approaching! ******
The only way to differentiate "The War on Terrorism"
from "The War on Drugs" is to measure the amount of piss
on the Founding Fathers graves. - James J. Dines
  Reply With Quote
8 24th February 15:25
alex
External User
 
Posts: 1
Default default gateway issue


En/na James J. Dines ha escrit:


hhahahaha
of course
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666