Skip to content

Centos Routes

View Routes#

View all routes

netstat -rn

Will return an ip routing table

Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface UG 0 0 0 eth0 UG 0 0 0 eth0 U 0 0 0 eth0 UH 0 0 0 eth0

Try to telnet or ping a host

telnet 389

Add a route

route add -net netmask gw

Delete a route

route del -net netmask gw