Network Access

A multilayer switch has interface vlan 10 and interface vlan 20, both with IP addresses and up. Hosts use these addresses as gateways but cannot reach each other across VLANs. Which command is missing?

Show the answer

Correct answerC. ip routing

AWhy not this: Trunking carries multiple VLANs on a link; hosts here are in their VLANs and do not need a trunk to route.

BWhy not this: This sets a management gateway on a Layer 2 switch and does not make SVIs route between VLANs.

CWhy this is right: Without ip routing the switch behaves as a Layer 2 device, so its SVIs do not forward between VLANs.

DWhy not this: This converts a physical port to a routed port; it is not applied to SVIs and does not enable routing.

A multilayer switch only routes between its SVIs once ip routing is enabled in global configuration. ip default-gateway is for a Layer 2 switch's management traffic and does not enable routing.