EasyManua.ls Logo

Cisco Nexus 3000 series - Configuring Multiple IP Addresses

Cisco Nexus 3000 series
338 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send document comments to nexus3k-docfeedback@cisco.com
2-8
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Chapter2 Configuring IPv4
Configuring IPv4
This example shows how to assign an IPv4 address:
switch# configure terminal
switch(config)# interface ethernet 2/3
switch(config-if)# no switchport
switch(config-if)# ip address 192.2.1.1 255.0.0.0
switch(config-if)# copy running-config startup-config
Configuring Multiple IP Addresses
You can only add secondary IP addresses after you configure primary IP addresses.
SUMMARY STEPS
1. configure terminal
2. interface ethernet number
3. no switchport
4. ip address ip-address/length [secondary]
5. (Optional) show ip interface
6. (Optional) copy running-config startup-config
Step 4
ip address
ip-address/length
[secondary]
Example:
switch(config-if)# ip address 192.2.1.1
255.0.0.0
Specifies a primary or secondary IPv4 address for an
interface.
The network mask can be a four-part dotted
decimal address. For example, 255.0.0.0 indicates
that each bit equal to 1 means the corresponding
address bit belongs to the network address.
The network mask can be indicated as a slash (/)
and a number - a prefix length. The prefix length
is a decimal value that indicates how many of the
high-order contiguous bits of the address
comprise the prefix (the network portion of the
address). A slash must precede the decimal value
and there is no space between the IP address and
the slash.
Step 5
show ip interface
Example:
switch(config-if)# show ip interface
(Optional) Displays interfaces configured for IPv4.
Step 6
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose

Table of Contents

Other manuals for Cisco Nexus 3000 series

Related product manuals