Chapter 5 Basic Router Configuration
Configuring a Loopback Interface
DETAILED STEPS
| Command | Purpose |
Step 1 |
|
|
interface type number | Enters configuration mode for the loopback | |
| Example: | interface. |
|
| |
| Router(config)# interface Loopback 0 |
|
|
| |
Step 2 |
|
|
ip address | Sets the IP address and subnet mask for the | |
| Example: | loopback interface. |
|
| |
|
| |
| 255.255.255.0 |
|
|
| |
Step 3 |
|
|
exit | Exits configuration mode for the loopback | |
| Example: | interface and returns to global configuration |
| mode. | |
|
| |
| Router(config)# |
|
|
|
|
Example
The loopback interface in this sample configuration is used to support Network Address Translation (NAT) on the
!
interface loopback 0
ip address 200.200.100.1 255.255.255.0 (static IP address) ip nat outside
!
interface
no ip
!
Verifying Configuration
To verify that you have properly configured the loopback interface, enter the show interface loopback command. You should see a verification output similar to the following example:
Router# show interface loopback 0
Loopback0 is up, line protocol is up
Hardware | is Loopback |
Internet | address is 200.200.100.1/24 |
MTU 1514 | bytes, BW 8000000 Kbit, DLY 5000 usec, |
|
|
| reliability 255/255, | txload 1/255, rxload 1/255 | |
|
|
| Encapsulation LOOPBACK, | loopback not set | |
|
|
| Last input never, output never, output hang never | ||
|
|
| Last clearing of "show interface" counters never | ||
|
|
| Queueing strategy: fifo |
|
|
|
|
| Cisco 819 Series Integrated Services Router Software Configuration Guide | ||
|
|
| |||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|