Recent Posts

Friday, 24 November 2017

IPv6 OSPF Configuration SIM

Hi ! everyone on today we are going to look over The basic features of the OSPFv3 routing protocol are almost same as provided by OSPFv2. However, OSPFv3 is designed to support IPv6-capable networks. In the previous posts, we have discussed a lot about the OSPF routing protocol.


Step by step configuration on ospf for ipv6

To configure OSPF for IPv6, we will use the following topology. You can use either Cisco Packet Tracer or GNS3 depending on your choice to create the following topology.




Once you have created the preceding topology, configure the following IPv6 addresses on the routers.

IPv6 Address Table for OSPFv3

Once you have configured the preceding IPv6 addresses, you can start to configure OSPFv3 routing. In order to configure the OSPFv3 routing, first, we would like to discuss the high-level steps used to configure OSPFv3 routing:
  1. Enabling IPv6 routing: In order to enable IPv6 routing on a router, you need to use ipv6 unicast-routing
  2. Assigning an OSPF router ID: In order to assign an OSPF router ID, you need to use the router-id <router-id> command in the router configuration mode.
  3. Defining areas and enabling OSPFv3 on the desired interfaces: In order to define an area and enable the OSPFv3 routing on an interface, you need to use the ipv6 ospf <process ID> area <area number> command in the interface configuration mode.

Configure OSPF for ipv6 on Router1

Once you have understood the high-level steps to configure OSPFv3, let’s begin the step by step OSPFv3 configuration.

1. On Router1, execute the ipv6 unicast-routing command at the global configuration mode to enable IPv6 routing.
Router1(config)#ipv6 unicast-routing
2. Next, configure 1.1.1.1/8 ipv4 address on the loopback0 interface. This IP address will be used as router-id for this router.
Router1(config)#int loopback1
Router1(config-if)#ip address 1.1.1.1 255.0.0.0
Router1(config-if)#exit

3. Next step is to create an OSPFv3 process and define the router ID.

Router1(config)#ipv6 router ospf 1
Router1(config-rtr)#router-id 1.1.1.1

Router1(config-rtr)#exit

4. Next is to enable OSPFv3 routing on the interfaces that you want to advertise in the network, in this example, we will enable OSPFv3 routing on the FastEthernet0/0 interface.

Router1(config)#int fa0/0
Router1(config-if)#ipv6 address 2001:abcd:0123:1::1/64

Router1(config-if)#ipv6 ospf 1 area 0
Router1(config-if)#no shutdown
Router1(config)#exit


Configure OSPF for ipv6 on Router2

Once you have configured OSPFv3 on Router1, move on to Router2 and execute the following commands.
1. Execute the ipv6 unicast-routing command at the global configuration mode to enable the IPv6 Routing.
Router2(config)#ipv6 unicast-routing
2. Next, configure 2.2.2.2/8 IPv4 address on the lo0 loopback interface. This IP address will be used as router-id for this router.
Router2(config-if)#ip add 2.2.2.2 255.0.0.0
Router2(config-if)#exit


3.Next, create an OSPFv3 process and define the router ID.
Router2(config)#ipv6 router ospf 1
Router2(config-rtr)#router-id 2.2.2.2
Router2(config-rtr)#exit

4. Next enable OSPFv3 routing on the interfaces that you want to advertise in the network.

Router2(config)#int fa0/0
Router2(config-if)#ipv6 ospf 1 area 0
OSPFv3: No IPV6 enabled on this interface
Router2(config-if)#ipv6 add 2001:abcd:0123:1::2/64
Router2(config-if)#no shut
Router2(config-if)#exit

Router2(config)#int fa0/1
Router2(config-if)#ipv6 add 2002:abcd:0123:2::1/64
Router2(config-if)#ipv6 ospf 1 area 1
Router2(config-if)#no shut
Router2(config-if)#exit


Configure OSPF for ipv6 on Router3



Once you have configured OSPFv3 on Router1 and Router2, move on to Router3 and execute the following commands.
Router3(config)#ipv6 unicast-routing
Router3(config)#int loopback1
Router3(config-if)#ip add 3.3.3.3 255.0.0.0
Router3(config-if)#exit
Router3(config)#ipv6 router ospf 1
Router3(config-rtr)#router-id 3.3.3.3
Router3(config-rtr)#exit

Router3(config)#int fa0/1
Router3(config-if)#ipv6 add 2002:abcd:0123:2::2/64
Router3(config-if)#ipv6 ospf 1 area 1
Router3(config-if)#no shut
Router3(config-if)#exit

Verify the configurations

Well, you have successfully configured OSPFv3 on all the routers. Now, it’s time to verify your configuration using through these commands as follows:

1. show ipv6 route
2. show ipv6 ospf neighbor
3. show ipv6 ospf interface
4. show ipv6 ospf border-routers




No comments:

Post a Comment

Popular Posts