Wednesday, 28 December 2016

IPv6 BASICS PART ONE & TWO

ipv4 vs ipv6 addressing format

YOUTUBE LINK:          

Please find playlist in Hindi & English below:https://www.youtube.com/playlist?list=PL1PiPEQOeKMYqOvyKpym_dkoFY2y5BKt0https://www.youtube.com/playlist?list=PL1PiPEQOeKMY3r659R5gyWt4ScTzpyg6w

* A.B.C.D  each place denotes 1 byte
*ipv6 hexadecimal xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
2 char = 1 byte
RFC 2373


ipv6 address space

aggregatable global unicast address 
001
link-local unicast address
1111 1110 10
site-local unicast address 
1111 1110 11
multicast address 
1111 1111 

ipv6 address space

Global unicast               2000     3fff (2001) (2002 automatic 64 tunnel space )
Site Local                     FEC0
link- local                     FE80
Multicast                      FF

Modified EUI-64 Addressing

ipv6 host addresses are generated from interface MAC address
MAC address is 48 bits
IPv6 host address is 64-bits
Extra 16 bits derived as follows:
-MAC 1234.5678.9012
-Invert 7th most singificant bit
1034.5678.9012
insert "FFFE" in middle 1034:56FF:FE78:9012
(ca00.1044.0008)



conf)#ipv6 unicast-routing
conf)#int fa0/0
conf-if)#no sh
conf-if)#do sh ipv6 interface fa0/0
FE80::C800:10FF:FE44:8
conf-if)#do sh int fa0/0
conf-if)#mac-address 1234.4567.8901
FE80::1034:56FF:FE78:9012

ICMPv6 Neighbour Discovery 

NS-Neighbour Solicitation
-ask for information abour neibhor
NA - Neighbour Advertisement
- Advertise yourself to other neighbors
RS - Router Solicitation
-Ask for information about local routers
RA - Router Advertisement
-Advertise yourself as an active router

IPv6 lab : 


conf)#no service timestamp
conf)#logging buffer
#debug ipv6 packets
#debug ipv6 nd
conf)#ipv6 unicast-routing
conf)#int fa0/0
conf-if)#ipv6 enable
conf)#int fa1/0
conf-if)#ipv6 enable
one(config-if)#ipv6 enable
one(config-if)#
IPV6: source :: (local)
      dest FF02::16 (FastEthernet0/1)
      traffic class 224, flow 0x0, len 76+0, prot 0, hops 1, originating
IPv6: Sending on FastEthernet0/1
IPV6: source :: (local)
      dest FF02::16 (FastEthernet0/1)
      traffic class 224, flow 0x0, len 76+0, prot 0, hops 1, originating
IPv6: Sending on FastEthernet0/1
IPV6: source :: (local)
      dest FF02::16 (FastEthernet0/1)
      traffic class 224, flow 0x0, len 76+0, prot 0, hops 1, originating
IPv6: Sending on FastEthernet0/1
ICMPv6-ND: Sending NS for FE80::C800:10FF:FE44:6 on FastEthernet0/1
IPV6: source :: (local)
      dest FF02::1:FF44:6 (FastEthernet0/1)
      traffic class 224, flow 0x0, len 64+16, prot 58, hops 255, originating
IPv6: Sending on FastEthernet0/1


one(config-if)#do sh ipv6 int bri
FastEthernet0/0            [up/up]
    FE80::1034:56FF:FE78:9012
FastEthernet0/1            [up/up]
    FE80::C800:10FF:FE44:6
one(config-if)#do sh ipv6 route
IPv6 Routing Table - 2 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
two(config-if)#do sh ipv6 int fa0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::C801:10FF:FE44:8
  No global unicast address is configured
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF44:8
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  one(config-if)#do ping FE80::C801:10FF:FE44:8
Output Interface: fastethernet 0/0
% Invalid interface. Use full interface name without spaces (e.g. Serial0/1)
Output Interface: fastethernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::C801:10FF:FE44:8, timeout is 2 seconds:
Packet sent with a source address of FE80::1034:56FF:FE78:9012
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/80/168 ms
one(config-if)#int fa0/0
one(config-if)#no ipv
one(config-if)#no ipv6 add
one(config-if)#ipv
one(config-if)#ipv6 add 2001:210:10:1::/64 ?
  anycast  Configure as an anycast
  eui-64   Use eui-64 interface identifier
  <cr>

one(config-if)#ipv6 add 2001:210:10:1::/64 eui-64
one(config-if)#no sh
one(config-if)#do sh ipv6 int fa0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::1034:56FF:FE78:9012
  Global unicast address(es):
    2001:210:10:1:1034:56FF:FE78:9012, subnet is 2001:210:10:1::/64 [EUI]
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF78:9012
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND advertised reachable time is 0 milliseconds
  ND advertised retransmit interval is 0 milliseconds
  ND router advertisements are sent every 200 seconds
  ND router advertisements live for 1800 seconds
  Hosts use stateless autoconfig for addresses.
  one(config-if)#do sh int fa0/0 | in bia
  Hardware is i82543 (Livengood), address is 1234.5678.9012 (bia ca00.1044.0008)
  STATELESS AUTO-CONFIGURATION
  two(config-if)#ipv6 address autoconfig
two(config-if)#do sh ipv6 int bri
FastEthernet0/0            [up/up]
    FE80::C801:10FF:FE44:8
FastEthernet0/1            [up/up]
two(config-if)#do sh ipv6 int bri
FastEthernet0/0            [up/up]
    FE80::C801:10FF:FE44:8
    2001:210:10:1:C801:10FF:FE44:8
FastEthernet0/1            [up/up]
two(config-if)#do sh int | in bia
  Hardware is i82543 (Livengood), address is ca01.1044.0008 (bia ca01.1044.0008)
  Hardware is i82543 (Livengood), address is ca01.1044.0006 (bia ca01.1044.0006)
two(config-if)#do sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.12.1.2               -   ca01.1044.0008  ARPA   FastEthernet0/0
Internet  30.1.1.1                -   ca01.1044.0006  ARPA   FastEthernet0/1
two(config-if)#do sh ipv6 nei
IPv6 Address                              Age Link-layer Addr State Interface
FE80::1034:56FF:FE78:9012                   9 1234.5678.9012  STALE Fa0/0
one(config-if)#no ipv6 add
one(config-if)#ipv6 add 2001:210:10:1::1/64
one(config-if)#do sh ipv6 add
sh ipv6 add
         ^
% Invalid input detected at '^' marker.

one(config-if)#do sh ipv6 int bri
FastEthernet0/0            [up/up]
    FE80::1034:56FF:FE78:9012
    2001:210:10:1::1
FastEthernet0/1            [up/up]
    FE80::C800:10FF:FE44:6

No comments:

Post a Comment