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.

Reply via email to