
Configuration Examples for Virtual Interfaces
This section provides the following configuration examples:
Configuring a Loopback Interface: Example
The following example indicates how to configure a loopback interface:
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
interface Loopback 3
RP/0/RP0/CPU0:router(config-if)#
ipv4 address 172.18.189.38/32
RP/0/RP0/CPU0:router(config-if)#
end
Uncommitted changes found, commit them? [yes]:
yes
RP/0/RP0/CPU0:router#
show interfaces Loopback 3
Loopback3 is up, line protocol is up
Hardware is Loopback interface(s)
Internet address is 172.18.189.38/32
MTU 1514 bytes, BW Unknown
reliability 0/255, txload Unknown, rxload Unknown
Encapsulation Loopback,
loopback not set
Last clearing of "show interface" counters never
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 total input drops
0 drops for unrecognized upper-level protocol
Received 0 broadcast packets, 0 multicast packets
0 packets output, 0 bytes, 0 total output drops
Output 0 broadcast packets, 0 multicast packets
Configuring a Null Interface: Example
The following example indicates how to configure a null interface:
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
interface Null 0
RP/0/RP0/CPU0:router(config-null0)#
end
Uncommitted changes found, commit them? [yes]:
yes
RP/0/RP0/CPU0:router#
show interfaces Null 0
Null0 is up, line protocol is up
Hardware is Null interface
Internet address is Unknown
MTU 1500 bytes, BW Unknown
reliability 0/255, txload Unknown, rxload Unknown
Encapsulation Null,
loopback not set
Last clearing of "show interface" counters never
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 total input drops
0 drops for unrecognized upper-level protocol
Received 0 broadcast packets, 0 multicast packets
0 packets output, 0 bytes, 0 total output drops
Output 0 broadcast packets, 0 multicast packets
Interface and Hardware Component Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
109
Configuring Virtual Loopback and Null Interfaces
Configuration Examples for Virtual Interfaces