OSPFv3 - WordPress.com

advertisement
Timothy Gates
OSPFv3
Working with OSPF in IPv6 is different in that you use the word “IPv6” a lot. When you fire up your
router and enter global configuration mode, you need to tell the router that you will be using IPv6.
So let’s do just that, drag to routers onto the work
area like shown. The first thing to do is enter the
basic commands that we have used till now.
R1(config)#no ip domain-lookup
R1(config)#service password-encryption
R1(config)#security passwords min-length 10
R1(config)#enable secret cisco12345
R1(config)#banner motd %
Enter TEXT message. End with the character '%'.
********************************************************
R1, No unauthorizes Access Allowed Beyond This Point!!!
********************************************************%
R1(config)#line con 0
R1(config-line)#password cisco12345
R1(config-line)#exec-timeout 3
R1(config-line)#login
R1(config-line)#line vty 0 4
R1(config-line)#password cisco12345
R1(config-line)#exec-timeout 3
R1(config-line)#login
R1(config-line)#line aux 0
R1(config-line)#password cisco12345
R1(config-line)#login
R1(config-line)#exec-timeout 3
R1(config-line)#exit
Now this is where it starts to get complicated as there are some new commands that you need to
master, the first is that you will need to enable the router for IPv6, while still in global configuration
mode indicated by R1(config)# type in the following command
R1(config)#ipv6 unicast-routing
You have just told the router you will be working with IPv6, if the router you are using is equipped
with an IOS that is capable of IPv6 you have no problems, however if you get nothing then the IOS is
not ready for IPv6. Next we need to enable the router to run OSPFv3, we need to configure an ID
because there is no IPv4 running here.
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
One of the major differences between OSPF for IPv4 and OSPF for IPv6 is that on IPv4 OSPF runs on
the router, With IPv6 OSPF runs under the interface of the router. Looking at the topology, we can
Timothy Gates
see that on R1 its serial interface is s1/0 so we will include that into OSPF but first before we do that
we need to do something else.
When using IPv6 on an interface, that interface has to be enabled to work with IPv6, type in the
commands that you see below.
R1(config)#int s1/0
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
So what am you just don’t, first you entered the s1/0 then while sitting under the interface, you
enabled that interface to function with IPv6 that is where this command R1(config-if)#ipv6
enable came in. and finally you told the router that this interface is part of OSPF and it is in area
zero which as we already discussed is the backbone, and all areas have to be connected to area zero.
Now we will assign the s1/0 interface an ip address.
R1(config)#int s1/0
R1(config-if)#ipv6 add 2001:DB8:10:10::1/64
R1(config-if)#no shut
R1(config-if)#exit
That’s it for R1, now we go over to R2 and do it all again. On R2 do the basic commands before we
start with OSPF.
R2(config)#no ip domain-lookup
R2(config)#service password-encryption
R2(config)#security passwords min-length 10
R2(config)#enable secret cisco12345
R2(config)#banner motd %
Enter TEXT message. End with the character '%'.
************************************************************
R2, No Unauthorized Access Beyond This Point!!!
************************************************************%
R2(config)#line con 0
R2(config-line)#password cisco12345
R2(config-line)#exec-timeout 3
R2(config-line)#login
R2(config-line)#line vty 0 4
R2(config-line)#password cisco12345
R2(config-line)#exec-timeout 3
R2(config-line)#login
R2(config-line)#line aux 0
R2(config-line)#password cisco12345
R2(config-line)#login
R2(config-line)#exec-timeout 3
R2(config-line)#exit
Again we need to tell the router that we are working with IPv6 this is done with the following
command.
Download