文章导航绿软下载站软件下载安卓资源苹果资源专题

您当前所在位置:首页路由交换思科技术 → IPV4 静态路由 IPV4 Static Route

IPV4 静态路由 IPV4 Static Route

时间:2015/6/28来源:IT猫扑网作者:网管联盟我要评论(0)

目的: 使用静态路由让全网互联。


R1 Configuration:

!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
 ip address 192.168.12.1 255.255.255.0
 half-duplex
!
!
ip route 3.3.3.3 255.255.255.255 192.168.12.2
ip route 4.4.4.4 255.255.255.255 192.168.12.2
ip route 192.168.23.0 255.255.255.0 192.168.12.2
ip route 192.168.24.0 255.255.255.0 192.168.12.2
!
!

 

R2 Configuration:

!
interface Ethernet0/0
 ip address 192.168.12.2 255.255.255.0
 half-duplex
!
!
interface Ethernet0/2
 ip address 192.168.23.2 255.255.255.0
 half-duplex
!
interface Ethernet0/3
 ip address 192.168.24.2 255.255.255.0
 half-duplex
!
!
ip route 1.1.1.1 255.255.255.255 192.168.12.1
ip route 3.3.3.3 255.255.255.255 192.168.23.3
ip route 4.4.4.4 255.255.255.255 192.168.24.4
!
!

R3 Configuration:

!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
!
interface Ethernet0/2
 ip address 192.168.23.3 255.255.255.0
 half-duplex
!
!
ip route 1.1.1.1 255.255.255.255 192.168.23.2
ip route 4.4.4.4 255.255.255.255 192.168.23.2
ip route 192.168.12.0 255.255.255.0 192.168.23.2
ip route 192.168.24.0 255.255.255.0 192.168.23.2
!


R4 Configuration :

!
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
!
!
interface Ethernet0/3
 ip address 192.168.24.4 255.255.255.0
 half-duplex
!
!
ip route 1.1.1.1 255.255.255.255 192.168.24.2
ip route 3.3.3.3 255.255.255.255 192.168.24.2
ip route 192.168.12.0 255.255.255.0 192.168.24.2
ip route 192.168.23.0 255.255.255.0 192.168.24.2
!


------------------------------------
Inspect: (R1):

r1#
r1#
r1#ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/73/188 ms
r1#
r1#
r1#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/87/184 ms
r1#


Inspect: (R2):

r2#
r2#
r2#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/66/96 ms
r2#
r2#ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/57/140 ms
r2#
r2#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/62/104 ms
r2#


Inspect: (R3):

r3#
r3#
r3#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/99/164 ms
r3#
r3#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/65/140 ms
r3#


Inspect: (R4):

r4#
r4#
r4#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/91/172 ms
r4#
r4#ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/62/112 ms
r4#

关键词标签:IPV4,静态路由

相关阅读 没有数据

文章评论
发表评论

热门文章 IPV4 静态路由 IPV4 Static RouteIPV4 静态路由 IPV4 Static RouteQoS中的限速QoS中的限速路由交换操作系统备份与升级路由交换操作系统备份与升级利用VTP协议实现交换机 VLAN配置的一致性利用VTP协议实现交换机 VLAN配置的一致性

相关软件

人气排行 cisco3560三层交换机vlan间路由配置实例使用Cisco Packet Tracer之图解PDUs的使用如何清除交换机配置?网捷(Foundry)网络公司交换机的命令使用Cisco Packer Trace之三层交换机+路由器共享上网清除cisco交换机配置CISCO交换机实现IP地址与MAC地址绑定Cisco access-list 访问控制列表配置全解