![Cisco Nexus 3548 series Command Reference Manual Download Page 165](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162165.webp)
145
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
ip address
Examples
This example shows how to configure the IP address 192.168.0.27 as the primary address and
192.168.0.5 as the secondary address for Ethernet interface 1/5:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport
switch(config-if)#
ip address 192.168.0.27 255.255.255.0
switch(config-if )#
ip address 192.168.0.5 255.255.255.0 secondary
switch(config-if)#
Related Commands
Command
Description
copy running-config
startup-config
Saves the configuration change to the startup configuration file.
no switchport
Enables an interface for Layer 3 configuration.
show ip interface
Displays interfaces configured for IPv4.