miércoles, 21 de abril de 2010

Cómo ver la tabla de enrutado en Solaris 10

Introducción
Para poder ver la tabla de rutas activa utilizaremos el comando <netstat> con la opción <-r>

root@http:~# netstat -r

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
localhost            localhost            UH        2          0 lo0
172.26.0.0           http                 U         3         39 e1000g0
192.168.20.0         172.26.17.2          UG        2         39

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If
--------------------------- --------------------------- ----- --- ------- -----
localhost                   localhost                   UH      2       0 lo0

Sin embargo, si queremos que no nos resuelva las IPs y nos muestre los valores -no los DNS-, añadiremos la opción <-n>, así
root@http:~# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
127.0.0.1            127.0.0.1            UH        2          0 lo0
172.26.0.0           172.26.17.1          U         3         41 e1000g0
192.168.20.0         172.26.17.2          UG        2         41

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If
--------------------------- --------------------------- ----- --- ------- -----
::1                         ::1                         UH      2       0 lo0



Referencias

No hay comentarios:

Publicar un comentario