Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Router 3rd and 4th net interface problem
Date: Fri, 06 Oct 2006 16:30:28
Message-Id: 49bf44f10610060921x838d16secad2b2f865b1584@mail.gmail.com
In Reply to: Re: [gentoo-user] Router 3rd and 4th net interface problem by Hans-Werner Hilse
1 > > > > > > How should eth1 and eth2 be
2 > > > > > > configured in /etc/conf.d/net ?
3 > > > > > They should be configured as part of a bridge device (see the
4 > > > > > bridging section of /etc/conf.d/net.example) and have the address
5 > > > > > assigned (and DHCPD listing on) that bridge device.
6 > > > > Except that this doesn't work on WLAN (MAC layer done by the WLAN
7 > > > > adapter).
8 > >
9 > > eth1 and eth2 are both wired, no? How does 802.11a/b/g come into this?
10 >
11 > Yeah, that's just me not reading carefully. But looking at the first
12 > post by the OP, I thought that ath0 was meant to join eth1 and eth2.
13 > See my other mail, I've just clarified this.
14 >
15 > > > > But probably "proxy_arp" can help here. And subnet
16 > > > > separation, of course. Just extending the netmask a bit and enabling
17 > > > > proxy_arp would do the job. OTOH, it's also easy to configure the
18 > > > > routes to the other subnets via DHCP. Just a matter of taste. In any
19 > > > > case, it only works on IP layer.
20 > >
21 > > I must admit that I've never used proxy_arp, but all ARP traffic occurs at
22 > > the ethernet layer, below the IP layer, so it doesn't make sense to me for
23 > > an option/program so named to only work on IP traffic. ARP is also only
24 > > used intra-subnet, so this entire section doesn't make much sense to me.
25 >
26 > Well, for something like a bridge, it has to work inter-(physical-)
27 > subnet. Of course ARP happens on top of the link layer, just as IP. But
28 > ARP is a requirement for IP traffic. And by faking ARP answers for the
29 > computer in the other subnet, a router can redirect IP traffic to
30 > itself. It just claims all addresses in the other subnet. That's what
31 > "proxy_arp" does. So when it in fact uses forwarding, it behaves
32 > similar to a bridge w/ regard to that you don't need to configure all
33 > the computers with a route to the other subnet.
34 >
35 > > In *any* case, it's extremely unlikely that the OP is going to be carrying
36 > > any significant amount of non-IP traffic. I feel that is an extraordinary
37 > > enough condition to be mentioned.
38
39 I'm afraid I can't keep up with you guys here. What I'd like to do is
40 use eth1 and ath0 on my router to "serve" the same local network. Can
41 I bridge them according to net.example to accomplish this? I
42 understand that I will either need to use a crossover cable with eth1
43 or attach a switch to eth1.
44
45 - Grant
46 --
47 gentoo-user@g.o mailing list