Cisco – Configuring a loopback interface on a Cisco router

ciscoiosloopbackrouter

I have Router 1 with the following interfaces:

  • FA0/1: 192.168.9.193 255.255.255.224
  • S0/0/0: 192.168.9.129 255.255.255.224
  • S0/0/1: 192.168.9.161 255.255.255.224

This is for my assignment at university, there should be a computer connected to the FA0/1 interface of this router, the computer should have these details:

  • IP: 192.168.9.222
  • Subnet: 255.255.255.224
  • Default Gateway:192.168.9.193.

As I don't have a computer available to connect to the router I was told to use a loopback interface to virtualise this.

Please help me on setting up this loopback.

Best Answer

Just do as you would do with a regular interface:

enable 
conf t 
int loopback 1
ip address 192.168.9.193 255.255.255.224 
no shut

Now enable routing for that subnet on your router and you are all set.