FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-18-2010, 08:35 PM
Bill Longman
 
Default Issue with Multiple Networks in Gentoo...

On 06/18/2010 11:29 AM, Christopher Kurtis Koeber wrote:
> I am sure this is simple but I can't figure this out. I added a network
> card to an existing Gentoo installation to have two in total. *ETH1* is
> my new network card which is a Gigabit connection and *ETH0* is my old
> network card with just an 100 Mbit connection.
>
> I would like for the new network card (*ETH1*) to connect to a
> 10.10.50.X (class C) network which accesses out local LAN and the old
> network card (*ETH0*) to connect to a 10.10.60.x (class C) network which
> is a wireless network that _does not communicate_ with the 10.10.50.X
> network. This network also has internet access, if that is important.
>
> I am not sure what to do. Right now both interfaces get DHCP but I
> cannot ping either card or get network access.
>
> Here is my current /etc/conf.d/net file:
> -------------------------------------------------------------------------------------
> config_eth1=( "dhcp" )
> dhcpcd_eth1="-N"
> routes_eth1=( "10.10.50.0/24 via 10.10.50.1"
> "10.10.1.0/24 via 10.10.50.1"
> "10.10.10.0/24 via 10.10.50.1"
> "10.10.20.0/24 via 10.10.50.1"
> "10.10.30.0/24 via 10.10.50.1"
> )
> config_eth0=( "10.10.60.3 netmask 255.255.255.0 brd 10.10.60.255" )
> routes_eth0=( "10.10.60.0/24 via 10.10.60.1" )
> -------------------------------------------------------------------------------------
>
> And here are my current routes:
> -------------------------------------------------------------------------------------
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 10.10.20.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1
> 10.10.50.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1
> 10.10.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 10.10.1.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1
> 10.10.30.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1
> 10.10.60.0 10.10.60.1 255.255.255.0 UG 0 0 0 eth0
> 10.10.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 10.10.10.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 10.10.50.1 0.0.0.0 UG 0 0 0 eth1
>
> Anything else I need to do or change?

This won't help you ping the card, but why do *you*, rather than DHCP,
force a route for 10.10.50.0/24? And especially since your default route
points the same direction. Why not just set the default route to
10.10.50.1 and let it do its job?

But to answer your question, you should make sure the /etc/udev/rules.d
files haven't changed your NIC numbering. What do you mean that they
both get DHCP but you can't ping them. How do you know they're getting
DHCP then?

Can you even plumb the interface?

ifconfig eth0 up

Try ifconfig eth3 up.
 
Old 06-20-2010, 06:10 PM
Mick
 
Default Issue with Multiple Networks in Gentoo...

On Friday 18 June 2010 19:29:31 Christopher Kurtis Koeber wrote:
[snip ...]

config_eth0=( "arping" )
config_eth0=( "10.10.60.3 netmask 255.255.255.0 brd 10.10.60.255" )
routes_eth0=( "10.10.60.0/24 via 10.10.60.1" )
gateways_eth0="10.10.60.1"
config_eth1=( "arping" )
config_eth1=( "10.10.50.2 netmask 255.255.255.0 brd 10.10.50.255" )
routes_eth1=( "10.10.50.0/24 via 10.10.50.1"
"10.10.1.0/24 via 10.10.50.1"
"10.10.10.0/24 via 10.10.50.1"
"10.10.20.0/24 via 10.10.50.1"
"10.10.30.0/24 via 10.10.50.1"
)
gateways_eth1="10.10.50.1"
fallback_eth1=( "dhcp" )
dhcpcd_eth1="-N"

See if the above quick suggestions give you what you want.

--
Regards,
Mick
 

Thread Tools




All times are GMT. The time now is 07:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org