Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting Static Routes to Multiple Subnets on the Same LAN

293 views
Skip to first unread message

nos...@nowhere.duh

unread,
Oct 6, 1999, 3:00:00 AM10/6/99
to
Can anyone point me to information about how to properly setup static
routes to multiple different subnets on the same ethernet LAN. No gateways
between them. I got it to work sucessfully on one system but I tried
it today on another LAN with only two nodes. One in one subnet another in
another subnet with different subnet masks and could not get it to work.

Thanks.

--


Brian M Dial

unread,
Oct 6, 1999, 3:00:00 AM10/6/99
to
you need two pieces of information. the network address (the first ip
in the block) and the subnet mask. then just tell it which interface
that it should route through.

Say you have a class C of 111.222.333.xxx subnetted into blocks of 32 Ip
addresses. your subnet mask for each would be 255.255.255.224. You
could add a route to the first subnet on eth0 with

route add -net 111.222.333.0 netmask 255.255.255.224 eth0

likewise you could add the next one to anther interface (eth1) with

route add -net 111.222.333.32 netmask 255.255.255.224 eth1

and so on...

hope this helps

-Brian

aas...@gmail.com

unread,
Oct 24, 2012, 6:27:02 AM10/24/12
to
is it doable with only 1 NIC? Say, the second command would be:

route add -net 111.222.333.32 netmask 255.255.255.224 eth0:0

Am I right?

Thanks, Aas.

Dňa streda, 6. októbra 1999 9:00:00 UTC+2 Brian M Dial napísal(-a):
0 new messages