Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]NetworkManager 0.7 won't assign default gw to static
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
erikderzweite
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2006
Posts: 143

PostPosted: Mon Jan 12, 2009 10:12 am    Post subject: [solved]NetworkManager 0.7 won't assign default gw to static Reply with quote

I am trying to move my network configurations to NetworkManager. Have emerged version 0.7 along with nm-applet. Almost all configurations I have — wired dhcp, wireless WPA, wireless+VPN — work fine.
But sometimes I need to setup wired configuration with manual IP configuration. And I have following issue with that config: I don't get default gateway and need to do route add default gw xxx.xxx.xxx.xxx every time I try to connect using these settings.
As quick googling and searching on this forum have brought no immediate results I seek your wisdom in helping me solve this problem.


Last edited by erikderzweite on Mon Jan 12, 2009 4:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Mon Jan 12, 2009 10:31 am    Post subject: Reply with quote

Hmmm.... I just tried a static config through NM-0.7 to flash my router and it worked fine...

I have it emerged with just "doc gnutls" flags.
Back to top
View user's profile Send private message
erikderzweite
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2006
Posts: 143

PostPosted: Mon Jan 12, 2009 4:57 pm    Post subject: Reply with quote

That's weird... If I connect to a router (I usually use with dhcp) using a static config — default gw is updated fine. Changed settings in this connection to my static ip config — it now updates fine too. Can't tell a difference between the old and the new...
So basically the solution was to create another static network config...
Marking this as solved although I don't really get what was the problem and how did I solved it :)
Anyway it works now, thanks for the help!
Back to top
View user's profile Send private message
tipp98
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2007
Posts: 113

PostPosted: Fri Jan 15, 2010 3:40 pm    Post subject: Reply with quote

huh, I agree, that's weird. My situations... After trying to get my auto connection using dhcp switched over to static, without success, I remember adding a route. This route was not the correct default route, but rather a local route. Realizing my mistake I tried to change it to 0.0.0.0 0.0.0.0 192.168.2.1, but it would not hold. I would click ok and apply, but it remained with the local route. So, I deleted it. Still no success. That is when I saw your post, created a new one without adding a route, and today I did not have to add the default route manually. I'm using nm-applet-0.7.2.
Back to top
View user's profile Send private message
erikderzweite
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2006
Posts: 143

PostPosted: Fri Jan 15, 2010 11:29 pm    Post subject: Reply with quote

One should also check the "route" option in ip4-config screen, make sure none of the options there is marked.
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