静态路由
添加一条路由条目:
Router(config)#ip route 172.16.13.0 255.255.255.0 fastEthernet 0/1
发送到172.16.13.0/24这个网段的数据包从f0/1口发出
管理员手动添加路由条目
浮动静态
在静态设置后面设置值(metric)
值越小优先级越大
优先级小的路由条目会隐藏
当优先级大的链路坏掉就会显示出来
R2(config)#ip route 172.16.1.0 255.255.255.0 172.16.12.1 100
默认路由
ip route 0.0.0.0 0.0.0.0 f0/0
不认识的路由条目都将通过f0/0转发出去
到达所有网络