思科跨路由器的单臂路由解决方法
来源:191路由网 2020-04-14 13:34:33
原标题:"思科跨路由器的单臂路由如何解决"相关路由器设置经验分享。 - 来源:191路由网
思科拥有丰富的行业经验、先进的技术,路由器功能也在世界遥遥领先,那么你知道思科跨路由器的单臂路由如何解决吗?下面是191路由网整理的一些关于思科跨路由器的单臂路由如何解决的相关资料,供你参考。
思科跨路由器的单臂路由解决的方法
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
相关阅读
-
-
x1win10一键恢复镜像-(windows10的系统可以做镜像一键还原)
x1win一键恢复镜像(windows10系统一键还原镜像)我相信很多用户在选择办公笔记本时都联系过联想ThinkPadX1Carbon该型号的笔记本电脑于2017年发布,预装系统为WIN10专业版。最近,该型号笔记本电脑的一位业主报告说,他的电脑似乎中毒了。他想重新安装系统,并询问更安全有效的方法。好吧,下面,小编将联想ThinkPadX1Carbon笔记本重...
2022-10-06
-
-
win10无法启动怎么u盘启动不-(win10无法u盘启动怎么办)
win10不能启动如何启动u盘(win10不能启动u盘怎么办?为什么要准备可开启机?USB启动盘大量用户都经历过各种原因Windows崩溃,停止运行,最终计算机无法启动,硬盘无法访问。对于计算机拥有重要数据的用户来说,这无疑是晴天霹雳!假如你随身携带Windows可开机USB启动盘那一切就很EASY!只需进入BIOS,从可开始改变启动顺序USB执行Windows就可以啦!注意...
2022-10-06
-
-
电脑显示未识别网络怎么办-(电脑显示未识别网络怎么办黄色三角形感叹号)
计算机显示不识别网络怎么办?(计算机显示不识别网络怎么办?黄色三角形感叹号)将U盘连接到计算机,计算机提示无法识别的设备。根据故障现象分析,故障可能是U盘通信故障或计算机未安装USB该故障的主要原因如下:(1)感染计算机病毒。(2)系统U盘驱动程序损坏。(3)系统损坏。(4)电脑USB接口问题。(5)U盘接口问题。(6)U盘电路故障。故障的解决步骤如下:(1)用杀毒软件查杀病毒,未发现...
2022-10-06
-
-
8gu盘diskgenius-()
8gu盘diskgenius()U盘容量突然变小的原因有很多,如格式化不当、硬件直接拔出不安全删除等。,可能会导致U盘故障。如果无法识别或格式化,容量变小的故障也很常见。以下是容量减小故障最简单的方法。方法很简单,只需要使用DiskGenius软件就行。将故障U盘插入电脑(此故障U盘...
2022-10-06
-
-
ghost做系统镜像文件-(ghost制作系统镜像文件)
ghost制作系统镜像文件(ghost制作系统镜像文件)GHOST全盘镜像制作教程(全盘备份).首先,你必须准备两个硬盘.硬盘1为源硬盘是指您需要备份到其他硬盘的主硬盘.以下简称源盘硬盘2用于存储备份硬盘1镜像的磁盘.以下简称目标盘.注意事项:建议创建全盘镜...
2022-10-05
191路由网 - 192.168.1.1,192.168.0.1无线路由器设置教程
版权声明:本站的文章和图片来自互联网收集,仅做分享之用如有侵权请联系站长,我们将在24小时内删除