A network administrator is reconfiguring interface GigabitEthernet0/2 on a Cisco Catalyst switch. The interface is currently connected to a trunking partner device and is actively operating as an 802.1Q trunk port via Dynamic Trunking Protocol (DTP). The administrator enters the following interface configuration command:
Switch(config-if)# switchport access vlan 50
VLAN 50 does not currently exist in the switch VLAN database. Assuming all other configuration settings remain at default, what is the resulting operational state of interface GigabitEthernet0/2 and VLAN 50?
- VLAN 50 is automatically created in the VLAN database, but interface GigabitEthernet0/2 continues to operate as an active trunk port.Cevap
- BInterface GigabitEthernet0/2 immediately transitions to an operational access port in VLAN 50, disabling trunk negotiation.
- CInterface GigabitEthernet0/2 remains an 802.1Q trunk port, and VLAN 50 is automatically designated as its new untagged native VLAN.
- DThe command is rejected with an error because VLAN 50 must be manually created in global configuration mode before assignment.
Cevap
VLAN 50 is automatically created in the switch VLAN database, but interface GigabitEthernet0/2 continues to operate as a trunk port.
When configuring 'switchport access vlan 50' on a Cisco Catalyst interface, Cisco IOS automatically creates VLAN 50 in the VLAN database if it does not already exist. However, configuring the access VLAN value only affects traffic when the interface operates in access mode. Since the port was dynamically negotiating as an 802.1Q trunk and no explicit 'switchport mode access' command was issued, the interface remains in trunking operational mode.
Adım Adım Çözüm
Anahtar Kavram
Separation of Access VLAN Configuration and Interface Operational Mode in Cisco IOS
Tahmini Süre:1m 30s