|
7. Any one care to
interpret the routing table in the attached file (attroute)? Please only
interpret one column per person.
For this conference I've
added some more information to what was already talked about. There
was also one error noted. I replaced the flag B, which I couldn't
find reference to, with the flag G, which does reference that the route
uses a gateway
[guster@underdark /sbin]$ ./route
Kernel IP routing table
Destination Gateway
Genmask Flags Metric Ref
Use Iface
10.0.0.0 *
255.255.255.0 U 0
0 0 eth1
199.17.59.0 *
255.255.255.0 U 0
0 0 eth0
192.168.2.0 *
255.255.255.0 U 0
0 0 eth0
199.17.40.0 199.17.59.254
255.255.255.0 UG 0
0 0 eth0
127.0.0.0 *
255.0.0.0 U 0
0 0 lo
default
199.17.59.254 0.0.0.0
UG 0 0
0 eth0
The second column of
netstat's output shows the gateway the routing entry points to. If no
gateway is used, an asterisk is printed instead. Column three shows the
``generality'' of the route. When given an IP-address to find a suitable
route for, the kernel goes through all routing table entries, taking the
bitwise AND of the address and the genmask before comparing it to the
target of the route.
Flags - there are
several options that can be set, to include:
G The route uses a gateway.
U The interface to be used is up.
H Only a single host can be reached through the route. For example, this
is the case for the loopback entry 127.0.0.1.
D This route is dynamically created.
M This route is set if the table entry was modified by an ICMP redirect
message.
! The route is a reject route and datagrams will be dropped
The Ref
column of netstat's output shows the number of references to this route,
that is, how many other routes (e.g. through gateways) rely on the
presence of this route. The last two columns show the number of times the
routing entry has been used, and the interface that datagrams are passed
to for delivery.
The Iface column
lists the local interface associated with getting to the destination IP.
10. If packets are source
routed where is the source routing information stored in the packet (look
in the ip header)?
I think that the source
routing information is contained on the options portion of the IP header,
which follows the destination address.
Source
|