当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
思科路由器上实测ipv6地址
发布时间:2010/8/13 10:51:42 来源:城市学习网 编辑:ziteng
  #没有配置ipv6地址的接口
  r1#sh run int fa1/0
  interface FastEthernet1/0
  ip address 172.16.12.1 255.255.255.0
  duplex auto
  speed auto
  end
  r1#sh ipv6 int bri
  FastEthernet1/0            [up/up]
  unassigned
  FastEthernet1/1            [administratively down/down]
  unassigned
  r1(config)#int fa1/0
  r1(config-if)#ipv6 addr ?
  WORD                General prefix name
  X:X:X:X::X          IPv6 link-local address
  X:X:X:X::X/<0-128>  IPv6 prefix
  autoconfig          Obtain address using autoconfiguration
  #配置本地链路地址不成功,因为ipv6的link-local地址必须是fe80::/16开头的
  r1(config-if)#ipv6 addr 3333::1 link-local
  % Invalid link-local address
  #先配置ipv6 prefix地址
  r1(config-if)#ipv6 addr 3333::1/112
  r1(config-if)#do sh run int fa1/0
  interface FastEthernet1/0
  ip address 172.16.12.1 255.255.255.0
  duplex auto
  speed auto
  ipv6 address 3333::1/112
  #配置了prefix地址后,会自动配置link-local
  r1#sh ipv6 int bri
  FastEthernet1/0            [up/up]
  FE80::C800:14FF:FE38:1C
  3333::1
  FastEthernet1/1            [administratively down/down]
  unassigned
  #可以手动配置link-local,覆盖掉自动生成的link-local
  #一个接口只能有一个link-local,配置多条前面的会被覆盖
  #一个接口可配置多条prefix地址
  r1(config-if)#ipv6 addr fe80::1 link-local
  r1(config-if)#ipv6 addr fe80::1:1 link-local
  r1(config-if)#ipv6 addr fe80::3:1:1 link-local
  r1(config-if)#ipv6 addr 4444::1/112
  r1#sh int fa1/0
  interface FastEthernet1/0
  ip address 172.16.12.1 255.255.255.0
  duplex auto
  speed auto
  ipv6 address 3333::1/112
  ipv6 address 4444::1/112
  ipv6 address FE80::3:1:1 link-local
  end
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved