Configuring A Loopback Interface - Cisco 7604-RSP720C-R Configuration Manual

Nx-os interfaces
Table of Contents

Advertisement

Configuring Layer 3 Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m

Configuring a Loopback Interface

You can configure a loopback interface to create a virtual interface that is always up.
BEFORE YOU BEGIN
Ensure that the IP address of the loopback interface is unique across all routers on the network.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
2.
3.
4.
5.
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
interface loopback instance
Example:
switch(config)# interface loopback 0
switch(config-if)#
Step 3
ip address ip-address/length
Example:
switch(config-if)# ip address
192.0.2.100/8
ipv6 address ipv6-address/length
Example:
switch(config-if)# ipv6 address
2001:0DB8::18/8
Step 4
show interfaces loopback instance
Example:
switch(config-if)# show interfaces
loopback 0
Step 5
copy running-config startup-config
Example:
switch(config-if)# copy
running-config startup-config
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
4-14
configure terminal
interface loopback instance
ipv4 address ip-address
or
ipv6 address ip-address
(Optional) show interfaces loopback instance
(Optional) copy running-config startup-config
Chapter 4
Purpose
Enters configuration mode.
Creates a loopback interface. The range is from 0 to 1023.
Configures an IP address for this interface. See the Cisco
Nexus 7000 Series NX-OS Unicast Routing Configuration
Guide, Release 5.x, for more information on IP addresses.
Configures an IPv6 address for this interface. See the
Cisco Nexus 7000 Series NX-OS Unicast Routing
Configuration Guide, Release 5.x, for more information
on IPv6 addresses.
(Optional) Displays the loopback interface statistics.
(Optional) Saves this configuration change.
Configuring Layer 3 Interfaces
OL-23435-03

Advertisement

Table of Contents
loading

Table of Contents