Tuesday, March 31, 2009

freeBSD下的route

Use netstat command with -r option:
$ netstat -r
$ netstat -rn


add default to route table
# route add default 192.168.1.254


up down the interface.But these commands don’t renew the routes
# /etc/rc.d/netif restart
# /etc/rc.d/netif stop
# /etc/rc.d/netif start

to renew the route you must do
/etc/rc.d/routing stop
/etc/rc.d/routing start

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.