What is the gateway on a routing table for an interconnected network?
-
Okay, I'll try and say this as visually possible. I have created 4 networks that are interconnected. Each network is separated by a router. I am wanting to show the routing table for a router that can connect to all devices on the interconnected network. I have chosen router 1. As follows; Network 1 -> Router 1 -> Network 2 -> Router 2 -> Network 3 -> Router 3 -> Network 4 (Network 1 = Class A, Network 3 and 3 are subnets of a Class B address, Network 4 is a Class C) Each network has 3 hosts on each. If I wanted to connect to a host on on Network 4 from Network 1, the routing table would be like this. Network Destination - This would be the IP address of the host I want to connect to. Gateway - Would this be 255.255.255.255 as I want to connect to a host that has the exact IP address? Or would it be 0.0.0.0 because the IP address doesn't have any octets similar to the source IP address? Gateway - Because the device I am wanting to connect to isn't on the local network it can't be "On-link". Which means I must have an IP address. But what would the IP address be? Would it be of the router? :S Interface - This would be the left hand side of router 2 (the IP address of Network 2 but ending in .1). Metric - This would be 2. Because at that point a packet of data would have to hop twice after researching router 1. Or would router 1 count itself as a hop - so it would be 3 and not 2? Sorry for the silly amount of questions that I am asking. But if anyone has any input and willing to answer or give advice, then please do! Thank you for evening reading this :)
-
Answer:
LOL this is a long read! When a router receives a packet, it first looks up the learned or pre-configured route(s) in it's routing table. If the route(s) exist in the routing table, the packet is forwarded to the appropriate router. If the route does not exist within the routing table, the router will forward the packet(s) to the default gateway configured, and this process described is repeated at the default gateway. If the route cannot be found, the packet(s) are dropped. 255.255.255.255 is a broadcast address for "all networks", as is 0.0.0.0. These IP addresses cannot be used for a default gateway, as routers will not accept packets with these IP addresses. Not that I've heard of anyway. I hope this helps. You sound like you are new to routing and are learning fast...too fast. Start with the basics and build from there. Specifically, look up "default gateway" and take flight from there. All I can say is, ask, ask, ask and hang in there, bud. It will all make sense in time. I'm no expert, but one thing I know is, you have an information overload going on. Best wishes.
James at Yahoo! Answers Visit the source
Other answers
LOL this is a long read! When a router receives a packet, it first looks up the learned or pre-configured route(s) in it's routing table. If the route(s) exist in the routing table, the packet is forwarded to the appropriate router. If the route does not exist within the routing table, the router will forward the packet(s) to the default gateway configured, and this process described is repeated at the default gateway. If the route cannot be found, the packet(s) are dropped. 255.255.255.255 is a broadcast address for "all networks", as is 0.0.0.0. These IP addresses cannot be used for a default gateway, as routers will not accept packets with these IP addresses. Not that I've heard of anyway. I hope this helps. You sound like you are new to routing and are learning fast...too fast. Start with the basics and build from there. Specifically, look up "default gateway" and take flight from there. All I can say is, ask, ask, ask and hang in there, bud. It will all make sense in time. I'm no expert, but one thing I know is, you have an information overload going on. Best wishes.
Andrew
Related Q & A:
- How to add a new table to a data source?Best solution by technet.microsoft.com
- What is Hash Table, how to create a hash table?Best solution by Stack Overflow
- How to make a dynamic table in PHP?Best solution by Stack Overflow
- What Printers Does Gateway Laptop Support?Best solution by support.gateway.com
- What is a good game engine with solid network support?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.