I posted this on the Gentoo Forums but I thought it may be a good idea to
email the list as well:

 

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: 

 

Code: 

----------------------------------------------------------------------------
---------

 

# This blank configuration will automatically use DHCP for any net.* 

# scripts in /etc/init.d.  To create a more complete configuration, 

# please review /etc/conf.d/net.example and save your configuration 

# in /etc/conf.d/net (this 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: 

 

Code: 

----------------------------------------------------------------------------
---------

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? 

 

Thank you for your time.

 

Regards,

Chris K.

 

Reply via email to