Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nasty route vanish after reboot post baselayout update
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
zyograf
n00b
n00b


Joined: 27 May 2011
Posts: 3

PostPosted: Fri May 27, 2011 3:20 pm    Post subject: Nasty route vanish after reboot post baselayout update Reply with quote

Sick and tired ...
Whole day just passed and I'm totally loosing my mind.
I've updated my system (world) on a test environment to newest available and I am encountering a problem that lefts no hair on my head.

I have to manually add routes after each reboot.

After switching to baselayout2 and new openrc I am incapable of setting up my startup environment correctly(as it previously were).

/etc/conf.d/net statements:
Code:
config_eth0="null"
routes_eth0="default via x.x.x.x"


nor the old ones bash style:
Code:
config_eth0=("null")
routes_eth0=("default via x.x.x.x")


seems to work correctly now...

I mean the route directive of course.

"ip route" or "route" after reboot shows no signs of this input.

I can after a reboot, manually specify that static route with something similari to this input:
Code:
route add default gateway x.x.x.x dev eth0

but cannot find any REASON WHY this is not working from the /etc/conf.d/net file

There are NO errors neither warning produced or logged.

"Be cool this is a robbery" 8)
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Mon May 30, 2011 9:48 am    Post subject: Reply with quote

on one of my boxes this works with new baselayout and "old-style"-notation - but i think one should not omit the blanks between ( and ":

Code:
config_eth0=( "10.10.1.230/24 brd 10.10.1.255" )
routes_eth0=(
        "default via 10.10.1.95"
        "10.10.0.0/16 via 10.10.1.1"            # IPv4 subnet route
)


also, if your interface has a "null"-address how can it route anywhere? try to give it a real address in /etc/conf.d/net and set the route to it, then it should work.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
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