howtonetwork.net

Cisco Certification Training

  • Products
  • CCNA
    • CCNA Videos
    • CCNA Lectures
    • CCNA Practice Exams
    • Challenge Labs
      • Challenge Video Solutions
    • Cisco Commands
  • CCNP ROUTE
    • ROUTE Exams
  • CCNP SWITCH
    • SWITCH Exams
  • CCNP TSHOOT
  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training
You are here: Home / router-id

router-id

Command

Router-Id

Use

This command manually sets the router-id used by OSPF. If it is not set, OSPF will automatically set its router-id to be the highest loopback IP address or the highest IP address (if no loopback interfaces are present). One thing to note is, even though the router-id is based on an IP address, it can be set to any 32 bit number in an IP address format. For example: 255.255.255.255 is an acceptable router-id.

Syntax

Router(config-router)#router-id <ip address>

Example

In this example we will change R1’s router-id to 10.1.1.1.

R1(config)#router ospf 1
R1(config-router)#router-id 10.1.1.1
Reload or use “clear ip ospf process” command, for this to take effect
R1(config-router)#do clear ip ospf pro
Reset ALL OSPF processes? [no]: y

We can now see that, on R2, the change has taken effect.

R2(config-router)#do show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
133.133.133.133 1 FULL/DR 00:00:32 10.2.2.3 FastEthernet1/0
10.1.1.1 1 FULL/DR 00:00:38 10.1.1.1 FastEthernet0/0

Get access to over 5 hours of IT webinar videos as well as regular study tips and ideas when you
join our mailing list

About This Site

We replaced this site some time ago with an upgraded version. Please feel free to enjoy the content and if you like what you see check out our brilliant new site:

howtonetwork.com

Keep In Touch

About Us

This is a free access website which has now been replaced by howtonetwork.com.

Navigation

  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training

Copyright

All content is protected by international copyright laws. Copyright Reality Press Ltd.

Copyright © 2023 · Dynamik Website Builder on Genesis Framework · WordPress · Log in