Question
June 18, 2008 at 08:27 AM
cewcathar

Routing of packets, bridging between subnets on a linux system

by cewcathar . Updated 18 years, 1 month ago

Hi, I’m studying for the CISCO, and have a question about routing–some of which is sure to come up.

Suppose you have RouterN with subinterface address of 192.168.129.81 Net Mask 255.255.255.240

and a linux proxy with a NIC whose ip address is configured as 192.168.129.83 Net Mask 255.255.255.248

now regardless of the mask, both ip’s are on the same subnet and there should be no problem routing between the subif and the compuer, there’s just a different broadcast address, right?

If you have another subif, ip address 192.168.129.89 Net Mask 255.255.255.240
and another linux proxy whose NIC has an ip of 192.168.129.90 Net Mask 255.255.255.248 configured on it again the two route.

But there may be problems trying to use RouterN to try to route between the two linux proxies, right? As the router will perceive them to be on the same subnet? Will it still try to route?? It really won’t know what address to use? Is that right?

So I change the sub if net masks to 255.255.255.248

Now all works as far as routing goes.

Now what if I have a second NIC on each proxy with ip forwarding enabled so the proxy acts as a router, and tne second NIC is for say an ip like 192.168.129.82 with a Net Mask of 255.255.255.240 (back to the other Net Mask), will I be able to use the proxy to bridge between the subnet and the larger Net Mask 255.255.255.240 subnet it is a member of?

Thanks.

–cew

This discussion is locked

All Comments