Forums

Skip to content

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

simple routing problem (SOLVED)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
odioworks_com
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 23, 2005 7:08 pm
Location: Charlottesville, Virginia

simple routing problem (SOLVED)

  • Quote

Post by odioworks_com » Mon Nov 27, 2006 4:40 pm

I've diagnosed my problem to the following, but I can't figure out how to fix it. I'm sure it's pretty simple:

route -n:

Code: Select all

192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
71.1.141.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
The last line actually needs to be:

Code: Select all

0.0.0.0         71.1.141.1     0.0.0.0         UG    0      0        0 eth0
Like I said, should be easy to fix. I'm guessing its something in my /etc/conf.d/net - I just can't figure out what.

Code: Select all

config_eth0=( "71.1.141.94 netmask 255.255.255.0 brd 71.1.141.255" )
routes_eth0=( "default via 71.1.141.1" )

config_eth1=( "dhcp" )
dhcp_eth1="nodns nontp nonis"
TIA!
Last edited by odioworks_com on Mon Nov 27, 2006 7:22 pm, edited 2 times in total.
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

Re: simple routing problem

  • Quote

Post by think4urs11 » Mon Nov 27, 2006 7:02 pm

hmm your route -n and your config don't match at all
shouldn't it be (according to route) be more like

Code: Select all

config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis nogateway"
config_eth1=( "71.1.141.94/24" )
routes_eth1=( "default via 71.1.141.1" )
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
odioworks_com
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 23, 2005 7:08 pm
Location: Charlottesville, Virginia

oops!

  • Quote

Post by odioworks_com » Mon Nov 27, 2006 7:21 pm

Think4UrS11, thanks for your help. You're right, the route -n and /etc/conf.d/net didn't match. While troubleshooting I switched the config of eth0 and eth1, forgetting to update the output of route -n. Anyways, I've fixed it in the original post.

Your suggestion to add "nogateway" option to the DHCP adapter is exactly what I was looking for. For those that have the same problem, add the option "nogateway" to get all internet traffic traveling over the other ethernet device:

/etc/conf.d/net

Code: Select all

config_eth0=( "71.1.141.94 netmask 255.255.255.0 brd 71.1.141.255" )
routes_eth0=( "default via 71.1.141.1" )
config_eth1=( "dhcp" )
dhcp_eth1="nodns nontp nonis nogateway"
route -n

Code: Select all

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
71.1.141.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         71.1.141.1      0.0.0.0         UG    0      0        0 eth0
Top
Post Reply

3 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

 

 

magic