OSPFv3 is designed to use in IPv6 protocol. It has the same fundamental mechanisme just like OSPFv2 on IPv4. In this article, we will configure simple OSPFv3 using 2 cisco router. Note that, before we enable OSPFv3 on cisco router, we need to enable IPv6 unicast-routing and enable IPv6 on the interface.
Router R1:
1: !
2: ipv6 unicast-routing
3: !
4: interface Loopback0
5: no ip address
6: ipv6 address 2001:100:100:1::1/64
7: !
8: interface FastEthernet0/0
9: no ip address
10: duplex auto
11: speed auto
12: ipv6 address 2001:100:100:100::1/126
13: ipv6 ospf 10 area 0
14: !
15: ipv6 router ospf 10
16: router-id 1.1.1.1
17: log-adjacency-changes
18: redistribute connected
19: !
Router R2:
1: !
2: ipv6 unicast-routing
3: !
4: interface Loopback0
5: no ip address
6: ipv6 address 2001:100:100:2::1/64
7: !
8: interface FastEthernet0/0
9: no ip address
10: duplex auto
11: speed auto
12: ipv6 address 2001:100:100:100::2/126
13: ipv6 ospf 10 area 0
14: !
15: ipv6 router ospf 10
16: router-id 2.2.2.2
17: log-adjacency-changes
18: redistribute connected
19: !
Ping your router to make sure that link from router R1 to R2 is OK.
1: R1#ping 2001:100:100:100::2
2: Type escape sequence to abort.
3: Sending 5, 100-byte ICMP Echos to 2001:100:100:100::2, timeout is 2 seconds:
4: !!!!!
5: Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/32 ms
Now use command 'show ipv6 ospf neighbor' to check whether OSPFv3was established or not.
1: R1#sh ipv6 ospf neighbor
2: Neighbor ID Pri State Dead Time Interface ID Interface
3: 2.2.2.2 1 FULL/DR 00:00:33 4 FastEthernet0/0
Then check what prefix you have from router R2:
1: R1#sh ipv6 route
2: IPv6 Routing Table - 7 entries
3: Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
4: U - Per-user Static route
5: I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
6: O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
7: ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
8: C 2001:100:100:1::/64 [0/0]
9: via ::, Loopback0
10: L 2001:100:100:1::1/128 [0/0]
11: via ::, Loopback0
12: OE2 2001:100:100:2::/64 [110/20]
13: via FE80::C800:14FF:FE02:8, FastEthernet0/0
14: C 2001:100:100:100::/126 [0/0]
15: via ::, FastEthernet0/0
16: L 2001:100:100:100::1/128 [0/0]
17: via ::, FastEthernet0/0
18: L FE80::/10 [0/0]
19: via ::, Null0
20: L FF00::/8 [0/0]
21: via ::, Null0

No comments:
Post a Comment