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

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

提示

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

升级

CloudEngine 12800, 12800E V200R005C00 配置指南-IP业务

本文档介绍了IP业务的配置,具体包括IPv4基础配置、ARP配置、DHCP配置、DNS配置、UDP Helper配置、IP性能配置、IPv6基础配置、DHCPv6配置、IPv6 DNS配置和IPv6过渡技术配置。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置6PE示例

配置6PE示例

组网需求

图10-9所示,企业在A地和B地分别设有数据中心,并且数据中心A和数据中心B均部署为IPv6网络。数据中心A中服务器Server_1的网关为CE_1。数据中心B中服务器Server_2的网关为CE_2。数据中心A和数据中心B分别通过运营商的PE_1设备和PE_2设备接入,PE_1和PE_2设备之间是运营商的IPv4/MPLS骨干网。

用户希望数据中心A和数据中心B之间能够通过运营商的IPv4/MPLS骨干网实现互通,使数据中心A内的服务器Server_1和数据中心B内的服务器Server_2之间能够实现互通。

说明:

使用MPLS功能需要购买License。

图10-9 配置6PE组网图

配置思路

配置6PE思路如下:

  1. 配置设备接口的IP地址。

  2. 在PE_1和PE_2设备上使能MPLS功能。

  3. 在PE_1和PE_2设备上配置6PE对等体。

  4. 在CE_1、CE_2、PE_1和PE_2设备上配置静态路由。

操作步骤

  1. 配置设备接口的IP地址

    # 配置PE_1。

    <HUAWEI> system-view
    [~HUAWEI] sysname PE_1
    [*HUAWEI] commit
    [~PE_1] vlan batch 100 200
    [*PE_1] interface 10ge 1/0/1
    [*PE_1-10GE1/0/1] port link-type trunk
    [*PE_1-10GE1/0/1] port trunk allow-pass vlan 100
    [*PE_1-10GE1/0/1] quit
    [*PE_1] interface 10ge 1/0/2
    [*PE_1-10GE1/0/2] port link-type trunk
    [*PE_1-10GE1/0/2] port trunk allow-pass vlan 200
    [*PE_1-10GE1/0/2] quit
    [*PE_1] interface vlanif 100
    [*PE_1-Vlanif100] ipv6 enable
    [*PE_1-Vlanif100] ipv6 address fc00:3::1 64
    [*PE_1-Vlanif100] quit
    [*PE_1] interface vlanif 200
    [*PE_1-Vlanif200] ip address 4.3.5.1 24
    [*PE_1-Vlanif200] quit
    [*PE_1] interface loopback 0
    [*PE_1-LoopBack0] ip address 1.1.1.9 255.255.255.255
    [*PE_1-LoopBack0] quit
    [*PE_1] commit
    

    # 配置PE_2。

    <HUAWEI> system-view
    [~HUAWEI] sysname PE_2
    [*HUAWEI] commit
    [~PE_2] vlan batch 100 200
    [*PE_2] interface 10ge 1/0/1
    [*PE_2-10GE1/0/1] port link-type trunk
    [*PE_2-10GE1/0/1] port trunk allow-pass vlan 100
    [*PE_2-10GE1/0/1] quit
    [*PE_2] interface 10ge 1/0/2
    [*PE_21-10GE1/0/2] port link-type trunk
    [*PE_21-10GE1/0/2] port trunk allow-pass vlan 200
    [*PE_21-10GE1/0/2] quit
    [*PE_2] interface vlanif 100
    [*PE_21-Vlanif100] ipv6 enable
    [*PE_21-Vlanif100] ipv6 address fc00:4::1 64
    [*PE_2-Vlanif100] quit
    [*PE_21] interface vlanif 200
    [*PE_2-Vlanif200] ip address 4.3.5.2 24
    [*PE_2-Vlanif200] quit
    [*PE_2] interface loopback 0
    [*PE_2-LoopBack0] ip address 2.2.2.9 255.255.255.255
    [*PE_2-LoopBack0] quit
    [*PE_2] commit
    

    # 配置CE_1。

    <HUAWEI> system-view
    [~HUAWEI] sysname CE_1
    [*HUAWEI] commit
    [~CE_1] vlan batch 100 300
    [*CE_1] interface 10ge 1/0/1
    [*CE_1-10GE1/0/1] port link-type trunk
    [*CE_1-10GE1/0/1] port trunk allow-pass vlan 100
    [*CE_1-10GE1/0/1] quit
    [*CE_1] interface 10ge 1/0/2
    [*CE_1-10GE1/0/2] port default vlan 300
    [*CE_1-10GE1/0/2] quit
    [*CE_1] interface vlanif 100
    [*CE_1-Vlanif100] ipv6 enable
    [*CE_1-Vlanif100] ipv6 address fc00:3::2 64
    [*CE_1-Vlanif100] quit
    [*CE_1] interface vlanif 300
    [*CE_1-Vlanif300] ipv6 enable
    [*CE_1-Vlanif300] ipv6 address fc00:1::1 64
    [*CE_1-Vlanif300] quit
    [*CE_1] commit
    

    # 配置CE_2。

    <HUAWEI> system-view
    [~HUAWEI] sysname CE_2
    [*HUAWEI] commit
    [~CE_2] vlan batch 100 300
    [*CE_2] interface 10ge 1/0/1
    [*CE_2-10GE1/0/1] port link-type trunk
    [*CE_2-10GE1/0/1] port trunk allow-pass vlan 100
    [*CE_2-10GE1/0/1] quit
    [*CE_2] interface 10ge 1/0/2
    [*CE_2-10GE1/0/2] port default vlan 300
    [*CE_2-10GE1/0/2] quit
    [*CE_2] interface vlanif 100
    [*CE_2-Vlanif100] ipv6 enable
    [*CE_2-Vlanif100] ipv6 address fc00:4::2 64
    [*CE_2-Vlanif100] quit
    [*CE_2] interface vlanif 300
    [*CE_2-Vlanif300] ipv6 enable
    [*CE_2-Vlanif300] ipv6 address fc00:2::1 64
    [*CE_2-Vlanif300] quit
    [*CE_2] commit
    

  2. 在PE_1和PE_2设备上使能MPLS功能

    # 配置PE_1,使能MPLS和LDP协议。

    [~PE_1] mpls lsr-id 1.1.1.9
    [*PE_1] mpls
    [*PE_1-mpls] lsp-trigger all
    [*PE_1-mpls] quit
    [*PE_1] mpls ldp
    [*PE_1-mpls-ldp] quit
    [*PE_1] interface vlanif 200
    [*PE_1-Vlanif200] mpls
    [*PE_1-Vlanif200] mpls ldp
    [*PE_1-Vlanif200] quit
    [*PE_1] commit
    

    # 配置PE_2,使能MPLS和LDP协议。

    [~PE_2] mpls lsr-id 2.2.2.9
    [*PE_2] mpls
    [*PE_2-mpls] lsp-trigger all
    [*PE_2-mpls] quit
    [*PE_2] mpls ldp
    [*PE_2-mpls-ldp] quit
    [*PE_2] interface vlanif 200
    [*PE_2-Vlanif200] mpls
    [*PE_2-Vlanif200] mpls ldp
    [*PE_2-Vlanif200] quit
    [*PE_2] commit
    

    # 在PE_1上配置OSPF,触发LSP的建立。

    [~PE_1] ospf
    [*PE_1-ospf-1] area 0
    [*PE_1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
    [*PE_1-ospf-1-area-0.0.0.0] network 4.3.5.0 0.0.0.255
    [*PE_1-ospf-1-area-0.0.0.0] quit
    [*PE_1-ospf-1] quit
    [*PE_1] commit
    

    # 在PE_2上配置OSPF,触发LSP的建立。

    [~PE_2] ospf
    [*PE_2-ospf-1] area 0
    [*PE_2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
    [*PE_2-ospf-1-area-0.0.0.0] network 4.3.5.0 0.0.0.255
    [*PE_2-ospf-1-area-0.0.0.0] quit
    [*PE_2-ospf-1] quit
    [*PE_2] commit
    

  3. 在PE_1和PE_2设备上配置6PE对等体

    # 在PE_1上配置IBGP,使能对等体的6PE能力,并引入IPv6的直连和静态路由。

    [~PE_1] bgp 65100
    [*PE_1-bgp] peer 2.2.2.9 as-number 65100
    [*PE_1-bgp] peer 2.2.2.9 connect-interface loopback 0
    [*PE_1-bgp] ipv6-family
    [*PE_1-bgp-af-ipv6] import-route direct
    [*PE_1-bgp-af-ipv6] import-route static
    [*PE_1-bgp-af-ipv6] peer 2.2.2.9 enable
    [*PE_1-bgp-af-ipv6] peer 2.2.2.9 label-route-capability
    [*PE_1-bgp-af-ipv6] apply-label explicit-null
    [*PE_1-bgp-af-ipv6] quit
    [*PE_1-bgp] quit
    [*PE_1] commit
    

    # 在PE_2上配置IBGP,使能对等体的6PE能力,并引入IPv6的直连和静态路由。

    [~PE_2] bgp 65100
    [*PE_2-bgp] peer 1.1.1.9 as-number 65100
    [*PE_2-bgp] peer 1.1.1.9 connect-interface loopback 0
    [*PE_2-bgp] ipv6-family
    [*PE_2-bgp-af-ipv6] import-route direct
    [*PE_2-bgp-af-ipv6] import-route static
    [*PE_2-bgp-af-ipv6] peer 1.1.1.9 enable
    [*PE_2-bgp-af-ipv6] peer 1.1.1.9 label-route-capability
    [*PE_2-bgp-af-ipv6] apply-label explicit-null
    [*PE_2-bgp-af-ipv6] quit
    [*PE_2-bgp] quit
    [*PE_2] commit
    

  4. 在CE_1、CE_2、PE_1和PE_2设备上配置静态路由

    # 配置CE_1。

    [~CE_1] ipv6 route-static :: 0 vlanif 100 fc00:3::1
    [*CE_1] commit

    # 配置CE_2。

    [~CE_2] ipv6 route-static :: 0 vlanif 100 fc00:4::1
    [*CE_2] commit

    # 配置PE_1。

    [~PE_1] ipv6 route-static fc00:1:: 64 vlanif 100 fc00:3::2
    [*PE_1] commit
    

    # 配置PE_2。

    [~PE_2] ipv6 route-sattic fc00:2:: 64 vlanif 100 fc00:4::2
    [*PE_2] commit
    

  5. 检查配置结果

    # 在CE_1上可以Ping通CE_2的IPv6地址。

    [~CE_1] ping ipv6 fc00:4::2
    PING FC00:4::2 : 56  data bytes, press CTRL_C to break
        Reply from FC00:4::2
        bytes=56 Sequence=1 hop limit=63  time = 50 ms
        Reply from FC00:4::2
        bytes=56 Sequence=2 hop limit=63  time = 1 ms
        Reply from FC00:4::2
        bytes=56 Sequence=3 hop limit=63  time = 1 ms
        Reply from FC00:4::2
        bytes=56 Sequence=4 hop limit=63  time = 1 ms
        Reply from FC00:4::2
        bytes=56 Sequence=5 hop limit=63  time = 1 ms
    
      --- FC00:4::2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 1/10/50 ms 

    # Server_1和Server_2可以互相Ping通。

配置文件

  • PE_1的配置文件

    #
    sysname PE_1
    #
    vlan batch 100 200
    #
    mpls lsr-id 1.1.1.9
    #
    mpls
     lsp-trigger all
    #
    mpls ldp
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:3::1/64
    #
    interface Vlanif200
     ip address 4.3.5.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface 10GE1/0/1
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface 10GE1/0/2
     port link-type trunk
     port trunk allow-pass vlan 200
    #
    interface LoopBack0
     ip address 1.1.1.9 255.255.255.255
    #
    bgp 65100
     peer 2.2.2.9 as-number 65100
     peer 2.2.2.9 connect-interface LoopBack0
     #
     ipv4-family unicast
      peer 2.2.2.9 enable
     #
     ipv6-family unicast
      apply-label explicit-null
      import-route direct
      import-route static
      peer 2.2.2.9 enable
      peer 2.2.2.9 label-route-capability
    #
    ospf 1
     area 0.0.0.0
      network 1.1.1.9 0.0.0.0
      network 4.3.5.0 0.0.0.255
    #
    ipv6 route-static FC00:1:: 64 Vlanif100 FC00:3::2 
    #
    return
  • PE_2的配置文件

    #
    sysname PE_2
    #
    vlan batch 100 200
    #
    mpls lsr-id 2.2.2.9
    #
    mpls
     lsp-trigger all
    #
    mpls ldp
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:4::1/64
    #
    interface Vlanif200
     ip address 4.3.5.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface 10GE1/0/1
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface 10GE1/0/2
     port link-type trunk
     port trunk allow-pass vlan 200
    #
    interface LoopBack0
     ip address 2.2.2.9 255.255.255.255
    #
    bgp 65100
     peer 1.1.1.9 as-number 65100
     peer 1.1.1.9 connect-interface LoopBack0
     #
     ipv4-family unicast
      peer 1.1.1.9 enable
     #
     ipv6-family unicast
      apply-label explicit-null
      import-route direct
      import-route static
      peer 1.1.1.9 enable
      peer 1.1.1.9 label-route-capability
    #
    ospf 1
     area 0.0.0.0
      network 2.2.2.9 0.0.0.0
      network 4.3.5.0 0.0.0.255
    #
    ipv6 route-static FC00:2:: 64 Vlanif100 FC00:4::2 
    #
    return
  • CE_1的配置文件

    #
    sysname CE_1
    #
    vlan batch 100 300
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:3::2 64
    #
    interface Vlanif300
     ipv6 enable
     ipv6 address FC00:1::1 64
    #
    interface 10GE1/0/1
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface 10GE1/0/2
     port default vlan 300
    #
    ipv6 route-static :: 0 Vlanif100 FC00:3::1
    #
    return
  • CE_2的配置文件

    #
    sysname CE_2
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:4::2 64
    #
    interface Vlanif300
     ipv6 enable
     ipv6 address FC00:2::1 64
    #
    interface 10GE1/0/1
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface 10GE1/0/2
     port default vlan 300
    #
    ipv6 route-static :: 0 Vlanif100 FC00:4::1
    #
    return
翻译
下载文档
更新时间:2019-04-19

文档编号:EDOC1100039516

浏览量:8007

下载量:205

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