Reference Guide

Interfaces
You can congure and monitor physical interfaces (Ethernet), port-channels, and virtual local area networks (VLANs) in Layer 2 (L2) or
Layer 3 (L3) modes.
Table 1. Interface types
Interface type Supported Default mode Requires creation Default status
Ethernet (PHY) L2, L3 unset No no shutdown enabled
Management N/A N/A No no shutdown enabled
Loopback L3 L3 Yes no shutdown enabled
Port-channel L2, L3 unset Yes no shutdown enabled
VLAN L2, L3 L3 Yes, except default no shutdown enabled
Ethernet interfaces
Ethernet port interfaces are enabled by default. To disable an Ethernet interface, use the shutdown command.
To re-enable a disabled interface, use the no shutdown command.
1 Congure an Ethernet port interface from Global CONFIGURATION mode.
interface ethernet node/slot/port[:subport]
2 Disable and re-enable the Ethernet port interface in INTERFACE mode.
shutdown
no shutdown
Disable Ethernet port interface
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# shutdown
Enable Ethernet port interface
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no shutdown
L2 mode conguration
Each physical Ethernet interface uses a unique MAC address. Port-channels and VLANs use a single MAC address. By default, all the
interfaces operate in L2 mode. From L2 mode you can congure switching and L2 protocols, such as VLANs and Spanning-Tree Protocol
(STP) on an interface.
Enable L2 switching on a port interface in Access or Trunk mode. By default, an interface is congured in Access mode. Access mode
allows L2 switching of untagged trac on a single VLAN (VLAN 1 is the default). Trunk mode enables L2 switching of untagged trac on
the Access VLAN, and tagged trac on one or more VLANs.
By default, native VLAN of a port is the default VLAN ID of the switch. You can change the native VLAN using the switchport access
vlan vlan-id command.
2
72 Interfaces