Configuring Layer 3 Interfaces
Example
This example shows how to configure Ethernet interface 2/1 with a bandwidth value of 80000:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# bandwidth 80000
switch(config-if)# copy running-config startup-config
Configuring a VLAN Interface
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# feature interface-vlan
3. switch(config)# interface vlan number
4. switch(config-if)# ip address ip-address/length
5. switch(config-if)# no shutdown
6. (Optional) switch(config-if)# show interface vlan number
7. (Optional) switch(config-if)# copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# feature interface-vlan
Step 3
switch(config)# interface vlan number
Step 4
switch(config-if)# ip address ip-address/length
Step 5
switch(config-if)# no shutdown
Step 6
(Optional) switch(config-if)# show interface vlan number
Step 7
(Optional) switch(config-if)# copy running-config
startup-config
Example
This example shows how to create a VLAN interface:
switch# configure terminal
switch(config)# feature interface-vlan
Purpose
Enters global configuration mode.
Enables VLAN interface mode.
Creates a VLAN interface. The number range is from 1 to
4094.
Configures an IP address for this interface.
Brings the interface up administratively.
Displays the VLAN interface statistics. The number range
is from 1 to 4094.
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
Configuring a VLAN Interface
31