Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] Router 3rd and 4th net interface problem
Date: Thu, 28 Sep 2006 04:24:57
Message-Id: 49bf44f10609272119u2cf7d235u34f682e7ff9318d0@mail.gmail.com
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 address.
7 I have the following /etc/conf.d/net:
8
9 config_eth0="192.168.1.2 netmask 255.255.255.0"
10 routes_eth0="default via 192.168.1.1"
11
12 config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
13 mode_ath0="master"
14 essid_ath0="mynetwork"
15
16 config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
17
18 config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
19
20 and the following in /etc/dnsmasq.conf:
21
22 interface=ath0
23 interface=eth1
24 interface=eth2
25
26 I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted
27 dnsmasq. I thought it might be a problem with my iptables settings which
28 don't take the new interfaces into account, but stopping iptables doesn't seem
29 to help.
30
31 Can anyone help me out?
32
33 - Grant
34 --
35 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Router 3rd and 4th net interface problem Oliver M A Wilson <o.m.a.wilson@×××××××××.uk>
[gentoo-user] Re: Router 3rd and 4th net interface problem James <wireless@×××××××××××.com>
Re: [gentoo-user] Router 3rd and 4th net interface problem Mike Williams <mike@××××××××.uk>
Re: [gentoo-user] Router 3rd and 4th net interface problem Richard Fish <bigfish@××××××××××.org>