当前位置: 移动技术网 > 网络运营>网络>协议 > 华为和思科IPV6初探之IPV6中的link-local address

华为和思科IPV6初探之IPV6中的link-local address

2018年03月12日  | 移动技术网网络运营  | 我要评论


华为和思科IPV6初探之IPV6中的link-local address

 

全球IP不够分,IPv6逐步上线了。

IPv6好处就不用多说了,比如支持IP安全,比如用不完。

近日工作中发现华为和思科配置IPv6时,接口下会产生一个叫做link-local address的IPv6地址。

做了部分实验,记录如下:  www.2cto.com  

 

华为VRP系统中,在指定接口配置静态路由的时候就必须使用接口的link-local address地址,而不能使用配置的ip地址。

原因是ipv6在接口下是可以配置多个地址:
 

display current-configuration interface  Eth-Trunk 1.1788

#

interface Eth-Trunk1.1788

 vlan-type dot1q 1788

 ip binding vpn-instance IBM

 ipv6 enable

 ipv6 address 500E:0:0:5::2/126

 ipv6 address 192:168:31::1/64

#

return

 

配置静态路由提示信息:

[R1]ipv6 route-static vpn-instance IBM 20E:0:0:5::2 128 Eth-Trunk1.1788 500E:0:0:5::2

Error: The next-hop must be a link-local address.

[R1]ipv6 route-static vpn-instance IBM 20E:0:0:5::2 128 Eth-Trunk1.1788 500E:0:0:5::1

Error: The next-hop must be a link-local address.

   www.2cto.com  

应该是在每个接口使能ipv6后,该接口会自动生成一个 link-local address ,作为唯一标识路由的手段,而不用端口下配置的IPv6地址作标示了。
 

[R1]display ipv6 interface Eth-Trunk 1.1788

Eth-Trunk1.1788 current state : DOWN 

IPv6 protocol current state : DOWN

IPv6 is enabled, link-local address is FE80::5689:98FF:FE44:8133 [TENTATIVE]

  Global unicast address(es):

    500E:0:0:5::2, subnet is 500E:0:0:5::/126 [TENTATIVE]

    192:168:31::1, subnet is 192:168:31::/64 [TENTATIVE]

 

在华为设备上,使用link-local address 作为下一跳地址配置静态路由成功:

[R1]ipv6 route-static vpn-instance IBM 20E:0:0:5::2 128 Eth-Trunk 1.1788 FE80::5689:98FF:FE44:8133

[R1]

 

在华为设备上,无论接口有一个或者多个IPv6地址,在指定端口的VPN静态路由配置中总要使用本地链路地址,而不是端口下地址。

同样,思科会产生接口的本地链路地址,在路由标示中使用。不过,

在思科IOX系统的设备上,没有配置方面的问题,因为思科IOX系统配置静态路由可以指定到端口为止。  www.2cto.com  

思科设备应该默认也是使用该端口的本地链路地址,不过不需要明确指出而已。

R2#configure t                       

Wed Sep  5 17:43:39.760 PRC

R2(config)#router static

R2(config-static)#vrf SONY

R2(config-static-vrf)#address-family ipv6 unicast

R2(config-static-vrf-afi)#192:168:31::1/64 GigabitEthernet0/4/0/4 

R2(config-static-vrf-afi)#end                                                        

R2#quit
 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网