单臂路由,即在路由器上设置多个逻辑子接口,每个子接口对应一个vlan。在每个子接口的数据在物理链路上传递都要标记封装。Cisco设备支持ISL和802.1q(dot1Q)协议。华为只支持802.1q。
DOT1Q和ISL的区别:DOT1Q是各类产品的VLAN通用协议模式,Dot1q是一种普遍使用的标准,适用所有交换机与路由设备。支持超过1024vlan,而ISL最多支持1024个vlan。ISL是CISCO设备的专用协议,适用于Cisco设备。 ISL(Interior Switching Link)交换机间协议用于实现CISCO交换机间的VLAN中继。它是一个信息包标记协议,在支持ISL接口上发送的帧由一个标准以太网帧及相关的VLAN信息组成。

PC1: IP :172.16.3.1/24 GW:255.255.255.0
PC2: IP :172.16.4.1/24 GW:255.255.255.0
S1:
Switch》enable
Switch#vlan database
Switch(vlan)#vlan 30
Switch(vlan)#vlan 40
Switch# configure terminal
Switch(config)#int fastEthernet 0/1
Switch(config-if)#switchport access vlan 30
Switch(config-if)#int f0/2
Switch(config-if)#switchport access vlan 40
Switch(config-if)#int f 0/24
Switch(config-if)#switchport mode trunk (把该接口设置为trunk模式)
Switch(config-if)#switchport trunk allowed vlan all (运行所有vlan通过)
RT1:
Router》enable
Router#configure terminal
Router(config)#int fastEthernet 0/0.1 (进入子接口)
Router(config-subif)#encapsulation dot1Q 30 (封装dot1Q协议,建立与vlan30的关联)
Router(config-subif)#ip add 172.16.3.254 255.255.255.0
Router(config-subif)#int f 0/0.2
Router(config-subif)#encapsulation dot1Q 40 (封装dot1Q协议,建立与vlan40的关联)
Router(config-subif)#ip add 172.16.4.254 255.255.255.0
Router(config-subif)#int f 0/0
Router(config-if)#no shutdown (启动f0/0的接口,包括所有子接口)
完成。Vlan30能与vlan40互相通讯。
相关热词:#ciscol路由器 #电子电路图
三相电机接线信息图
时间:2026-07-23
准 Z 源逆变器的设计
时间:2026-07-23
关于阻容吸收器的简单介绍
时间:2026-07-23
S7-1200和CP343-1的Profinet通信方法
时间:2026-07-23
PDP(等离子显示),PDP是什么意思
时间:2026-07-23
光纤收发器的连接方式和作用
时间:2026-07-22
什么是电磁波?电磁波常见问题
时间:2026-07-22
如何区分有源晶振和无源晶振
时间:2026-07-22
什么是“涡流”以及为什么它们对电机很重要...
时间:2026-07-22
802.11g和802.11n的选择分析
时间:2026-07-21
什么是追踪缓存/转接卡?
时间:2026-03-06
坐标基准
时间:2026-03-07
GPS接收机的分类
时间:2026-03-07
GPS的WAAS跟踪性能
时间:2026-03-07
什么是GPS旅行提示器/屏幕尺寸
时间:2026-03-07
GPS设备的动态性能
时间:2026-03-07
GPS的接口有哪些类型?
时间:2026-03-07
GPS设备的AV接口
时间:2026-03-07
GPS设备的差分模式
时间:2026-03-07
GPS设备的定位时间
时间:2026-03-07