Step 5: Configure trunk ports Enter the command sh int g0/1 capabilities and check the trunking protocol supported. If ISL is supported, you have to issue the switchport trunk encapsulation dot1q on the trunk port configuration. If not, simply type switchport mode trunk. It means there is ...
switch(config-if)#switchport trunk allowed vlan 1。2 ---设置同意的vlan。默认不用配置。为全部vlan switch(config-if)#switchport trun native vlan 999 ---设置trunk口的native vlan 5、port状态 switch(config)# switch(config)#int fa0/3 switch(config-if)# switch(config-if)# switch(config-if)#s...
switchport trunk allowed vlan all is the default when you configure a port as a trunk so it is enogh to use int gi1/1/3 switchport mode trunk on both sides of the link using a port-channel if possible is recommended. in case LACP is far better then uncondtional ( mode on) ...
There are different types of ports that you can configure on your Cisco Switch like Access port and trunk port. The access port can carry the traffic of a single VLAN only. An access port can be used to connect a PC or IP phone with your Cisco switch. A trunk port can carry the tra...
–You can configure only the first port in each 4-port group (for example, the first port in ports 1-4, the fifth port in ports 5-8, and so on) as an E port. If the first port in the group is configured as a PortChannel, the other three ports in each group (ports 2-4,...
Switch# 配置VLAN trunk configure terminal 进入配置状态 interface interface-ld 进入端口配置状态 swilchport trunk encapsulation (isl I dot1q I negotiate)配置trunk 封装ISL或 802.1Q 或 自动协商 switchport mode (dynamic (auto I desirable) trunk) 配置二层 trunk 模式。
Switch Virtual Interface (SVI) Configuration Example and Explanation 2. Port 以太网端口有三种链路类型:access、trunk、hybird Access类型端口:只能属于1个VLAN,一般用于连接计算机端口; Trunk类型端口:可以允许多个VLAN通过,可以接收和发送多个VLAN 报文,一般用于交换机与交换机的连接。 Hybrid类型端口:可以允许多个VLAN...
show vlan 当trunk已经起来,在switch2上验证已经学到相的vlan配置 configure terminal 在Switch 1上进入配置状态 interface fastethernet0/1 进入要配置的端口 spanning-tree vlan 8 port-priority 10 将端口权值10赋与VLAN 8. spanning-tree vlan 9 port-priority 10 将端口权值10赋与VLAN 9. ...
Switch (config-if-range)#switchport mode trunk 2.配置二层交换机 Sw1创建vlan2、 vlan3并将端口加入vlan Sw1(config)#vlan 2 Sw1(config)#vlan 2 Sw1(config-vlan)#vlan 3 Sw1(config)#interface fastEthernet 0/2 Sw1(config-if)#switchport access vlan 2 ...
Configure default switchport interface state (shut/noshut) [shut]: //配置默认的交换机接口状态 Configure default switchport trunk mode (on/off/auto) [on]: off //配置默认的交换机端口中继模式 Configure default switchport port mode F (yes/no) [n]: //配置默认的switchport端口模式F ...