QuestionQ454

Network Access

Question Image

Refer to the exhibit. The engineer has configured the VLANs on the new AccSw2 switch. A router-on-a-stick is connected to both switches.

How should the ports on AccSw2 be configured to provide full connectivity between the two switches and for Server1?

  • A interface GigabitEthernet1/1switchport access vlan 11!interface GigabitEthernet1/24switchport mode trunkswitchport trunk allowed vlan 10,11
  • B interface GigabitEthernet1/3switchport mode accessswitchport access vlan 10!interface GigabitEthernet1/24switchport mode trunkswitchport trunk allowed vlan 2,10
  • C interface GigabitEthernet1/3switchport mode accessswitchport access vlan 10!interface GigabitEthernet1/24switchport mode trunk
  • D interface GigabitEthernet1/1switchport mode accessswitchport access vlan 11!interface GigabitEthernet1/24switchport mode trunk
Explanation

Server1 uses the 10.0.2.0/24 network, which corresponds to the Servers VLAN shown as VLAN 10, so its connected access port on AccSw2 must be assigned to VLAN 10. The uplink between the two access switches must operate as a trunk so multiple VLANs, including VLAN 10 and VLAN 11, can traverse the inter-switch link and reach the router-on-a-stick. Cisco documentation states that switchport mode trunk configures an interface as a VLAN trunk and that all VLANs are allowed on a trunk by default unless switchport trunk allowed vlan is used to restrict them. That makes the configuration with Gi1/3 as access VLAN 10 and Gi1/24 as a trunk the valid answer.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!