R1配置信息:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/static-routing-first/
0 1 2 3 4 5 6 7 8 9 10 |
R1(config)#interface fastethernet 0/0 R1(config-if)#ip address 172.28.12.1 255.255.0.0 R1(config-if)#no shutdown R1(config-if)#interface fastethernet 0/1 R1(config-if)#ip address 10.10.10.10 255.0.0.0 R1(config-if)#no shutdown R1(config)#ip route 200.200.200.0 255.255.255.0 172.28.12.2 (方法1:正常模式) 格式:Router(config)#ip route network [mask] [address] (ip route 网络号 子网掩码 下一跳IP) R1(config)#ip route 200.200.200.0 255.255.255.0 fastEthernet 0/0 (方法2:仅适用于点对点网络) 格式:Router(config)#ip route network [mask] [interface] (ip route 网络号 子网掩码 本路由器出栈接口) R1(config)#do show ip route (S= static 200.200.200.0/24 [1/0] via 172.28.12.2) |
R2配置信息:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/static-routing-first/
0 1 2 3 4 5 6 7 8 9 |
R2(config)#interface fastethernet 0/0 R2(config-if)#ip address 200.200.200.200 255.255.255.0 R2(config-if)#no shutdown R2(config)#interface fastethernet 0/1 R2(config-if)#ip address 172.28.12.2 255.255.0.0 R2(config-if)#no shutdown R2(config)#ip route 10.0.0.0 255.0.0.0 172.28.12.1 (方法1:正常模式) 格式:Router(config)#ip route network [mask] [address] (ip route 网络号 子网掩码 下一跳IP) R2(config)#ip route 10.0.0.0 255.0.0.0 fastEthernet 0/1 (方法2:仅适用于点对点网络) 格式:Router(config)#ip route network [mask] [interface] (ip route 网络号 子网掩码 本路由器出栈接口) |
相关阅读:《静态路由配置试验(02)》文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/static-routing-first/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/static-routing-first/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Trackbacks