Connectivity Guide

OS10(conf-pg-1/1/2)# exit
OS10(config)# interface ethernet 1/1/3:2
OS10(conf-if-eth1/1/3:2)#
View the interface
OS10(config)# interface ethernet 1/1/3:2
OS10(conf-if-eth1/1/3:2)# show configuration
!
interface ethernet1/1/3:2
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.
A Trunk interface carries VLAN trac that is tagged using 802.1q encapsulation. If an Access interface receives a packet with an 802.1q tag
in the header that is dierent from the Access VLAN ID, it drops the packet.
By default, a trunk interface carries only untagged trac on the Access VLAN. You must manually congure other VLANs for tagged
trac.
1 Select one of the two available options:
Congure L2 trunking in INTERFACE mode and the tagged VLAN trac that the port can transmit. By default, a trunk port is not
added to any tagged VLAN. You must create a VLAN before you can assign the interface to it.
switchport mode trunk
switchport trunk allowed vlan vlan-id-list
Recongure the access VLAN assigned to a L2 access or trunk port in INTERFACE mode.
switchport access vlan vlan-id
2 Enable the interface for L2 trac transmission in INTERFACE mode.
no shutdown
L2 interface conguration
OS10(config)# interface ethernet 1/1/7
OS10(conf-if-eth1/1/7)# switchport mode trunk
OS10(conf-if-eth1/1/7)# switchport trunk allowed vlan 5,10
OS10(conf-if-eth1/1/7)# no shutdown
L3 mode conguration
Ethernet and port-channel interfaces are in L2 access mode by default. When you disablethe L2 mode and then assign an IP address to an
Ethernet port interface, you place the port in L3 mode.
Congure one primary IP address in L3 mode. You can congure up to 255 secondary IP addresses on an interface. At least one interface in
the system must be in L3 mode before you congure or enter a L3–protocol mode, such as OSPF.
1 Remove a port from L2 switching in INTERFACE mode.
no switchport
Interfaces
151