Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174341 - sys-apps/baselayout-2.0.0_alpha1 - default gw doesn't work
Summary: sys-apps/baselayout-2.0.0_alpha1 - default gw doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-12 20:50 UTC by Craig Andrews
Modified: 2007-04-13 10:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixe netmask2cidr (cidr.patch,333 bytes, patch)
2007-04-13 10:34 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2007-04-12 20:50:38 UTC
I was previously using the unstable baselayout package, and just upgraded to sys-apps/baselayout-2.0.0_alpha1

I have a static network configuration specified in /etc/conf.d/net, as specified here:
config_wlan0=( "192.168.0.101/24" )
gateways_wlan0="192.168.0.1"
routes_wlan0="default gw 192.168.0.1"
dns_servers_wlan0="192.168.0.1"

This configuration previously worked, but now I get an error stating that "gw" is not a valid inet address.

Reproducible: Always

Steps to Reproduce:
1. Set up a static IP address with a static route in /etc/conf.d/net
2. Start that interface
3. See error messages

Actual Results:  
Nn error stating that "gw" is not a valid inet address.

Expected Results:  
running the routes command should show the correct default route
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-12 21:23:01 UTC
routes_wlan0="default via 192.168.0.1"
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-04-12 21:24:51 UTC
Eh, cut'n'paste sucks...

routes_wlan0=( "default via 192.168.0.1" )
Comment 3 Craig Andrews gentoo-dev 2007-04-12 22:11:57 UTC
Thank you! Odd that I didn't have the parenthesis before, and it worked, but now it does. Oh well - good enough for me.

(In reply to comment #2)
> Eh, cut'n'paste sucks...
> 
> routes_wlan0=( "default via 192.168.0.1" )
> 
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-04-13 05:49:40 UTC
Yes, this will work
routes_wlan0=( "default via 192.168.0.1" )
so will this
routes_wlan0="'default via 192.168.0.1'"

As both define it one entity. However
routes_wlan0="default via 192.168.0.1"
defines 3 entities.

jakub - there will no doubt be a few bugs regarding this :/
In our defense, routes_wlan0="default via 192.168.0.1" was never documented
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-04-13 07:43:51 UTC
(In reply to comment #4)
> jakub - there will no doubt be a few bugs regarding this :/
> In our defense, routes_wlan0="default via 192.168.0.1" was never documented

There are lots of bugs all the time, no big problem w/ this. As long as stuff like ( "default via a.b.c.d" ) still works, it shouldn't be anything massive. :)
Comment 6 Fredrik Carlsson 2007-04-13 09:54:50 UTC
One thing i noticed though is if using something like
config_eth0="'83.227.236.5 netmask 255.255.255.192'"
it won't set the netmask correctly, while '83.227.236.5/26' will.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-04-13 10:34:27 UTC
(In reply to comment #6)
> One thing i noticed though is if using something like
> config_eth0="'83.227.236.5 netmask 255.255.255.192'"
> it won't set the netmask correctly, while '83.227.236.5/26' will.

Thanks for that - it's just been fixed in our svn repo.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-04-13 10:34:52 UTC
Created attachment 116147 [details, diff]
Fixe netmask2cidr