View previous topic :: View next topic |
Author |
Message |
ConiKost Developer
Joined: 11 Jan 2005 Posts: 1365
|
Posted: Wed Dec 13, 2006 1:12 pm Post subject: Baselayout 1.12.7 - No default gateway? |
|
|
Hello!
I installed today Baselayout 1.12.7.
But now i got the problem, that my default gw isn't set anymore.
Did the syntax changed?
Code: | BlackBox conikost # cat /etc/conf.d/net
# BlackBox - Net
# Realtek 8139D
#config_eth0=( "192.168.0.253 netmask 255.255.255.0 brd 192.168.0.255" )
#routes_eth0=( "default gw 192.168.0.1" )
# Atheros AR5006XS WLAN
config_ath0=( "192.168.0.254 netmask 255.255.255.0 brd 192.168.0.255" )
routes_ath0=( "default gw 192.168.0.1" )
|
manual setting with "route add default gw 192.168.0.1" works |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Dec 13, 2006 2:06 pm Post subject: |
|
|
according to /etc/conf.d/net.example the correct syntax would be routes_eth0=( "default via 192.168.0.1" )
thats why the example file is there _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
ConiKost Developer
Joined: 11 Jan 2005 Posts: 1365
|
Posted: Wed Dec 13, 2006 2:09 pm Post subject: |
|
|
Think4UrS11 wrote: | according to /etc/conf.d/net.example the correct syntax would be routes_eth0=( "default via 192.168.0.1" )
thats why the example file is there |
Already tried this.
Does NOT help. |
|
Back to top |
|
|
loki_val Retired Dev
Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Wed Dec 13, 2006 2:24 pm Post subject: |
|
|
Take a look at this post and this bug. I think they're related problems. My internet worked fine, but I think that's because it uses dhcpcd. In the bug report, a user has reported something similar: Quote: | ------- Comment #10 From Nico Wohlgemuth 2006-12-13 05:17 PST [reply] -------
The patch ( https://bugs.gentoo.org/attachment.cgi?id=103932&action=view )
worked for me!
Try:
route add default gw <your internet router's ipaddress>
cd /lib/rcscripts/net
patch -p0 < /path/to/patch
(it's -p0 not -0 as #6 said) |
It might be helpful. Read the whole report. If you just want a resolution, do this:
add this line to /etc/portage/package.mask: Code: | =sys-apps/baselayout-1.12.7 | then: Code: | emerge -1v baselayout | and remember to do It worked for my problem. |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Dec 13, 2006 2:24 pm Post subject: |
|
|
ConiKost wrote: | Already tried this. | Then you should have written so in the first place.
You did use routes_ath0 instead of _eth0 as in the example? You did restart your interface after the change?
btw: this should have been posted in Networking&Security _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Wed Dec 13, 2006 4:35 pm Post subject: |
|
|
Think4UrS11 wrote: | ConiKost wrote: | Already tried this. | Then you should have written so in the first place.
You did use routes_ath0 instead of _eth0 as in the example? You did restart your interface after the change?
btw: this should have been posted in Networking&Security |
Talkin out my ass here, but isn't this a portage problem? _________________ Edit the subject of the original post w/ [SOLVED] at the end if this thread is resolved. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed Dec 13, 2006 8:38 pm Post subject: |
|
|
Moved from Portage & Programming to Networking & Security.
Network stuff, so moved here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Wed Dec 13, 2006 8:43 pm Post subject: |
|
|
Unfortunately I can't emerge --sync to upgrade!
How do I get my network back up again? |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
Posted: Wed Dec 13, 2006 8:46 pm Post subject: Re: Baselayout 1.12.7 - No default gateway? |
|
|
UberLord wrote: | ConiKost wrote: | manual setting with "route add default gw 192.168.0.1" works |
Yeah, bug.
Fixed in -r1 |
Code: | route add default gw XXX.XXX.XXX.XXX |
_________________ Edit the subject of the original post w/ [SOLVED] at the end if this thread is resolved. |
|
Back to top |
|
|
loki_val Retired Dev
Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Wed Dec 13, 2006 8:48 pm Post subject: |
|
|
Quote: | Unfortunately I can't emerge --sync to upgrade!
How do I get my network back up again? | The baselayout-1.12.6 files should still be in the distfiles dir. Don't upgrade, downgrade. I explained how earlier in this thread. Here. Does that not work? |
|
Back to top |
|
|
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Wed Dec 13, 2006 9:49 pm Post subject: |
|
|
Downgrading did work, I then did emerge --sync and tried baselayout-1.2.7-r1 which gave me exactly the same problem as 1.2.7 with net.lo not working. I did do etc-update each time and rebooted. |
|
Back to top |
|
|
loki_val Retired Dev
Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Wed Dec 13, 2006 9:54 pm Post subject: |
|
|
Oh well, another one for package.mask, then: Code: | =sys-apps/baselayout-1.12.7-r1 | (I hadn't tried it when I wrote that. Sorry to foist it on you.) |
|
Back to top |
|
|
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Wed Dec 13, 2006 10:02 pm Post subject: |
|
|
Thanks for the help, I think I'll be going with
=sys-apps/baselayout-1.12.7*
for the time being! |
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Wed Dec 13, 2006 10:20 pm Post subject: |
|
|
There's another workaround. I've changed the relevant line to read:
/etc/conf.d/net/: | ...
routes_eth0=( "-net default via 192.168.6.1" )
... |
The problem seems to be that the route to the gateway got added to the host ("H") and with a Genmask of 255.255.255.255. Now, as to why that would be a Bad Thing®, I wouldn't know but the above fixed it for me...
Cheers!
EDIT: BTW, baselayout-1.12.7 and 1.12.7-r1 appear to take humongous amounts of time finishing up after emerging on this box. It just hangs there saying "updating modules". What gives? Did anything important to that change, lately. 1.12.6 did not share that problem, it only appears with 1.12.7 installed. _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Wed Dec 13, 2006 11:30 pm Post subject: |
|
|
Ah, thanks for the info. See also my comment in the other thread. I've a box without nvidia-drivers that is unaffected, so I'd say you're spot on about this.
Any way this can be fixed? Preferably without having to install nvidia-drivers? _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
|