Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[SOLVED] OpenRC 0.5.1 does not start my network correctly

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
31 posts
  • Previous
  • 1
  • 2
Author
Message
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Tue Oct 20, 2009 9:32 am

I must say that this is not an appropriate solution: Your "solution" is to use oldnet but not the network script. However, the "new style" how it should work is only with the network script. For this, I also sometimes get false paths.

I suppose that it is really a bug in dhcpcd: Sometimes the route is set correctly, but usually not at the first run. Only after stopping and restarting dhcpcd the route is set correctly.
More precisely: If dhcpcd "works" (usually only after the second start) I get the output

Code: Select all

$ route -n                
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
[correct ip]    0.0.0.0         255.255.254.0   U      202    0        0 eth0
127.0.0.0       -               255.0.0.0       !        0    -        0 -
127.0.0.0       127.0.0.1       255.0.0.0       UG       0    0        0 lo
0.0.0.0         [correct gateway]  0.0.0.0      UG     202    0        0 eth0
but if it does not work, the last line is simply missing from the output. dhcpcd must have got its lease, because otherwise the first line could not be there, so it must have simlpy "forgotten" to add the route.

I guess a bug should be reported to Uberlord, but currently I have to many other things to do...
Top
Guinpen
Guru
Guru
User avatar
Posts: 393
Joined: Wed Dec 08, 2004 1:18 pm
Contact:
Contact Guinpen
Website

  • Quote

Post by Guinpen » Tue Oct 20, 2009 9:39 am

I see. BTW, what is meaning of the second line and why is it there?
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Tue Oct 20, 2009 1:35 pm

Hmmm, I have not had the experience of false paths or the need to restart dhcpcd with openrc-0.5.0
I'm not getting that second line either. What can that be if there is no interface.

Code: Select all

127.0.0.0       -               255.0.0.0       !        0    -        0 - 

Code: Select all

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
[correct ip]    0.0.0.0         255.255.255.0   U     202    0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0        [correct gateway]0.0.0.0         UG    202    0        0 eth0
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Tue Oct 20, 2009 2:25 pm

Godji wrote:I see. BTW, what is meaning of the second line and why is it there?
This means there is an unreachable route to the loopback interface and it's done in the network script, therefore, Mike Hunt, you wont see it. I asked UberLord why but didn't got an answer so far.

Edit: Here [post]6016059[/post]
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Wed Oct 21, 2009 8:35 pm

Finally, I found some time to look in the thing again. The cause for the problem is rather simple: If /etc/init.d/network runs after dhcpcd, it mangles some of the routes which dhcpcd has set. Therefore the non-reproducing effect: It appears not to be defined by dependencies what starts earlier. So I have just put
/etc/conf.d/dhcpcd wrote:rc_need="network"
and everything is fine now. (Well, everything except for the lack of support for pppd in the new network scripts, but this is another story - unfortunately more serious, for which I still see no reasonable solution except for using oldnet.)
Top
gcasillo
l33t
l33t
User avatar
Posts: 739
Joined: Tue Sep 23, 2003 9:21 pm
Location: Cincinnati, Ohio, USA

Re: [SOLVED] OpenRC 0.5.1 does not start my network correctl

  • Quote

Post by gcasillo » Sat Oct 24, 2009 6:27 am

Godji wrote:4) Add the following to /etc/dhcpcd.conf:

Code: Select all

waitip
Just wanted to say thanks for sharing this tip. Appears to resolve the issue I was having. :)
Top
Post Reply

31 posts
  • Previous
  • 1
  • 2

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic