Difference between revisions of "Routetable FreeBSD"

From Teknologisk videncenter
Jump to: navigation, search
m (New page: To show the Routetable on a FreeBSD issue the ''netstat -nr'' command. <source lang=cli> [root@mars log]#<input>netstat -nr</input> Routing tables Internet: Destination Gateway...)
 
m (Links)
 
Line 58: Line 58:
 
=Links=
 
=Links=
 
*[http://www.freebsd.org/doc/handbook/network-routing.html FreeBSD on Network Routing]
 
*[http://www.freebsd.org/doc/handbook/network-routing.html FreeBSD on Network Routing]
 +
{{Source cli}}
 
[[Category:FreeBSD]]
 
[[Category:FreeBSD]]

Latest revision as of 06:41, 5 March 2010

To show the Routetable on a FreeBSD issue the netstat -nr command.

[root@mars log]#<input>netstat -nr</input>
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            83.90.47.29        UGS         1 49065185    vr1
10.0.0.0/8         172.16.4.1         UGS         0    34392    em1
83.90.47.28/30     link#4             UC          0        0    vr1
83.90.47.29        00:0c:cf:51:10:38  UHLW        2        0    vr1    185
83.90.47.30        00:50:ba:b1:85:ca  UHLW        1      221    lo0
127.0.0.1          127.0.0.1          UH          0    91013    lo0
172.16.4.0/24      link#2             UC          0        0    em1
172.16.4.1         00:1b:0c:5d:42:c2  UHLW        2        0    em1    795
172.16.4.77        00:0c:29:36:3a:b0  UHLW        1   186605    em1   1189
172.16.4.104       00:0c:29:11:59:37  UHLW        1        2    em1    268
172.16.4.254       00:00:85:b9:9c:4d  UHLW        1    41030    em1   1180
172.16.67.0/24     172.16.4.1         UGS         0     3894    em1
172.21.0.0/16      192.168.22.7       UGS         0        0    em0
172.22.0.0/16      192.168.22.7       UGS         0    14301    em0
172.23.0.0/16      192.168.22.7       UGS         0    13103    em0
172.24.0.0/16      192.168.22.7       UGS         0     4568    em0
172.25.0.0/16      192.168.22.7       UGS         0     2607    em0
192.168.22.0/24    link#1             UC          0        0    em0
192.168.90.0/24    192.168.22.7       UGS         0       55    em0
192.168.128.0/17   172.16.4.1         UGS         0   830877    em1

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#6                        UHL         lo0
ff01:6::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

Flags

FreeBSD Routetable flags
Flag Meaning
U Up: The route is active.
H Host: The route destination is a single host.
G Gateway: Send anything for this destination on to this remote system, which will figure out from there where to send it.
S Static: This route was configured manually, not automatically generated by the system.
C Clone: Generates a new route based upon this route for machines we connect to. This type of route is normally used for local networks.
W WasCloned: Indicated a route that was auto-configured based upon a local area network (Clone) route.
L Link: Route involves references to Ethernet hardware.

Links