选择接口:选择需要配置为trunk模式的接口。 plaintext interface GigabitEthernet 0/0/1 配置接口为trunk模式:使用port link-type trunk命令将接口配置为trunk模式。 plaintext port link-type trunk 允许特定VLAN通过:使用port trunk allow-pass vlan {vlan-id-list}命令指定允许通过该trunk接口的VLAN列表。例如,允...
port link-type trunk port trunk allow-pass vlan 2 to 4094 interface Ethernet0/0/4 port link-type trunk port trunk allow-pass vlan 2 to 4094 06 SW4配置 vlan batch 10 to 12 20 stp mode stpinterfaceEthernet0/0/1 port link-type access port default vlan 10 interface Ethernet0/0/2 port ...
首先进入端口 int e0/0/1 随后将连接三层交换机的端口模式设为trunk模式:port link-type trunk 最后设置允许通过的vlan:port trunk allow-pass vlan 10 20 (在这个实验中我们的vlan少可以输入all) 再设置另外两个交换机的trunk模式,步骤一样: 配置完成之后便能完成通信 三层交换机 可以做网关配置,pc将数据通过...
portdefaultvlan10 interfaceGigabitEthernet0/0/3 portlink-typeaccess portdefaultvlan20 interfaceGigabitEthernet0/0/4 portlink-typeaccess portdefaultvlan30 interfaceGigabitEthernet0/0/1 #设置连接方式为trunk portlink-typetrunk #允许所有的vlan通过 porttrunkallow-passvlanall quit AR1 system-view sysnameR1 ...
在eNSP中,我们可以按照以下步骤配置Trunk接口: 选择需要配置的交换机和接口。例如,我们选择交换机LSW2的Ethernet 0/0/1接口。 进入接口配置模式。在eNSP的命令行界面中,输入命令“interface Ethernet 0/0/1”进入接口配置模式。 设置接口链路类型为Trunk。输入命令“port link-type trunk”,将接口设置为Trunk类型。
sw1交换机配置sysname LSW1二层配置vlan batch 10 20 30 40 66stp instance 1 root primarystp instance 2 root secondarystp region-configurationregion-name huaweiinstance 1 vlan 10 20instance 2 vlan 30 40active region-configurationinterface Eth-Trunk1port link-type trunkport trunk allow-pass vlan 10 ...
port link-type trunk# 显示某个接口的运行配置参数 display this include-default 查看当前视图的生效配置,包括未被修改的默认配置 使用示例: [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] display this include-default#interface GigabitEthernet0/0/1... quit ...
eNSP配置trunk端口,将接口加入VLAN实例解读 工具/原料 eNSP 方法/步骤 1 启动设备,如图所示 2 两台交换机之间通过端口作VLAN TRUNK连接的设置,进入端口 3 port link-type trunk命令,配置trunk端口 4 端口为trunk模式,并允许VLAN 3 9 1002通过 5 通过display vlan查看当前vlan列表 6 save命令,保存配置内容 7 ...
Eth-Trunk 1链路聚合:[LSW1]interface Eth-Trunk 1 创建Eth-Trunk 1 [LSW1-Eth-Trunk1]mode lacp-static [LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/23 0/0/24 接口添加到Eth-Trunk 1 [LSW1-Eth-Trunk1]port link-type trunk [LSW1-Eth-Trunk1]port trunk allow-pass vlan all [LSW1-Eth-...
port link-type trunkport trunk allow-passvlan 2 to 4094 [S2]dis eth Eth-Trunk10's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 ...