Marcelo Valenzuela <(E-Mail Removed)> wrote:
> Hi, at home I have a PC that has 3 NICs:
>
> eth0: 192.168.0.0/255.255.255.0 (example: 192.168.0.6)
> eth1: dynamic ip to the internet
> eth2: 192.168.0.0/255.255.255.128 (example: 192.168.0.200)
This will cause routing problems, as eth0 encloses eth2. I'm guessing
you think you're trying to split 192.168.0.0/24 into two subnets, in
which case you should make
eth0 192.168.0.0/25 and eth2 192.168.0.128/25
$ ipsc -h 192.168.0.0/25
Address allocation range: 192.168.0.0 - 192.168.0.127
Full subnet mask: 255.255.255.128
$ ipsc -h 192.168.0.128/25
Address allocation range: 192.168.0.128 - 192.168.0.255
Full subnet mask: 255.255.255.128
Alternatively, if you want what is connected to eth0 and eth2 to be on
the same subnet, you can use Linux bridging (802.1d) to make join your
eth0 and eth2 into a switch, creating a new interface sw0 (IIRC, it's
been a long time).
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!