Grant wrote:
> > I'm pretty confused.  I'm trying to get the system in question to
> > behave like a solid-state router that you can plug an ethernet jack
> > into and be on the network.  How should eth1 and eth2 be configured
> > in /etc/conf.d/net ?
>
> They should be configured as part of a bridge device (see the
> bridging section of /etc/conf.d/net.example) and have the address
> assigned (and DHCPD listing on) that bridge device.

Except that this doesn't work on WLAN (MAC layer done by the WLAN
adapter). But probably "proxy_arp" can help here. And subnet
separation, of course. Just extending the netmask a bit and enabling
proxy_arp would do the job. OTOH, it's also easy to configure the
routes to the other subnets via DHCP. Just a matter of taste. In any
case, it only works on IP layer.

Sounds like I'm getting in over my head.  I think it would be smarter
for me to buy a $15 switch from NewEgg instead of trying to configure
my Gentoo router to use its extra NICs this way.  Is there any reason
I wouldn't want to do that?
Use a switch. Using multiple interfaces to act as a switch is a waste of a good interface. Interfaces are better used to isolate networks from each other. I have one for my WAN, one for my LAN and one for my WIFI LAN. The latter is a very restricted area in case somebody hacks the WPA encryption on my WIFI, they still won't have real access to anything important.

Each interface should have its own network, except in rare cases where bridging is desired.


Tom Veldhouse


--
[email protected] mailing list

Reply via email to