A network administrator is connecting a new IP security camera to interface GigabitEthernet1/0/4 on a Cisco Catalyst switch. VLAN 22 (named CAMERAS) has already been created in global configuration mode. Which set of interface configuration commands correctly configures GigabitEthernet1/0/4 to operate as a static, untagged access port belonging to VLAN 22?
- switchport mode access
switchport access vlan 22Cevap - Bswitchport mode trunk
switchport trunk native vlan 22 - Cip address 192.168.22.1 255.255.255.0
switchport access vlan 22 - Dswitchport mode dynamic desirable
switchport access vlan 22
Cevap
The command sequence incorporating 'switchport mode access' followed by 'switchport access vlan 22' correctly configures the interface as a static access port assigned to VLAN 22.
To configure a switch port for a dedicated end device in Cisco IOS, the port must be explicitly configured as an access port using 'switchport mode access' and assigned to the intended broadcast domain using 'switchport access vlan <vlan-id>'. The command sequence combining 'switchport mode access' and 'switchport access vlan 22' fulfills both requirements cleanly.
Adım Adım Çözüm
Anahtar Kavram
Configuring Cisco IOS Layer 2 Switchports as Static VLAN Access Ports