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