Send document comments to nexus7k-docfeedback@cisco.com
4-11
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 4 Configuring Layer 3 Interfaces
Configuring Layer 3 Interfaces
SUMMARY STEPS
1. configure terminal
2. feature interface-vlan
3. interface vlan number
4. ip address ip-address/length
or
ipv6 address ipv6-address/length
5. (Optional) show interface vlan number
6. (Optional) copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
feature interface-vlan
Example:
switch(config)# feature interface-vlan
Enables VLAN interface mode.
Step 3
interface vlan number
Example:
switch(config)# interface vlan 10
switch(config-if)#
Creates a VLAN interface. The number range is from
1 to 4094.
Step 4
ip address ip-address/length
Example:
switch(config-if)# ip address
192.0.2.1/8
Configures an IP address for this VLAN interface. See
the Cisco Nexus 7000 Series NX-OS Unicast Routing
Configuration Guide, Release 5.x, for more
information on IP addresses.
ipv6 address ipv6-address/length
Example:
switch(config-if)# ipv6 address
2001:0DB8::1/8
Configures an IPv6 address for this VLAN interface.
See the Cisco Nexus 7000 Series NX-OS Unicast
Routing Configuration Guide, Release 5.x, for more
information on IPv6 addresses.
Step 5
show interface vlan number
Example:
switch(config-if)# show interface vlan
10
(Optional) Displays the Layer 3 interface statistics.
Step 6
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.