Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Baselayout 1.12.7 - No default gateway?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1365

PostPosted: Wed Dec 13, 2006 1:12 pm    Post subject: Baselayout 1.12.7 - No default gateway? Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Dec 13, 2006 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1365

PostPosted: Wed Dec 13, 2006 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
loki_val
Retired Dev
Retired Dev


Joined: 13 Nov 2006
Posts: 418
Location: Denmark

PostPosted: Wed Dec 13, 2006 2:24 pm    Post subject: Reply with quote

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
Code:
etc-update
It worked for my problem.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Dec 13, 2006 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
calr0x
Apprentice
Apprentice


Joined: 16 Aug 2004
Posts: 244

PostPosted: Wed Dec 13, 2006 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Dec 13, 2006 6:10 pm    Post subject: Reply with quote

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 ;)


We support both via and gw
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Dec 13, 2006 6:10 pm    Post subject: Re: Baselayout 1.12.7 - No default gateway? Reply with quote

ConiKost wrote:
manual setting with "route add default gw 192.168.0.1" works


Yeah, bug.
Fixed in -r1
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Dec 13, 2006 8:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Wed Dec 13, 2006 8:43 pm    Post subject: Reply with quote

Unfortunately I can't emerge --sync to upgrade!
How do I get my network back up again?
Back to top
View user's profile Send private message
calr0x
Apprentice
Apprentice


Joined: 16 Aug 2004
Posts: 244

PostPosted: Wed Dec 13, 2006 8:46 pm    Post subject: Re: Baselayout 1.12.7 - No default gateway? Reply with quote

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
View user's profile Send private message
loki_val
Retired Dev
Retired Dev


Joined: 13 Nov 2006
Posts: 418
Location: Denmark

PostPosted: Wed Dec 13, 2006 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Wed Dec 13, 2006 9:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
loki_val
Retired Dev
Retired Dev


Joined: 13 Nov 2006
Posts: 418
Location: Denmark

PostPosted: Wed Dec 13, 2006 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Wed Dec 13, 2006 10:02 pm    Post subject: Reply with quote

Thanks for the help, I think I'll be going with
=sys-apps/baselayout-1.12.7*
for the time being!
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Wed Dec 13, 2006 10:20 pm    Post subject: Reply with quote

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! :D

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Dec 13, 2006 11:20 pm    Post subject: Reply with quote

The updating modules taking ages is due to module-init-tools

You are seeing this because when baselayout updates, it calls this and there is a bug if a package abuses what it puts in /etc/modules.d - like say the nvidia driver.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Wed Dec 13, 2006 11:30 pm    Post subject: Reply with quote

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? :lol:
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum