ensp配置access和trunk接口
时间: 2024-06-07 08:06:16 浏览: 223
首先,access接口是指连接到终端设备的接口,它只能传输一个VLAN的数据,而trunk接口可以传输多个VLAN的数据。因此,配置access和trunk接口的命令有所不同。
配置access接口的步骤如下:
1. 进入接口配置模式:interface interface-type interface-number
例如:interface GigabitEthernet 0/1
2. 配置接口为access模式:switchport mode access
3. 配置接口所属的VLAN:switchport access vlan vlan-id
例如:switchport access vlan 10
4. 配置接口的描述信息:description description-string
例如:description Connect to PC
配置trunk接口的步骤如下:
1. 进入接口配置模式:interface interface-type interface-number
例如:interface GigabitEthernet 0/2
2. 配置接口为trunk模式:switchport mode trunk
3. 配置接口允许传输的VLAN:switchport trunk allowed vlan vlan-list
例如:switchport trunk allowed vlan 10,20,30
4. 配置接口的本地VLAN:switchport trunk native vlan vlan-id
例如:switchport trunk native vlan 10
5. 配置接口的描述信息:description description-string
例如:description Connect to other Switch
阅读全文
相关推荐


















