Users Guide

Table Of Contents
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 disbale 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
2 Congure L3 routing in INTERFACE mode. Add the keyword secondary to congure backup IP addresses.
ip address address [secondary]
3 Enable the interface for L3 trac transmission in INTERFACE mode.
no shutdown
L3 interface conguration
OS10(config)# interface ethernet 1/1/9
OS10(conf-if-eth1/1/9)# no switchport
OS10(conf-if-eth1/1/9)# ip address 10.10.1.92/24
OS10(conf-if-eth1/1/9)# no shutdown
View L3 conguration error
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# ip address 1.1.1.1/24
% Error: remove Layer 2 configuration before assigning an IP
Management interface
The Management interface provides management access to the network device. You can congure the Management interface, but the
conguration options on this interface are limited. You cannot congure gateway addresses and IP addresses if it appears in the main
routing table, and proxy ARP is not supported on this interface.
1 Congure the Management interface in CONFIGURATION mode.
interface mgmt 1/1/1
2 Congure an IP address and mask on the Management interface in INTERFACE mode.
ip address A.B.C.D/prefix-length
Interfaces
67