Gentoo Archives: gentoo-user

From: Oliver M A Wilson <o.m.a.wilson@×××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Router 3rd and 4th net interface problem
Date: Thu, 28 Sep 2006 09:22:57
Message-Id: 20060928094218.GB2148@durandal.marathon
In Reply to: [gentoo-user] Router 3rd and 4th net interface problem by Grant
1 On 21:19 Wed 27 Sep , Grant wrote:
2 > I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and
3 > ath0 connected to the LAN. It works perfectly.
4 >
5 > I've added two ethernet cards and I'm trying to connect from another machine
6 > to one of the new cards (eth1 and eth2). ifconfig shows the cards are
7 > detected just fine, but dhcp always fails when trying to obtain an IP
8 > address.
9 > I have the following /etc/conf.d/net:
10 >
11 > config_eth0="192.168.1.2 netmask 255.255.255.0"
12 > routes_eth0="default via 192.168.1.1"
13 >
14 > config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
15 > mode_ath0="master"
16 > essid_ath0="mynetwork"
17 >
18 > config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
19 >
20 > config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
21 >
22 > and the following in /etc/dnsmasq.conf:
23 >
24 > interface=ath0
25 > interface=eth1
26 > interface=eth2
27 >
28 > I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted
29 > dnsmasq. I thought it might be a problem with my iptables settings which
30 > don't take the new interfaces into account, but stopping iptables doesn't
31 > seem
32 > to help.
33 >
34 > Can anyone help me out?
35 >
36 > - Grant
37 > --
38 > gentoo-user@g.o mailing list
39
40 Grant,
41 Can you ping the server? Set up the interface manually and then try.
42 Also, is the dhcp client connected directly to one of the interfaces on the
43 dhcp server? If that is the case you will need a cross over cable to do it
44 as opposed to a normal patch cable.
45 Regards,
46 Oliver Wilson
47
48
49 --
50 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Router 3rd and 4th net interface problem Grant <emailgrant@×××××.com>