Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[Solved] how to set gateway since baselayout-1.12.4-r5

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

[Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by radfoj » Wed Aug 16, 2006 4:12 pm

Hi, my setup for internet connection is same for ages - my IP 192.168.50.13, my gateway 192.168.50.1, netmask 255.255.255.0 and broadcast 192.168.50.255.

So for all the time baselayout-1.12 is out (+few prereleases) my /etc/conf.d/net is simply and working(keep in mind, I was using ifconfig all the time):

Code: Select all

config_eth0=( "192.168.50.13 netmask 255.255.255.0 broadcast 192.168.50.255" )
gateway="eth0/192.168.50.1"
But once I upgraded to revision5, internet is gone. Ping to 192.168.1.1 prints only

Code: Select all

connect: Network is unreachable
while ping to 192.168.50.100, / 50.10 / 50.1 works.
Nothing to update in /etc, becouse I did it already - so I tried downgrade back to revision4. Works like a charm again. Then I tried also revision6, but same, doesnt work. I tried also replace ifconfig with iproute2, no luck. Also playing with /etc/conf.d/net, enabling/disabling module arping, emerging aprping doesnt help at all (after each modify of conf file I restarted /etc/init.d/net.eth0).

Should somebody tell me, what mistake I did, what exactly I have to set in net conf file to suit my needs? What is right now correct syntax for setting my gateway? Thanks.

Only working setup right now is baselayout-1.12.4-r4, with options above in net conf plus prefering ifconfig over iproute2 after I emerged iproute2 with:

Code: Select all

modules=( "ifconfig" )
Last edited by radfoj on Wed Aug 16, 2006 5:24 pm, edited 1 time in total.
Top
wynn
Advocate
Advocate
User avatar
Posts: 2421
Joined: Fri Apr 01, 2005 10:45 am
Location: UK

  • Quote

Post by wynn » Wed Aug 16, 2006 4:50 pm

Code: Select all

gateway="eth0/192.168.50.1"
has changed to

Code: Select all

routes_eth0=( "default via 192.168.50.1" )
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

  • Quote

Post by radfoj » Wed Aug 16, 2006 5:23 pm

wynn wrote:

Code: Select all

gateway="eth0/192.168.50.1"
has changed to

Code: Select all

routes_eth0=( "default via 192.168.50.1" )
Thanks, you saved me a lot of time of searching. For us, who dont know exactly, what gateway is, its hard to find in net.example, that routes_eth0 is what we need. :D
Top
wynn
Advocate
Advocate
User avatar
Posts: 2421
Joined: Fri Apr 01, 2005 10:45 am
Location: UK

  • Quote

Post by wynn » Wed Aug 16, 2006 5:28 pm

For us, who dont know exactly, what gateway is, its hard to find in net.example,
That's what we're here for :D
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

Re: [Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by UberLord » Wed Aug 16, 2006 6:06 pm

radfoj wrote:So for all the time baselayout-1.12 is out (+few prereleases) my /etc/conf.d/net is simply and working(keep in mind, I was using ifconfig all the time):

Code: Select all

config_eth0=( "192.168.50.13 netmask 255.255.255.0 broadcast 192.168.50.255" )
gateway="eth0/192.168.50.1"
Be fair, you're mixing config styles
config_eth0 is supposed to go with routes_eth0
iface_eth0 is supposed to go with gateway

-r5 fixed a bug where gateway wasn't being used at all if iproute2 was installed, the consequence is that you can no longer use the gateway var with different config styles.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

Re: [Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by radfoj » Wed Aug 16, 2006 6:24 pm

UberLord wrote: Be fair, you're mixing config styles
config_eth0 is supposed to go with routes_eth0
iface_eth0 is supposed to go with gateway
Ok, now I know it, but is it somewhere mentioned, that there are two config styles and so? I tried go only through net.example, but there is nothing about iface_eth0.
Last edited by radfoj on Wed Aug 16, 2006 6:26 pm, edited 1 time in total.
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

Re: [Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by UberLord » Wed Aug 16, 2006 6:25 pm

radfoj wrote:Ok, now I know it, but is it somewhere mentioned, that there are two config styles and so? I tried only net.example, but there is nothing about iface_eth0.
Not as such, but we only document one style at a time - so if you change from one to the other, changing it all should be a safe bet.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

Re: [Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by radfoj » Wed Aug 16, 2006 6:36 pm

UberLord wrote:
radfoj wrote:Ok, now I know it, but is it somewhere mentioned, that there are two config styles and so? I tried only net.example, but there is nothing about iface_eth0.
Not as such, but we only document one style at a time - so if you change from one to the other, changing it all should be a safe bet.
Yeah, I had to change my conf some time ago, when I switched from 1.11 to some of 1.12_prerelease (if I remember correctly). I did it according to example file and it worked till today. After I realized problem, I watched example again, but although I dont know much about networks, I guessed, that problem may be caused with my line for gateway - especially when example file didnt contain nothing similar I had set. So I asked what syntax must be used.

Its probably hard for people, who knows that for accesing net they must set IP, netmask and gateway .... its exactly routes_eth0 line where to put gateway adress.
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

Re: [Solved] how to set gateway since baselayout-1.12.4-r5

  • Quote

Post by UberLord » Wed Aug 16, 2006 6:39 pm

radfoj wrote:Its probably hard for people, who knows that for accesing net they must set IP, netmask and gateway .... its exactly routes_eth0 line.
gateway is more correctly a default route. Once you understand that understanding the concept of "routing" becomes easier :)
Same goes for aliases (eth0:1) - they are just more addresses on an interface and not aliases ;)
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Wed Aug 16, 2006 6:46 pm

Well, the ebuild will at least warn you about this now.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Sat Sep 30, 2006 12:21 pm

Wow, this thread just saved me soooo much hassle! My server back home had it's PSU blow up so my dad replaced it and then the internet wouldn't come back up so I was thinking "crap, network cards are blown aswell". But then I talked him through testing every angle and the only link which wasn't working was server -> internet. I finally found this thread and it's saved me lots of time!

Good work!
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
Post Reply

11 posts • Page 1 of 1

Return to “Networking & Security”

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