Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

9.7. Route

route table

netstat -nr
		

Default Routes

freebsd# route add  default 172.16.0.254
add net default: gateway 172.16.0.254
		

添加静态路由

route add 172.16.3.0/24 172.16.1.240
		

编辑/etc/rc.conf使上面命令开机时执行

static_routes="static1"
route_static1="-net 172.16.3.0/24 172.16.1.240"