www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ICND2 / Day 39 – OSPF / Day 39 Tasks / Configuring OSPF

Configuring OSPF

Basic OSPF can be enabled on the router with one line of configuration, and then by adding the network statement that specifies on which interfaces you want to run OSPF, not necessarily networks you wish to advertise:

  1. Router ospf 9 ← locally significant number
  2. network 10.0.0.0 0.255.255.255 area 0

OSPF won’t become active until at least one interface is up/up, and remember that at least one area must be Area 0. A Sample OSPF network is illustrated in Figure 39.14 below:

 39.14

Figure 39.14 – A Sample OSPF Network

 

Router A configuration:

router ospf 20

network 4.4.4.4 0.0.0.0 area 0

network 192.168.1.0 0.0.0.255 area 0

router-id 4.4.4.4

Router B configuration:

router ospf 22

network 172.16.1.0 0.0.0.255 area 0

network 192.168.1.0 0.0.0.255 area 0

router-id 192.168.1.2

Router C configuration:

router ospf 44

network 1.1.1.1 0.0.0.0 area 1

network 172.16.1.0 0.0.0.255 area 0

router-id 1.1.1.1

RouterC#show ip route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets

C       1.1.1.1 is directly connected, Loopback0

     4.0.0.0/32 is subnetted, 1 subnets

O       4.4.4.4 [110/129] via 172.16.1.1, 00:10:39, Serial0/0/0

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, Serial0/0/0

O     192.168.1.0/24 [110/128] via 172.16.1.1, 00:10:39, Serial0/0/0

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.