Friday, September 19, 2014

Multipoint Tunnels Dynamic

Automatic 6to4

#int loopback0 - es rom advertisement-debodes ar dagaviwydes
#ip address 1.1.1.1 255.255.255.255

#int tunnel0
#tunnel source loopback0
#ipv6 address 2002:101:101::/128
#tunnel mode ipv6ip 6to4

#ipv6 unicast-routing
#ipv6 route 2002::/16 tunnel0

#int f0/0
#ipv6 address 2002:AABB:CCDD:1::1/64
#ip address 170.187.204.221 255.255.255.0
#no shut :P



 #tunnel mode ipv6 isatap
# ipv6 address prefix/64 eui-64 (0000:5EFE as 5th and 6th quarters)


Point-to-Point Tunnels



#interface tunnel0
#ipv6 address 2001::1/64
#ipv6 eigrp 1
#tunnel source loopback 1
#tunnel destination 10.0.0.1
#tunnel mode ipv6

conf t
#ipv6 unicast-routing
#int f0/1
#ipv6 address 2002::1/64
#ipv6 eigrp 1

conf t
#ipv6 router eigrp 1
#router-id 1.1.1.1
#no shut

#show int tunnel0
#show ipv6 int (brief)
#traceroute ipv6 2111::1

FF02::1:FF0:0/104

 http://en.wikipedia.org/wiki/Solicited-node_multicast_address

A Solicited-Node multicast address is an IPv6 multicast address valid within the local-link (e.g. an Ethernet segment or a Frame Relay cloud). Every IPv6 host will have at least one such address per interface. Solicited-Node multicast addresses are used in Neighbor Discovery Protocol for obtaining the layer 2 link-layer addresses of other nodes.[1]

A Solicited-Node multicast address is created by taking the last 24 bits of a unicast or anycast address and appending them to the prefix ff02::1:ff00:0/104.[2] It is important to realize that we have taken 104 bits from the address, so that the last byte of the penultimate field 00 is not used in the prefix.

 ff00:0000   6x4=24 


A host is required to join a Solicited-Node multicast group for each of its configured unicast or anycast addresses.
Example: If we have an interface with the IP address fe80::2aa:ff:fe28:9c5a the associated Solicited-Node multicast address is ff02::1:ff28:9c5a. So we must join to the multicast group represented by this address.

Working Example

Assume a host needs to make a local delivery to another host on the local network, and the target host has an IPv6 address of fe80::2aa:ff:fe28:9c5a (as in Example 2 above). In order to make a Layer-2 (e.g. Ethernet) delivery, it needs to know the target host's hardware address (e.g. "Ethernet MAC address"). But in order to do this, it must first determine which hardware address to send it to. To do this, an IPv6 host will construct the Solicited-node Multicast Address related to the target address.


FE80

 ყოველთვის იწყება fe80::/64 ანუ პირველი 64 ბიტი არის FE80+ ნოლები. განსხვავება არის როგორ აყალიბებს დანარჩენ 64 ბიტს.

როცა ეხება ლან ინტერფეისს:
იღებს ამ ინტერფეისის 48 ბიტიან მაკს, მეშვიდე ბიტს ატრიალებს, და შუაში (6 ჰექსის მერე) ჩასვავს FFFE

როცა ეხება სერიალ ინტერფეისს + GRE tunnel :
აიღებს პირველი ლანის მაკ მისამართს და ჩასვავს იგივე ფორმულით. – დატესტე გნსში გაუწერე აიპის რო უწერ ბოლოშუ ეუი 64 და რას მიცემს

როცა ეხება ტუნელს (manual configured; 6to4):
აიღებს ამ ტუნელის source მისამართის 32 ბიტ აიპი მეოთხე ვერსიის მისამართს, გადაიყვანს ჰექსში და ჩასვავს ბოლოში. წინ შეავსებს ნოლებით.

 ასევე აიპი მეექვსე ვერსიას როცა აძლევ ინტერფეისს:
შეგიძლია გაუწერო მარტო პრეფიქსი, პრეფიქსის სიგრძე და მერე eui-64 და მაკით მისცემს უნიკალურ აიპის.

ასევე როცა autoconfig–ია, აგზავნის NDP პროტოკოლით მულტიკასტს და გვერდითა როუტერი ეტყვის რა პრეფიქსია და მერე ეს თავისი მაკის მიხედვით დაიდებს აიპის.

Thursday, September 18, 2014

IPv6 Commands

#int s0/1
#ipv6 address....
#ipv6 address autoconfig

#show ipv6 neighbors = show arp
#clear ipv6 neighbors
#show ipv6 router - აქ ნახავ თუა autoconfig

Link-local manual config:
#int f0/0
#ipv6 address FE80::1:2:3 link-local

#conf t
#ipv6 unicast-routing - ამის გარეშე არ დააფორვარდებს IPv6 პაკეტებს :О





 

RIPv2 vs RIPng + EIGRP for IPV6 + OSPF v3 + Redistribution

ipv6 unicast routing
ipv6 router rip NAME

int f0/0:
ipv6 enable
ipv6 rip NAME enable

#show ipv6 rip (=show ip prot for ipv4)
#show ipv6 router rip
#show ipv6 protocols
#show ipv6 rip next-hop 
-----------------------------------------------------------------------------------------------------

EIGRP:

#conf t
#ipv6 unicast-routing
#ipv6 router eigrp ASN
#int f0/0
#ipv6 address 2005::1/64 /ipv6 enable
#ipv6 eigrp 1
#router ipv6 eigrp 1
#no shutdown
#eigrp router-id 1.1.1.1 (თუ ვერ აიღო იმიტორო არაა ipv4 დაკონფიგებული არცერთ ინტერფეისზე)

------------------------------------------------------------------------------

OSPF:

#conf t
#ipv6 unicast-routing
#ipv6 router ospf 1
#int f0/0
#ipv6 address 2006::1/64
#ipv6 address enable
#ipv6 ospf 1 area 0

#ipv6 router ospf 1
#router-id 1.1.1.1 


-------------------------------- ----------------------------------------------------
#ipv6 router rip NAME
#redistribute ospf 1 include-connected

#ipv6 router ospf 1
#router-id 1.1.1.1
#redistribute rip NAME route-map WORD include-connected metric 3

#ipv6 route 2000::/64 f0/0 FE80::213:19FF:FE78:5005

#show ipv6 route 2000::/64 - დეტალებისთვის