Ruteos en Linux - Routing on Linux

19 04 2008

Ver la tabla de rutas

netstat -rn
route

Agregar o quitar una red

route add -net 10.10.10.0/24 gw 192.168.0.1
route del -net 10.10.10.0/24 gw 192.168.0.1

Agregar o quitar un Host

route add -host 10.10.10.45 gw 192.168.0.1
route del -host 10.10.10.45 gw 192.168.0.1

Agregar un default gateway

route add default gw 192.168.0.1
route del default gw 192.168.0.1

Nota: Las rutas quedan permanentes RedHat Linux adicionándolas a /etc/sysconfig/static-routes

:wq!

Mas info aquí.


Acciones

Informacion

Deje un comentario

usted puede usar estos tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>