赞
踩
需求:实现PC4 (192.168.1.1)访问 PC5 (192.168.2.1)
实验拓扑:
实验步骤:
R1:
system-view
sysname R1
interface g0/0
ip address 11.1.1.1 255.255.255.0
undo shutdown
quit
interface g0/1
ip address 192.168.1.254 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.2.0 24 11.1.1.2
R2:
system-view
sysname R2
interface g0/0
ip address 11.1.1.2 24
undo shutdown
quit
interface g0/1
ip address 12.1.1.2 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.2.0 24 12.1.1.3
ip route-static 192.168.1.0 24 11.1.1.1
R3:
system-view
sysname R3
interface g0/1
ip address 12.1.1.3 24
undo shutdown
quit
interface g0/0
ip address 192.168.2.254 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.1.0 24 12.1.1.2
PC4:
PC5:
实验结果:
PC4上测试:
ping 192.168.2.1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。