Hello I have some basic questions on some network and routing issue
I need to setup two pc 's A and B acting as gateways ( running on Fedora ) assigned ip adress 10.3.5.223 for pc A and 10.3.4.225 for pc B connected to a private lan network 10.3.0.0 now the subnet for the gateway A is a network 10.10.1.0 / 24 , gateway A in this subnet got ip address 10.10.1.1 and subnet for gateway B is a network 10.20.1.0/24, gateway B ip address is 10.20.1.1
now I need to get a pc in subnet 10.10.1.0 / 24, communicate with a pc in subnet 10.20.1.0/24, How do I achieve that ? thru a routing table right ?
what do I need to fill in my route table in system-config-network ?
Thanks for replying
hicham
hicham said:
Hello I have some basic questions on some network and routing issue
I need to setup two pc 's A and B acting as gateways ( running on Fedora ) assigned ip adress 10.3.5.223 for pc A and 10.3.4.225 for pc B connected to a private lan network 10.3.0.0 now the subnet for the gateway A is a network 10.10.1.0 / 24 , gateway A in this subnet got ip address 10.10.1.1 and subnet for gateway B is a network 10.20.1.0/24, gateway B ip address is 10.20.1.1
now I need to get a pc in subnet 10.10.1.0 / 24, communicate with a pc in subnet 10.20.1.0/24, How do I achieve that ? thru a routing table right?
Why don't you use two NICs on both PCs..one NIC to have an IP from 10.10.1.0/24 subnet and the 2nd NIC to ave an IP from 10.20.1.0/24 subnet and vice-versa..
Alternatively you could do IP aliasing..
what do I need to fill in my route table in system-config-network ?
Thanks for replying
hicham
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
---------------------------------------------------------------------------- David Maina. Systems/Network Administrator. PdE-Kenya. P. O. Box 1239 - 20100. Nakuru, Kenya. Telephone:+254-51-850298/850333. Cell:+254-721-950073. Registered Linux User #407239. ---------------------------------------------------------------------------- "By golly, I'm beginning to think Linux really *is* the best thing since sliced bread."
hicham said:
Hello I have some basic questions on some network and routing issue
I need to setup two pc 's A and B acting as gateways ( running on Fedora ) assigned ip adress 10.3.5.223 for pc A and 10.3.4.225 for pc B connected to a private lan network 10.3.0.0 now the subnet for the gateway A is a network 10.10.1.0 / 24 , gateway A in this subnet got ip address 10.10.1.1 and subnet for gateway B is a network 10.20.1.0/24, gateway B ip address is 10.20.1.1
now I need to get a pc in subnet 10.10.1.0 / 24, communicate with a pc in subnet 10.20.1.0/24, How do I achieve that ? thru a routing table right?
what do I need to fill in my route table in system-config-network ?
I'm afraid I only know how to do this manually. You can either use Quagga (seems like overkill for just 2 routes) or static routes. Make up a diagram of your network and label everything properly so we can figure out exactly what you need. Simple ASCII art is fine. You don't have to use the real IP addresses but if you are traversing the Internet lets us know as that will require different tools (possibly).
hicham wrote:
Hello I have some basic questions on some network and routing issue
I need to setup two pc 's A and B acting as gateways ( running on Fedora ) assigned ip adress 10.3.5.223 for pc A and 10.3.4.225 for pc B connected to a private lan network 10.3.0.0 now the subnet for the gateway A is a network 10.10.1.0 / 24 , gateway A in this subnet got ip address 10.10.1.1 and subnet for gateway B is a network 10.20.1.0/24, gateway B ip address is 10.20.1.1
I'm assuming pc B is supposed to be in network B? You aren't very clear and you picked horrible network numbers. From what I can see, neither of the PC's is actually in either of your networks. With a netmask of /24, all pcs in network A would need addresses that start with 10.10.1 and network B would need 10.20.1. Plus, gateways for any subnet need to be in the same subnet of the PC's they are routing for.
now I need to get a pc in subnet 10.10.1.0 / 24, communicate with a pc in subnet 10.20.1.0/24, How do I achieve that ? thru a routing table right ?
Without a router with an interface (physical or virtual) on each network, two devices can't talk to each other. That's the bottom line. You can only talk directly to a device on your own network, if a device is not on your network, then you have to talk to a gateway (router) that is on your own network.
what do I need to fill in my route table in system-config-network ?
So, if you have two PCs that are on the same ethernet segment, but with different IP networks, then you either have to have a router on that ethernet segment, or plumb multiple IP addresses on each PC so they are on the same networks.
Hopefully that makes sense. If you need more help, just send more information.
Thanks for replying
hicham