1 |
> > I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and |
2 |
> > ath0 connected to the LAN. It works perfectly. |
3 |
> > |
4 |
> > I've added two ethernet cards and I'm trying to connect from another machine |
5 |
> > to one of the new cards (eth1 and eth2). ifconfig shows the cards are |
6 |
> > detected just fine, but dhcp always fails when trying to obtain an IP |
7 |
> > address. |
8 |
> > I have the following /etc/conf.d/net: |
9 |
> > |
10 |
> > config_eth0="192.168.1.2 netmask 255.255.255.0" |
11 |
> > routes_eth0="default via 192.168.1.1" |
12 |
> > |
13 |
> > config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
14 |
> > mode_ath0="master" |
15 |
> > essid_ath0="mynetwork" |
16 |
> > |
17 |
> > config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
18 |
> > |
19 |
> > config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
20 |
> > |
21 |
> > and the following in /etc/dnsmasq.conf: |
22 |
> > |
23 |
> > interface=ath0 |
24 |
> > interface=eth1 |
25 |
> > interface=eth2 |
26 |
> > |
27 |
> > I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted |
28 |
> > dnsmasq. I thought it might be a problem with my iptables settings which |
29 |
> > don't take the new interfaces into account, but stopping iptables doesn't |
30 |
> > seem |
31 |
> > to help. |
32 |
> > |
33 |
> > Can anyone help me out? |
34 |
> > |
35 |
> > - Grant |
36 |
> > -- |
37 |
> > gentoo-user@g.o mailing list |
38 |
> |
39 |
> Grant, |
40 |
> Can you ping the server? Set up the interface manually and then try. |
41 |
> Also, is the dhcp client connected directly to one of the interfaces on the |
42 |
> dhcp server? If that is the case you will need a cross over cable to do it |
43 |
> as opposed to a normal patch cable. |
44 |
|
45 |
Ah, crossovers cables. I guess I need to whip one of those up. Do |
46 |
you think I can get away with just a box cutter when converting a |
47 |
patch cable if I'm careful? |
48 |
|
49 |
Do the rest of my settings above look OK? |
50 |
|
51 |
- Grant |
52 |
-- |
53 |
gentoo-user@g.o mailing list |