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

原标题:"思科跨路由器的单臂路由如何解决"相关路由器设置经验分享。 – 来源:路由器之家  思科拥有丰富的行业经验、先进的技术,路由器功能也在世界遥遥领先,那么你知道思科跨”

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

原标题:”思科跨路由器的单臂路由如何解决”相关路由器设置经验分享。 – 来源:【路由器之家】

  思科拥有丰富的行业经验、先进的技术,路由器功能也在世界遥遥领先,那么你知道思科跨路由器的单臂路由如何解决吗?下面是【路由器之家】整理的一些关于思科跨路由器的单臂路由如何解决的相关资料,供你参考。

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

思科跨路由器的单臂路由如何解决

  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

  查看路由表:

  R1#show ip route

  Gateway of last resort is not set

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Serial1/0

  2.0.0.0/24 is subnetted, 1 subnets

  O 2.1.1.0 [110/128] via 1.1.1.2, 00:03:37, Serial1/0

  172.16.0.0/24 is subnetted, 2 subnets

  O 172.16.2.0 [110/129] via 1.1.1.2, 00:03:37, Serial1/0

  O 172.16.3.0 [110/129] via 1.1.1.2, 00:03:37, Serial1/0

  C 192.168.2.0/24 is directly connected, FastEthernet0/0.2

  C 192.168.3.0/24 is directly connected, FastEthernet0/0.3

  R2#show ip route

  Gateway of last resort is not set

  1.0.0.0/24 is subnetted, 1 subnets

  C 1.1.1.0 is directly connected, Serial0/0

  2.0.0.0/24 is subnetted, 1 subnets

  C 2.1.1.0 is directly connected, Serial0/1

  172.16.0.0/24 is subnetted, 2 subnets

  O 172.16.2.0 [110/65] via 2.1.1.2, 00:03:37, Serial0/1

  O 172.16.3.0 [110/65] via 2.1.1.2, 00:03:37, Serial0/1

  O 192.168.2.0/24 [110/65] via 1.1.1.1, 00:03:37, Serial0/0

  O 192.168.3.0/24 [110/65] via 1.1.1.1, 00:03:37, Serial0/0

  R3#show ip route

  Gateway of last resort is not set

  1.0.0.0/24 is subnetted, 1 subnets

  O 1.1.1.0 [110/128] via 2.1.1.1, 00:03:43, Serial1/0

  2.0.0.0/24 is subnetted, 1 subnets

  C 2.1.1.0 is directly connected, Serial1/0

  172.16.0.0/24 is subnetted, 2 subnets

  C 172.16.2.0 is directly connected, FastEthernet0/0.2

  C 172.16.3.0 is directly connected, FastEthernet0/0.3

  O 192.168.2.0/24 [110/129] via 2.1.1.1, 00:03:43, Serial1/0

  O 192.168.3.0/24 [110/129] via 2.1.1.1, 00:03:43, Serial1/0

  SW1配置:

  SW1#vlan database

  SW1(vlan)#vlan 2

  SW1(vlan)#vlan 3

  SW1(vlan)#exit

  SW1#conf t

  SW1(config)#int f0/15

  SW1(config-if)#switchport mode trunk

  SW1(config-if)#switchport trunk encapsulation dot1q

  SW1(config-if)#exit

  SW1(config)#int f0/2

  SW1(config-if)#switchport mode access

  SW1(config-if)#switchport access vlan 2

  SW1(config-if)#exit

  SW1(config)#int f0/3

  SW1(config-if)#switchport mode access

  SW1(config-if)#switchport access vlan 3

  SW1(config-if)#end

  SW2配置:

  SW2#vlan database

  SW2(vlan)#vlan 2

  SW2(vlan)#vlan 3

  SW2(vlan)#exit

  SW2#conf t

  SW2(config)#int f0/15

  SW2(config-if)#switchport mode trunk

  SW2(config-if)#switchport trunk encapsulation dot1q

  SW2(config-if)#exit

  SW2(config)#int f0/2

  SW2(config-if)#switchport access vlan 2

  SW2(config-if)#exit

  SW2(config)#int f0/3

  SW2(config-if)#switchport mode access

  SW2(config-if)#switchport access vlan 3

  SW2(config-if)#end

  验证:

  PC1:

  PC1#ping 192.168.3.3

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 192.168.3.3, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 188/246/300 ms

  PC1#ping 172.16.2.2

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 172.16.2.2, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 408/487/528 ms

  PC1#ping 172.16.3.3

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 172.16.3.3, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 384/441/492 ms

  PC3:

  PC3#ping 172.16.3.3

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 172.16.3.3, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 168/258/348 ms

  PC3#ping 192.168.2.2

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 348/400/452 ms

  PC3#ping 192.168.3.3

  Type escape sequence to abort.

  Sending 5, 100-byte ICMP Echos to 192.168.3.3, timeout is 2 seconds:

  !!!!!

  Success rate is 100 percent (5/5), round-trip min/avg/max = 312/396/516 ms

本文来自投稿,不代表路由百科立场,如若转载,请注明出处:https://www.qh4321.com/25046.html

(0)

相关推荐

  • 如何正确使用计算器

    想必各大工科大佬们对这本东西不陌生吧,其实这本东西讨厌的地方不只是每周都要花时间去研究这个实验,更多的是在做实验之前要去写长长的实验报告,做完实验之后更要去算蛋疼的数据。有时候那些公式太长数据太多,就逼得我们不得去动用多年未用的计算器。很多人拿到这东西只后,会通过自己强大的推导能力然后把公式背在脑

    2021年9月4日
  • 多层路由器设置

    对于路由器大家应该很多人在用!尤其是无线路由器!以下是我的一点经验,分享给大家!对于多层交换互连的用户,自动获取ip选项一定要打开!这样你在自动分配时候!不用手动设置!多层路由器的网关一定不能相同!多

    2020年6月3日
  • iPad怎么远程控制PC电脑 用ipad远程控制电脑步骤

    原标题:"教你iPad怎么远程控制PC电脑?"关于路由器设置教程分享。 – 来源:路由器之家 – 编辑:小元。
    如何用iPad远程控制电脑了,很多人嫌电脑笨重,而用iPad来办公又无法处理很多”

    2021年1月1日
  • 网件WNDR3700无线路由器高端推荐

    原标题:"网件WNDR3700无线路由器高端中的精品"相关路由器设置经验分享。 – 来源:路由器之家  网件WNDR3700无线路由器高端中的精品,很多人可能还不了解,下面是路由器之家整理的”

    2023年8月15日
  • mercury水星无线路由器设置具体步骤

    原标题:"mercury水星无线路由器设置图文教程"相关路由器设置经验分享。 – 来源:路由器之家

    今天为大家分享介绍mercury(水星)无线路由器设置教程,文中以MW150R无线路由器”

    2021年1月9日
  • 中国移动宽带无线wifi设置方法【图】

    原标题:"移动宽带wifi怎么设置?【图】"的相关路由器192.168.1.1登陆页面设置教程资料分享。- 来源:路由器之家。

    问:我家里用的是移动宽带,请问wifi怎么设置?

    答:wifi密码和w”

    2021年1月24日