Discussion Locked

network design

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
My question is that i have a linux machine(say m1) with two lan cards e1,e2. i want to configure it as router b/w 2 networks having same subnet.plz help me out

1 reply

by mshavrov

Probably you a little confused with words "router" and "subnet".

1. The propose of router is to route (transmit) packets between different subnets.

2. Subnet - computers with different IP Network address. it's defined by IP address and Subnetwork mask. For example,

10.1.1.1 / 255.255.255.0:
Network=10.1.1, "Host"=1

10.1.1.1 / 255.255.0.0:
Network=10.1, "Host"=1.1

10.1.1.1 / 255.0.0.0:
Network=10, "Host"=1.1.1

So, computers with different "Network" part will not see each other unless there is router which interconnects networks together. For example,

10.1.1.1/255.255.255.0 & 10.1.1.99/255.255.255.0 will see each other since they have same "Network" address (10.1.1). But 10.1.1.1/255.255.255.0 & 10.1.2.2/255.255.255.0 will not see, since they have different (10.1.1 & 10.1.2).

And what's concerning Linux:

1. Your NIC cards should be configured with IP addresses of networks they are connected to.

2. You should have "routed" daemon running. This programis responsible for transfering packets between networks.

Good luck.

This discussion is closed to new replies.