IPV6基础实验
https://editor-material.365editor.com/style/20230220167686474063f2ece47a929material.gif1.配置IPv6
2.双栈实验
3.IPv6孤岛实验
4.OSPFv3 ISIS实验
5.链路本地地址和EUI64算法实验
配置IPv6
https://editor-user.365editor.com/98/85/4933185/1692006012253616.png
ipv6 int g0/0/0
ipv6 enable
ipv6 address 2002::1 64
undo ipv6 nd ra halt //关闭IPv6的RA通告抑制//对侧可自动获取IPv6地址
ipv6
ipv6 enable ipv6 address auto global<R2>dis ipv6 interface g0/0/0GigabitEthernet0/0/0 current state : UP IPv6 protocol current state : UPIPv6 is enabled, link-local address is FE80::2E0:FCFF:FEBA:33A5Global unicast address(es): 2002::2E0:FCFF:FEBA:33A5, subnet is 2002::/64 Joined group address(es): FF02::1:FFBA:33A5 FF02::2 FF02::1MTU is 1500 bytesND DAD is enabled, number of DAD attempts: 1ND reachable time is 30000 millisecondsND retransmit interval is 1000 millisecondsHosts use stateless autoconfig for addresses
双栈实验
https://editor-user.365editor.com/98/85/4933185/1692010308732363.png
路由器配置ipv6 interface g0/0/0ipv6 enable
ipv6 address 2001::1 64ip address 192.168.1.1 24https://editor-user.365editor.com/98/85/4933185/1692010532207776.png
IPv6孤岛实验
https://editor-user.365editor.com/98/85/4933185/1692010557764249.png
ipv6
interface g0/0/1
ipv6 enable
ipv6 address 2001::2 64interface Tunnel 0/0/0
tunnel-protocol gre
source 12.1.1.1
destination 12.1.1.2ipv6 enable
ipv6 address 2012::1 64ipv6 route-static 2002:: 64 2012::2
ipv6
interface g0/0/1
ipv6 enable
ipv6 address 2002::2 64interface Tunnel 0/0/0tunnel-protocol gre
source 12.1.1.2
destination 12.1.1.1ipv6 enable
ipv6 address 2012::2 64ipv6 route-static 2001:: 64 2012::1https://editor-user.365editor.com/98/85/4933185/1692010587497007.png
OSPFv3 ISIS实验
采用孤岛拓扑,undo静态后进行实验
OSPFv3
router-id 1.1.1.1 //Router id手工配置,否则可能无法发出Hello报文。area 0ospfv3 110 area 0 //只支持在接口宣告ospfv3 110 area 0//只支持在接口宣告
ospfv3 110
router-id 2.2.2.2
area 0
ospfv3 110 area 0ospfv3 110 area 0
PC>ping 2002::1 //pc1 ping pc2 通过OSPFv3互通
Ping 2002::1: 32 data bytes, Press Ctrl_C to breakRequest timeout!From 2002::1: bytes=32 seq=2 hop limit=253 time=47 msFrom 2002::1: bytes=32 seq=3 hop limit=253 time=15 msFrom 2002::1: bytes=32 seq=4 hop limit=253 time=32 msFrom 2002::1: bytes=32 seq=5 hop limit=253 time=15 ms
--- 2002::1 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max = 0/27/47 ms
ISIS
undo ospfv3 110Warning: The OSPFv3 process will be deleted. Continue?yisis 15network-entity 47.0001.0000.0000.0001.00ipv6 enable //配置ISIS,开启IPv6支持,拓扑模式是标准isis ipv6 enable 15isis ipv6 enable 15
undo ospfv3 110Warning: The OSPFv3 process will be deleted. Continue?yisis 15
network-entity 47.0001.0000.0000.0002.00ipv6 enable isis ipv6 enable 15isis ipv6 enable 15
dis isis peer verbose //查看isis邻居详细信息
Peer information for ISIS(15)
System Id Interface Circuit Id State HoldTime Type PRI-------------------------------------------------------------------------------0000.0000.0002Tun0/0/0 0000000001 Up 27s L2 --
MT IDs supported : 0(UP) Local MT IDs : 0 Area Address(es) : 47.0001 Peer IPv6 Address(es): FE80::C01:102Uptime : 00:04:49Adj Protocol : IPV6 Restart Capable : YESSuppressed Adj : NOPeer System Id : 0000.0000.0002
Total Peer(s): 1
PC>ping 2002::1 //pc1 ping pc2通过isis协议互通
Ping 2002::1: 32 data bytes, Press Ctrl_C to breakFrom 2002::1: bytes=32 seq=1 hop limit=253 time=16 msFrom 2002::1: bytes=32 seq=2 hop limit=253 time=15 msFrom 2002::1: bytes=32 seq=3 hop limit=253 time=16 msFrom 2002::1: bytes=32 seq=4 hop limit=253 time=16 msFrom 2002::1: bytes=32 seq=5 hop limit=253 time=15 ms
--- 2002::1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 15/15/16 ms
链路本地地址和EUI64算法实验
https://editor-user.365editor.com/98/85/4933185/1692010744223680.png
EUI 64算法
1.原始的48位MAC地址分成1半。
2.插入16位FFFE。
3.64位的地址第7位取反。
4.重新合并。
ipv6
interface g0/0/0
ipv6 enable
ipv6 address 2001::1 64
dis ipv6 int g0/0/0GigabitEthernet0/0/0 current state : UP IPv6 protocol current state : UPIPv6 is enabled, link-local address is FE80::2E0:FCFF:FE64:35B7 //依据mac地址自动采用EUI64计算链路本地地址Global unicast address(es): 2001::1, subnet is 2001::/64Joined group address(es): FF02::1:FF00:1 FF02::2 FF02::1 FF02::1:FF64:35B7
dis interface g0/0/0GigabitEthernet0/0/0 current state : UPLine protocol current state : DOWNDescription:HUAWEI, AR Series, GigabitEthernet0/0/0 InterfaceRoute Port,The Maximum Transmit Unit is 1500Internet protocol processing : disabledIP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc64-35b7........
在IPv6中有一种重要的链路地址叫链路本地地址,本质是上一个单播地址,代表一个节点。但是仅仅在本链路有效。
作用:1.动态路由协议的源地址。
2.动态路由协议的下一跳。
3.NDP协议的用来进行IPv6的邻居发现。
https://editor-material.365editor.com/style/20230220167686474063f2ece49a3d3material.gifhttps://editor-material.365editor.com/style/20230220167686474063f2ece4b7c43material.gif
页:
[1]