Class C subnetting

Dave Wreski (dave@nic.com)
Sun, 3 Aug 1997 23:13:54 -0400 (EDT)


Hi all. I'm building a firewall with three interfaces, and I'd like to
subnet the Class C that my ISP has given me. I'd like to split it into
four networks, each of which would have 62 hosts. I'm receiving 'network
is unreachable' problems when trying to add a route to the second network.

I'm using a crossover cable to route between two boxes on eth0 of each.

I was given 38.162.122.0. So, this is what I did on the machine that will
be on network 0.

ifconfig eth0 38.162.122.10 netmask 255.255.255.192 broadcast 38.162.122.63
route add -net 38.162.122.0 dev eth0

This seems to work ok, but I don't know how to add a route to the other
box, which is connected via a single crossover cable. In other words,
there's no router involved.

Do I have to create a virtual interface to do this?

Thanks for any ideas,
Dave Wreski