Table of ContentsLibraryView in Frames

Example of a routing table

The following example shows routing table output as a response to the netstat -rn command:

netstat -rn
Routing tables

Internet:
Destination 					Gateway 									Flags 					Refs 				Use 	Interface
default 									172.25.100.1 				UGS 							3 	 				21397	e0a
127.0.0.1 							127.0.0.1 							UH 								0 							0 			lo
172.25.100/24 			link#11 									UC 								0 							0 		 e0a
172.25.100.1 				0:d0:d3:0:30:0 		UHL 							1 							0 		 e0a
172.25.100.236 		0:1:30:b8:30:c0		UHL 							0 							0 			e0a
172.25.100.237 		0:1:30:b8:2e:c0 	UHL 							0 							0 			e0a
198.18.0/24 					link#4 										UC 								0 							0 			e4d
198.18.1 								link#8 										UC 								0 							0 			e3d
198.18.2 								link#15 									UC 								0 							0 			lacp-ext
198.18.3 								link#16 									UC 								0 							0 		 multi-ext
198.18.10 							link#4 										UC 								0 							0 		 e4d
198.19.2 								link#17 									UC 								0 							0 		 lacp-cis

Internet v6:
Destination      Gateway            Flags     Refs     Use  Interface
default          fe80::21b:2bff:fed7:ec00%e1a UG 0        0  e1a
::1              ::1                UH          0        0  lo
fd00:abcd::/64   link#3             UC          0        0  e1a
fd20:81be:b255:4213::/64 link#3					UC          0        0  e1a
fd20:81be:b255:4213::1 link#3							UHL         0        0  e1a
fe80::%e1a/64    link#3             UC          0        0  e1a
fe80::21a:a2ff:fe0d:c97f%e1a 0:1a:a2:d:c9:7f    UHL         0        0  e1a
fe80::21b:2bff:fed7:ec00%e1a 0:1b:2b:d7:ec:0    UHL         1        0  e1a
fe80::%lo/64     fe80::1%lo         U           0        0  lo
fe80::%vif1/64   link#9             UC          0        0  vif1
ff01::/32        ::1                U           0        0  lo
ff02::%e1a/32    link#3             UC          0        0  e1a
ff02::%lo/32     fe80::1%lo         UC          0        0  lo
ff02::%vif1/32   link#9             UC          0        0  vif1

In this example, the destination can be a host 172.25.100.1, a network 172.25.100/24, or the default route. If the destination is a subnet on a network, the network number is followed by a forward slash (/) and a number that describes the network mask for that network.

The IPv6 routing table also has the same network parameters except that the network mask is replaced by the prefix length for that network.