On Thursday 28 September 2006 05:19, Grant wrote: > I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) > and ath0 connected to the LAN. It works perfectly. > > I've added two ethernet cards and I'm trying to connect from another > machine to one of the new cards (eth1 and eth2). ifconfig shows the cards > are detected just fine, but dhcp always fails when trying to obtain an IP > address. I have the following /etc/conf.d/net:
Firstly, you really should look at /etc/conf.d/net.example and upgrade your config to the new format. > config_eth0="192.168.1.2 netmask 255.255.255.0" > routes_eth0="default via 192.168.1.1" > > config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" > mode_ath0="master" > essid_ath0="mynetwork" > > config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" > > config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" Err, you can't assign the same IP to multiple interfaces. You mention DHCP, did you mean that eth1 and eth2 are to get a DHCP leases from another server? If so, do this: config_eth1=( "dhcp" ) config_eth2=( "dhcp" ) > I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted > dnsmasq. I thought it might be a problem with my iptables settings which > don't take the new interfaces into account, but stopping iptables doesn't > seem to help. What are you using dnsmasq for? -- Mike Williams -- gentoo-user@gentoo.org mailing list