{"id":874,"date":"2024-12-20T03:11:52","date_gmt":"2024-12-20T00:11:52","guid":{"rendered":"https:\/\/itgen.itbumper.com\/?page_id=874"},"modified":"2024-12-20T03:34:51","modified_gmt":"2024-12-20T00:34:51","slug":"0062_cisco-ipv6_static_routing","status":"publish","type":"page","link":"https:\/\/itgen.itbumper.com\/?page_id=874","title":{"rendered":"0062_Cisco: IPv6_Routing"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#IPv6 Static Route\n\t- A correction\n\t- IPv6 header\n\t- NDR\t(Neighbor Discovery Protocol)\n\t- SLAAK\n\t\n#==================================================================================\n#\t:: use only left side instead right if they are present at the address\n#\tUse lower-case instead upper-case\n#\tIPv6 version is fixed in the Packet header 4 bits and in binary it looks like 0b0110 (in decimal=6)\n#\tNext 8 bits   - it is  QoS\n#\tNext 20 bits  - flow traffic\n#\tNext 16 bits  - payload\n#\tNext (Next header) 8 bits - TCP or UDP (Protocol field in IPv4)\n#\tNext (Source address) - 128 bits\n#\tNext (Destination address) - 128 bits\n\n#==================================================================================\n\n#\tSolicied-node multicast address - it is like ARP in IPv4. It helps devices to find each other\n#\t\t-works in chanell layer, using NDP\n#\t\t-FF02::1:FFXX:XXXX, where XX:XXXX the last 24 bits of the device unicast address\n#\t\t\tExample: 2001:DB8:1A2B:3C4D:5E6F:7A8B\n#\t\t\t\t\t\t\t\t\t\t  -- ---- 24 bits\n#\t\t\tThe solicied-node multicast address will be:\n#\t\t\t\t\t\t\t\t FF02::1FF6F:7A8B\n#\t\t\t\t\t\t\t\t FF02::1&lt;-------- Multicast All nodes and hosts (like broadcast)\n#\n#\tNS=ICMPv6\tType 135 - Request\n#\tNA=ICMPv6\tType 136 - like ARP reply\n#\n#\tNDR uses two messages\n#\t\t1. Router Solicitation (RS)=ICMPv6 Type 133\n#\t\t\t-sent to multicast address FF02::2 (all router)\n#\t\t    and asks all routers on the local link to identify themselves\n#\t\t   -sent when an interface is enable\/host is connected to the network\n#\t\t2. Router Advertisement (RA)=ICMPv6 Type 134\n#\t\t\t-sent to multicast address FF02::1 (all nodes and hosts)\n#\t\t\t-the RA its presence, as well as other information about the link\n#\t\t\t-these messages are sent in response to RS messages\n#\t\t\t-they are also sent periodically event if the touter hasn`t recieved any RS\n#\n#\n#SLAAC (Stateless Address Auto-Configuration)\n#\tHosts use RS and RA messages to learn IPv6 prefix on the local link (ie 2001:DB8::\/64)\n#\tand then automatically generate an IPv6 address.\n#\tUsing the IPv6 address prefix\/prefix-length EUI-64 command, you need to manually enter the prefix\n#\n#\tUsing the IPv6 address autoconfig command, you do not need ti enter the prefix.\n#\tThe device uses NDP to learn the prefix used on the local link.\n#\tThe device will use EUI-64 to generate the interface ID, or it will be randomly generated\n#\tdepending of the device or maker\n#\n#\n#\tDAD (Duplicate Address Detection)\n#\tJust know, it exists )\n\n#\tIPv6 routing is disabled by default, and must be enable\nenable\n\tconfigure terminal\n\t\tipv6 unicast-routing\n\n#\tIf IPv6 routing is disabled, the router will be able to send and recieve IPv6 traffic, but will not router\n#\tIPv6 traffic. It means won`t forward it between networks\n#\n\tshow ipv6 route\n\t\tipv6 route destination\/prefix length {next hop|exit interface &#x5B;next-hop]} &#x5B;ad]\t# ad=Administrative Distance\n#\n#\t-Directly attached static route: Only the exit interfaace is specified\t#doesn`t work with Ethernet interfaces\n\t\tipv6 route 2001:db8:0:3::\/64\tg0\/0\n\t\t\n#\t-Recursive static route: Only the next hop is specified\n\t\tipv6 route 2001:db8:0:3::\/64 2001:db8:0:12:2\n\t\t\n#\t-Fully specified: Both the exit interfaace and next hop are specified\n\t\tipv6 route 2001:db8:0:3::\/64 g0\/0 2001:db8:0:12:2\n\n#Example\n#\t  2001:db8:0:1::\/64\t\t        \t\t\t\t\t 2001:db8:0:23::\/64\n#\tPC1=============g0\/1(R1)g0\/0================g0\/0(R2)g0\/1=============g0\/0(R3)g0\/1===========PC2\n#\t:100             :1       :1                 :2      :1               :2     :1             :100   \n#\t\t\t\t\t\t\t 2001:db8:0:12::100\/128\t\t\t\t\t\t\t\t\t2001:db8:0:3::\/64\n#\tNETWORK ROUTING\n#\tR1\n\t\tipv6 route 2001:db8:0:3::\/64 2001:db8:0:12::2\n#\tHOST ROUTE\n#\tR2\n\t\tipv6 route 2001:db8:0:1::100 2001:db8:0:12::1\n\t\tipv6 route 2001:db8:0:3::100 2001:db8:0:23::2\n\n#\tDEFAULT ROUTE\t\t\n#\tR3\n\t\tipv6 route ::\/0 2001:db8:0:23::1\n\n#\tIf you need to use Static Float Route, then use ad (Advertisement Distance)\n#\tExample: Balancing with OSPF, then ad=110, with EIGRP ad=90\n\n\n\n#\tGlobal-scope = 2000::\/3\t\t\t#Public addresses (white IP)\n#\tLink-local scope = FE80::\/10\t#Generated auto or manually uses for OSPFv3, EIGRP\n\n\t\t\tipv6 unicast-routing          \t\t\t#Enable IPv6 routing\n\t\t\tinterface GigabitEthernet0\/0\n\t\t\t\tipv6 address 2001:DB8:1::1\/64    \t#Set Global-scope address\n\t\t\t\tipv6 address FE80::1 link-local  \t#Set Link-local address\n\t\t\t\tno shutdown\n\n#\tOSPFv3\t\t\n\t\t\tipv6 router ospf 1              #Enable the OSPFv3\n\t\t\t\trouter-id 1.1.1.1           #Set Router ID\n\t\t\t\texit\n\t\t\t\t\n\t\t\tinterface GigabitEthernet0\/0\n\t\t\t\tipv6 ospf 1 area 0          #Add the interface to OSPF Area\n\n#\tEIGRP for IPv6\n\t\t\tipv6 router eigrp 10            #Enable the EIGRP\n\t\t\t\trouter-id 1.1.1.1           #Set Router ID\n\t\t\t\tno shutdown                 #Enable routing process\n\t\t\t\texit\n\t\t\tinterface GigabitEthernet0\/0\n\t\t\t\tipv6 eigrp 10               #Activate the EIGRP on the interface\n\n#\tRIPng\t(ng = Next Generation)\n\t\t\tipv6 router rip RIP_LAB         #Enable RIPng\n\t\t\tinterface GigabitEthernet0\/0\n\t\t\t\tipv6 rip RIP_LAB enable     #Activate the RIPng on the interface\n\t\t\t\t\n#\tLoopback-interface\t(good to testing and to set Router ID)\n\t\t\tinterface Loopback0\n\t\t\t\tipv6 address 2001:DB8:2::1\/128  #Set Global-scope address\n\t\t\t\tipv6 ospf 1 area 0              #Add to OSPFv3 process\n\n\n\tshow ipv6 interface brief\n\tshow ipv6 route\n\tshow ipv6 neighbors\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/874"}],"collection":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=874"}],"version-history":[{"count":2,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/874\/revisions"}],"predecessor-version":[{"id":880,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/874\/revisions\/880"}],"wp:attachment":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}