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 14:44:30
Message-Id: 20060928150339.GA3498@durandal.marathon
In Reply to: Re: [gentoo-user] Router 3rd and 4th net interface problem by Grant
1 On 07:12 Thu 28 Sep , Grant wrote:
2 > >> I have a Gentoo router with eth0 connected to the WAN (DSL modem/router)
3 > >and
4 > >> ath0 connected to the LAN. It works perfectly.
5 > >>
6 > >> I've added two ethernet cards and I'm trying to connect from another
7 > >machine
8 > >> to one of the new cards (eth1 and eth2). ifconfig shows the cards are
9 > >> detected just fine, but dhcp always fails when trying to obtain an IP
10 > >> address.
11 > >> I have the following /etc/conf.d/net:
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 > >> and the following in /etc/dnsmasq.conf:
25 > >>
26 > >> interface=ath0
27 > >> interface=eth1
28 > >> interface=eth2
29 > >>
30 > >> I've started net.eth1 and net.eth2 (both are links to net.lo) and
31 > >restarted
32 > >> dnsmasq. I thought it might be a problem with my iptables settings which
33 > >> don't take the new interfaces into account, but stopping iptables doesn't
34 > >> seem
35 > >> to help.
36 > >>
37 > >> Can anyone help me out?
38 > >>
39 > >> - Grant
40 > >> --
41 > >> gentoo-user@g.o mailing list
42 > >
43 > >Grant,
44 > > Can you ping the server? Set up the interface manually and then try.
45 > >Also, is the dhcp client connected directly to one of the interfaces on the
46 > >dhcp server? If that is the case you will need a cross over cable to do it
47 > >as opposed to a normal patch cable.
48 >
49 > Ah, crossovers cables. I guess I need to whip one of those up. Do
50 > you think I can get away with just a box cutter when converting a
51 > patch cable if I'm careful?
52 >
53 > Do the rest of my settings above look OK?
54 >
55 > - Grant
56 > --
57 > gentoo-user@g.o mailing list
58
59 Grant,
60 I have never made a cross over cable before, probs best to look on google,
61 there is bound to be a guide somewhere.
62 As for you settings, I can't see anything wrong with them.
63 Regards,
64 Oliver Wilson
65
66
67 --
68 gentoo-user@g.o mailing list

Replies

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