1 |
On Thursday 28 September 2006 05:19, Grant wrote: |
2 |
> I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) |
3 |
> and ath0 connected to the LAN. It works perfectly. |
4 |
> |
5 |
> I've added two ethernet cards and I'm trying to connect from another |
6 |
> machine to one of the new cards (eth1 and eth2). ifconfig shows the cards |
7 |
> are detected just fine, but dhcp always fails when trying to obtain an IP |
8 |
> address. I have the following /etc/conf.d/net: |
9 |
|
10 |
Firstly, you really should look at /etc/conf.d/net.example and upgrade your |
11 |
config to the new format. |
12 |
|
13 |
> config_eth0="192.168.1.2 netmask 255.255.255.0" |
14 |
> routes_eth0="default via 192.168.1.1" |
15 |
> |
16 |
> config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
17 |
> mode_ath0="master" |
18 |
> essid_ath0="mynetwork" |
19 |
> |
20 |
> config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
21 |
> |
22 |
> config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
23 |
|
24 |
Err, you can't assign the same IP to multiple interfaces. |
25 |
You mention DHCP, did you mean that eth1 and eth2 are to get a DHCP leases |
26 |
from another server? If so, do this: |
27 |
config_eth1=( "dhcp" ) |
28 |
config_eth2=( "dhcp" ) |
29 |
|
30 |
> I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted |
31 |
> dnsmasq. I thought it might be a problem with my iptables settings which |
32 |
> don't take the new interfaces into account, but stopping iptables doesn't |
33 |
> seem to help. |
34 |
|
35 |
What are you using dnsmasq for? |
36 |
|
37 |
-- |
38 |
Mike Williams |
39 |
-- |
40 |
gentoo-user@g.o mailing list |