怎样解决思科路由器单臂路由

2017-07-12az18 的分享   加三联MM小编微信好友:sanlian2018

  怎样解决思科路由器单臂路由?思科跨路由器的单臂路由解决的方法

  R1配置:

  R1#conf t

  R1(config)#int f0/0

  R1(config-if)#no shutdown

  R1(config-if)#int f0/0.2

  R1(config-subif)#encapsulation dot1q 2

  R1(config-subif)#ip address 192.168.2.254 255.255.255.0

  R1(config-subif)#no shutdown

  R1(config-subif)#exit

  R1(config)#int f0/0.3

  R1(config-subif)#encapsulation dot1q 3

  R1(config-subif)#ip address 192.168.3.254 255.255.255.0

  R1(config-subif)#no shutdown

  R1(config-subif)#exit

  R1(config)#int s1/0

  R1(config-if)#ip address 1.1.1.1 255.255.255.0

  R1(config-if)#no shutdown

  R1(config-if)#end

  R1#conf t

  R1(config)#router ospf 1

  R1(config-router)#network 192.168.2.0 0.0.0.255 area 0

  R1(config-router)#network 192.168.3.0 0.0.0.255 are 0

  R1(config-router)#network 1.1.1.0 0.0.0.255 area 0

  R1(config-router)#end

  R2配置:

  R2#conf t

  R2(config)#int s0/0

  R2(config-if)#ip address 1.1.1.2 255.255.255.0

  R2(config-if)#no shutdown

  R2(config-if)#clock rate 64000

  R2(config-if)#exit

  R2(config)#int s0/1

  R2(config-if)#ip address 2.1.1.1 255.255.255.0

  R2(config-if)#no shutdown

  R2(config-if)#clock rate 64000

  R2(config-if)#end

  R2#conf t

  R2(config)#router ospf 2

  R2(config-router)#network 2.1.1.0 0.0.0.255 area 0

  R2(config-router)#network 1.1.1.0 0.0.0.255 area 0

  R2(config-router)#end

  R3配置:

  R3#conf t

  R3(config)#int s1/0

  R3(config-if)#ip address 2.1.1.2 255.255.255.0

  R3(config-if)#no shutdown

  R3(config)#int f0/0

  R3(config-if)#no shutdown

  R3(config-if)#int f0/0.2

  R3(config-subif)#encapsulation dot1q 2

  R3(config-subif)#ip address 172.16.2.254 255.255.255.0

  R3(config-subif)#no shutdown

  R3(config-subif)#exit

  R3(config)#int f0/0.3

  R3(config-subif)#encapsulation dot1q 3

  R3(config-subif)#ip address 172.16.3.254 255.255.255.0

  R3(config-subif)#no shutdown

  R3(config-subif)#end

  R3(config)#router ospf 3

  R3(config-router)#network 172.16.2.0 0.0.0.255 area 0

  R3(config-router)#network 172.16.3.0 0.0.0.255 area 0

  R3(config-router)#network 2.1.1.0 0.0.0.255 area 0

  R3(config-router)#end

TA发布的帖子

746

收藏

613