Everything2
Near Matches
Ignore Exact
Full Text
Everything2

routing table

created by semprini

(idea) by semprini (2.8 d) (print)   ?   (I like it!) 1 C! Tue Dec 26 2000 at 6:31:16

An internal table of information configured by systems using the TCP/IP protocol to maintain information on how to reach different networks.

To exist on a TCP/IP network, each interface must have an IP address together with a netmask which must be specified together with the IP address to correctly configure an interface, they form a unique node on that network.

(There's an excellent node on subnetting: IP Subnetting)

You can configure an interface with an address quite simply. A system can then connect to that interface and send data. This is fine, pinging a local intarface is used to verify the correct operation of the TCP/IP stack.

Not very useful if you want to talk to other hosts on the network, however. To do that you must tell the TCP/IP stack how to reach other hosts on that network. This information is stored in the system's routing tables.

It would seem logical that if an interface is configured with an IP address of 1.2.3.4 and a netmask of 255.255.255.128, then the system can talk to all other hosts on the same subnet via that interface. This is not automatically configured however, you must specify this. In practice, systems will have scripts that do all this "magically" but the principle is important. Especially if you're ever stuck at a # and wonder why you can't make your computer talk to anything.

So the following entry is placed in the routing tables:

 Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
1.2.3.0              1.2.3.127               U    3  21417  qfe0

This instructs the system that all hosts in the range 1.2.3.0 to 1.2.3.128 can be contacted via the interface named "qfe0". On a windows system this will be replaced with the IP address with which the interface is configured.

The default route can be specified as the way to reach other systems that cannot explicitly contacted according to the system's routing tables. It is assumed that once a packet is sent out the interface configured as the default route, other systems will know how to get the data to its destination.

Note that the default route is not always required and will not always be required.

You can display routing tables with either:

  • netstat -rn (UNIX)
  • route print (Windows)

printable version
chaos

IP subnetting interface TCP/IP Understanding subnets and netmasks
Omninet Windows Ping IP address
route table IP Addresses and How to Deal With Them route IRA
netstat Forwarding routed University of California, Berkeley
Loopback IP Local Area Network OSI Physical Layer peering points
routing loop exchange point routing daemon
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes to live by:
Detonation
time signature
How to buy drugs in an open-air market
When a health professional is not supportive of breastfeeding
Why Angled Shots are Easier than Straight Shots
Jump the shark
Coffee
sandlot
Leader of the Free World
McDonnell Douglas Warranty Card
Node for the Ages
Pleasures of the Flesh -- A tale told between blackouts
How to shrink a head
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
Twin Eclipse
Conversations with God: An Uncommon Dialogue(idea)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
This affordable entertainment brought to you by The Everything Development Company