Tuesday, 19 January 2016

IPV6 autoconfiguration 2

IPV6 autoconfig








R1
interface Ethernet0/0
 no ip address
 ipv6 address FC00:1:1:12::1/64
 ipv6 address FC00:1:1:21::1/64
 ipv6 nd prefix FC00:1:1:12::/64
 ipv6 nd prefix FC00:1:1:21::/64 14400 14400
 ipv6 nd ra lifetime 60
 ipv6 nd ra interval 40
!


R2
interface Ethernet0/0
 no ip address
 ipv6 address autoconfig default



R1# sh ipv int eth0/0 pref
IPv6 Prefix Advertisements Ethernet0/0
Codes for 1st column:
       A - Address, P - Prefix-Advertisement, O - Pool
       U - Per-user prefix
Codes for 2nd column and above:
       D - Default
       N - Not advertised, C - Calendar

PD default [LA] Valid lifetime 2592000, preferred lifetime 604800
PAD FC00:1:1:12::/64 [LA] Valid lifetime 2592000, preferred lifetime 604800
PA FC00:1:1:21::/64 [LA] Valid lifetime 14400, preferred lifetime 14400




 In the following example, the show ipv6 interface command is used to verify that IPv6 addresses are configured correctly for FastEthernet interface 0/0. Information may also be displayed about the status of IPv6 neighbor redirect messages, IPv6 neighbor discovery messages, stateless autoconfiguration, and MTU size.

R2# sh ipv6 int eth0/0
Ethernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::A8BB:CCFF:FE00:200
  No Virtual link-local address(es):
  Stateless address autoconfig enabled
  Global unicast address(es):
    FC00:1:1:12:A8BB:CCFF:FE00:200, subnet is FC00:1:1:12::/64 [EUI/CAL/PRE]
      valid lifetime 2591991 preferred lifetime 604791
    FC00:1:1:21:A8BB:CCFF:FE00:200, subnet is FC00:1:1:21::/64 [EUI/CAL/PRE]
      valid lifetime 14391 preferred lifetime 14391
  Joined group address(es):
    FF02::1
    FF02::1:FF00:200
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds (using 30000)
  ND NS retransmit interval is 1000 milliseconds
  Default router is FE80::A8BB:CCFF:FE00:100 on Ethernet0/0




R2# sh ipv route
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       l - LISP
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
ND  ::/0 [2/0]
     via FE80::A8BB:CCFF:FE00:100, Ethernet0/0
NDp FC00:1:1:12::/64 [2/0]
     via Ethernet0/0, directly connected
L   FC00:1:1:12:A8BB:CCFF:FE00:200/128 [0/0]
     via Ethernet0/0, receive
NDp FC00:1:1:21::/64 [2/0]
     via Ethernet0/0, directly connected
L   FC00:1:1:21:A8BB:CCFF:FE00:200/128 [0/0]
     via Ethernet0/0, receive
L   FF00::/8 [0/0]
     via Null0, receive


The following example displays the state of the DRP preference value as advertised by other devices:
Device# show ipv6 routers

R2#sh ipv routers
Router FE80::A8BB:CCFF:FE00:100 on Ethernet0/0, last update 0 min
  Hops 64, Lifetime 60 sec, AddrFlag=0, OtherFlag=0, MTU=1500
  HomeAgentFlag=0, Preference=Medium
  Reachable time 0 (unspecified), Retransmit time 0 (unspecified)
  Prefix FC00:1:1:12::/64 onlink autoconfig
    Valid lifetime 2592000, preferred lifetime 604800
  Prefix FC00:1:1:21::/64 onlink autoconfig
    Valid lifetime 14400, preferred lifetime 14400
R2#