所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

NE20E-S2 V800R010C10SPC500 配置指南 - IP业务 01

本文档是NE20E-S2 V800R010C10SPC500 配置指南 - IP业务
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置接口的IPv6地址示例

配置接口的IPv6地址示例

本举例介绍接口的IPv6地址的配置过程。

组网需求

图12-5所示,两台路由设备通过GigabitEthernet接口相连,给接口配置IPv6全球单播地址,验证它们之间的互通性。

需要配置的全球单播地址为2001:db8::1/32和2001:db8::2/32。

图12-5 配置接口的IPv6地址组网图

设备名称

接口

IP地址

DeviceA

GE0/1/0

2001:db8::1/32

DeviceB

GE0/1/0

2001:db8::2/32

配置注意事项

配置思路

配置接口的IPv6地址思路如下:

  1. 使能路由设备的IPv6转发能力

  2. 配置接口的IPv6全球单播地址

数据准备

为完成此配置例,需准备如下的数据:

  • 接口的全球单播地址

操作步骤

  1. 配置接口的全球单播地址

    # 配置DeviceA。

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] interface GigabitEthernet 0/1/0
    [~DeviceA-GigabitEthernet0/1/0] ipv6 enable
    [*DeviceA-GigabitEthernet0/1/0] ipv6 address 2001:db8::1 32
    [*DeviceA-GigabitEthernet0/1/0] undo shutdown
    [*DeviceA-GigabitEthernet0/1/0] commit
    [~DeviceA-GigabitEthernet0/1/0] quit

    # 配置DeviceB。

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceB
    [*HUAWEI] commit
    [~DeviceB] interface GigabitEthernet 0/1/0
    [~DeviceB-GigabitEthernet0/1/0] ipv6 enable
    [*DeviceB-GigabitEthernet0/1/0] ipv6 address 2001:db8::2 32
    [*DeviceB-GigabitEthernet0/1/0] undo shutdown
    [*DeviceB-GigabitEthernet0/1/0] commit
    [~DeviceB-GigabitEthernet0/1/0] quit

  2. 验证配置结果

    如果配置成功,可以查看配置的全球单播地址,以及接口状态为Up,IPv6协议状态为Up。

    # 显示DeviceA的接口信息。

    [~DeviceA] display ipv6 interface GigabitEthernet 0/1/0
    GigabitEthernet0/1/0 current state : UP
    IPv6 protocol current state : UP
    link-local address is FE80::C964:0:B8B6:1
      Global unicast address(es):
        2001:db8::1, subnet is 2001:db8::/32
      Joined group address(es):
        FF02::1:FF00:1
        FF02::1:FFB6:1
        FF02::2
        FF02::1
      MTU is 4470 bytes
      ND DAD is enabled, number of DAD attempts: 1
      ND reachable time is 1200000 milliseconds
      ND retransmit interval is 1000 milliseconds
      Hosts use stateless autoconfig for addresses

    # 显示DeviceB的接口信息。

    [~DeviceB] display ipv6 interface GigabitEthernet 0/1/0
    GigabitEthernet0/1/0 current state : UP
    IPv6 protocol current state : UP
    link-local address is FE80::2D6F:0:7AF3:1
      Global unicast address(es):
        2001:db8::2, subnet is 2001:db8::/32
      Joined group address(es):
        FF02::1:FF00:2
        FF02::1:FFF3:1
        FF02::2
        FF02::1
      MTU is 4470 bytes
      ND DAD is enabled, number of DAD attempts: 1
      ND reachable time is 1200000 milliseconds
      ND retransmit interval is 1000 milliseconds
      Hosts use stateless autoconfig for addresses

    # 从路由设备DeviceA上Ping路由设备DeviceB的链路本地地址,注意需要使用-i参数,来指定链路本地地址的接口。

    [~DeviceA] ping ipv6 fe80::2d6f:0:7af3:1 -i GigabitEthernet 0/1/0
      PING FE80::2D6F:0:7AF3:1 : 56  data bytes, press CTRL_C to break
        Reply from FE80::2D6F:0:7AF3:1
        bytes=56 Sequence=1 hop limit=64  time = 60 ms
        Reply from FE80::2D6F:0:7AF3:1
        bytes=56 Sequence=2 hop limit=64  time = 50 ms
        Reply from FE80::2D6F:0:7AF3:1
        bytes=56 Sequence=3 hop limit=64  time = 50 ms
        Reply from FE80::2D6F:0:7AF3:1
        bytes=56 Sequence=4 hop limit=64  time = 30 ms
        Reply from FE80::2D6F:0:7AF3:1
        bytes=56 Sequence=5 hop limit=64  time = 1 ms
      --- FE80::2D6F:0:7AF3:1 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 1/38/60 ms

    # 从路由设备DeviceA上Ping路由设备DeviceB的全球单播IPv6地址。

    [~DeviceA] ping ipv6 2001:db8::2
      PING 2001:db8::2 : 56  data bytes, press CTRL_C to break
        Reply from 2001:db8::2
        bytes=56 Sequence=1 hop limit=64  time = 30 ms
        Reply from 2001:db8::2
        bytes=56 Sequence=2 hop limit=64  time = 50 ms
        Reply from 2001:db8::2
        bytes=56 Sequence=3 hop limit=64  time = 50 ms
        Reply from 2001:db8::2
        bytes=56 Sequence=4 hop limit=64  time = 20 ms
        Reply from 2001:db8::2
        bytes=56 Sequence=5 hop limit=64  time = 40 ms
      --- 2001:db8::2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 20/38/50 ms

配置文件

  • DeviceA配置文件

    #
     sysname DeviceA
    #
    admin
    interface GigabitEthernet0/1/0
    undo shutdown
    ipv6 enable
    ipv6 address 2001:db8::1/32
    #
    return
  • DeviceB配置文件

    #
     sysname DeviceB
    #
    admin
    interface GigabitEthernet0/1/0
    undo shutdown
    ipv6 enable
    ipv6 address 2001:db8::2/32
    #
    return
翻译
下载文档
更新时间:2018-12-29

文档编号:EDOC1100057893

浏览量:1428

下载量:11

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页