Configuring Layer 3 Interfaces
Command or Action
Step 7
(Optional) switch(config-if)# copy running-config
startup-config
Example
This example shows how to configure an IPv4-routed Layer 3 interface:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# ip address 192.0.2.1/8
switch(config-if)# copy running-config startup-config
Configuring a Subinterface
Before you begin
• Configure the parent interface as a routed interface.
• Create the port-channel interface if you want to create a subinterface on that port channel.
SUMMARY STEPS
1. (Optional) switch(config-if)# copy running-config startup-config
2. switch(config)# interface ethernet slot/port.number
3. switch(config-if)# ip address ip-address/length
4. switch(config-if)# encapsulation dot1Q vlan-id
5. (Optional) switch(config-if)# show interfaces
6. (Optional) switch(config-if)# copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
(Optional) switch(config-if)# copy running-config
startup-config
Step 2
switch(config)# interface ethernet slot/port.number
Step 3
switch(config-if)# ip address ip-address/length
Step 4
switch(config-if)# encapsulation dot1Q vlan-id
Step 5
(Optional) switch(config-if)# show interfaces
Purpose
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Purpose
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
Enters interface configuration mode. The range for the slot
is from 1 to 255. The range for the port is from 1 to 128.
Configures an IP address for this interface.
Configures IEEE 802.1Q VLAN encapsulation on the
subinterface. The range for the vlan-id is from 2 to 4093.
Displays the Layer 3 interface statistics.
Cisco Nexus 3548 Switch NX-OS Interfaces Configuration Guide, Release 9x
Configuring a Subinterface
29