View previous topic :: View next topic |
Author |
Message |
My_World Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/50954819646eed7bd470c4.jpg)
Joined: 01 Sep 2003 Posts: 339 Location: Kalahari Desert
|
Posted: Wed Jan 16, 2008 12:46 pm Post subject: Messed up routing table [SOLVED] |
|
|
I have the a problem with the routing on my network and can't seem to find the solution off hand.
The problem:
Code: |
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 255.255.255.255 UGH 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
|
Look at the default gw.
Now, as it should be after manualy fixing it:
Code: |
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 1 0 0 eth1
|
The genmask is totally messed up in the startup script and I have no idea how to fix it since I did not change anything and after a recent update it went bonkers.
/etc/conf.d/net
Code: |
config_eth1=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" )
routes_eth1=( "default via 192.168.0.1" )
|
What then should I add to net config to force the netmask to 0.0.0.0 ? _________________ "Ubuntu" - an African word meaning "Gentoo is too hard for me".
Last edited by My_World on Wed Jan 16, 2008 6:59 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
telperion n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jan 2008 Posts: 3
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|