H3C IPV6之BGP联盟典型组网配置案例

loading 分享 2026-8-30 下载文档

组网说明:

本案例采用H3C HCL模拟器来模拟IPV6 BGP联盟典型组网配置。R1、R2、R3都属于同一个联盟内,联盟自治域编号为AS100,其中R1属于AS65001,R2属于AS65002,R3属于AS65003。R1与R2建立EBGP邻居关系,R1与R3建立EBGP邻居关系。R4属于非联盟的路由器,与R3建立EBGP邻居关系。

配置思路:

1、按照网络拓扑图正确配置IP地址

2、R1与R2建立EBGP邻居关系,并划分到联盟中。 3、R1与R3建立EBGP邻居关系,并划分到联盟中。 4、R3与R4建立EBGP邻居关系

配置过程: R1: sys

System View: return to User View with Ctrl+Z. [H3C]sysname R1 [R1]int loopback 1

[R1-LoopBack1]ip address 1.1.1.1 32 [R1-LoopBack1]quit [R1]int loopback 0

[R1-LoopBack0]ipv6 address 4::1 64 [R1-LoopBack0]quit [R1]int gi 0/1

[R1-GigabitEthernet0/1]des [R1-GigabitEthernet0/1]ipv6 address 1::1 64 [R1-GigabitEthernet0/1]quit

[R1]bgp 65002

[R1-bgp-default]router-id 1.1.1.1 [R1-bgp-default]confederation id 100

[R1-bgp-default]confederation peer-as 65001 65003 [R1-bgp-default]peer 1::2 as-number 65001 [R1-bgp-default]address-family ipv6 unicast [R1-bgp-default-ipv6]peer 1::2 enable [R1-bgp-default-ipv6]network 4:: 64 [R1-bgp-default-ipv6]quit [R1-bgp-default]quit [R1]

R2: sys

System View: return to User View with Ctrl+Z. [H3C]sysname R2 [R2]int loopback 1

[R2-LoopBack1]ip address 2.2.2.2 32 [R2-LoopBack1]quit [R2]int loopback 0

[R2-LoopBack0]ipv6 address 5::1 64 [R2-LoopBack0]quit [R2]int gi 0/0

[R2-GigabitEthernet0/0]des [R2-GigabitEthernet0/0]ipv6 address 2::1 64 [R2-GigabitEthernet0/0]quit [R2]bgp 65003

[R2-bgp-default]router-id 2.2.2.2 [R2-bgp-default]confederation id 100

[R2-bgp-default]confederation peer-as 65001 65002 [R2-bgp-default]peer 2::2 as-number 65001 [R2-bgp-default]address-family ipv6 unicast [R2-bgp-default-ipv6]peer 2::2 enable [R2-bgp-default-ipv6]network 5:: 64 [R2-bgp-default-ipv6]quit [R2-bgp-default]quit

R3: sys

System View: return to User View with Ctrl+Z. [H3C]sysname R3 [R3]int loopback 1

[R3-LoopBack1]ip address 3.3.3.3 32 [R3-LoopBack1]quit

[R3]int loopback 0

[R3-LoopBack0]ipv6 address 6::1 64 [R3-LoopBack0]quit [R3]int gi 0/1

[R3-GigabitEthernet0/1]des [R3-GigabitEthernet0/1]ipv6 address 1::2 64 [R3-GigabitEthernet0/1]quit [R3]int gi 0/0

[R3-GigabitEthernet0/0]des [R3-GigabitEthernet0/0]ipv6 address 2::2 64 [R3-GigabitEthernet0/0]quit [R3]int gi 0/2

[R3-GigabitEthernet0/2]des [R3-GigabitEthernet0/2]ipv6 address 3::1 64 [R3-GigabitEthernet0/2]quit [R3]bgp 65001

[R3-bgp-default]router-id 3.3.3.3 [R3-bgp-default]confederation id 100

[R3-bgp-default]confederation peer-as 65002 65003 [R3-bgp-default]peer 1::1 as-number 65002 [R3-bgp-default]peer 2::1 as-number 65003 [R3-bgp-default]peer 3::2 as-number 200 [R3-bgp-default]address-family ipv6 unicast [R3-bgp-default-ipv6]peer 3::2 enable [R3-bgp-default-ipv6]peer 1::1 enable [R3-bgp-default-ipv6]peer 2::1 enable [R3-bgp-default-ipv6]import-route direct [R3-bgp-default-ipv6]network 6:: 64 [R3-bgp-default-ipv6]quit [R3-bgp-default]quit

R4: sys

System View: return to User View with Ctrl+Z. [H3C]sysname R4 [R4]int loopback 1

[R4-LoopBack1]ip address 4.4.4.4 32 [R4-LoopBack1]quit [R4]int loopback 0

[R4-LoopBack0]ipv6 address 7::1 64 [R4-LoopBack0]quit [R4]int gi 0/2

[R4-GigabitEthernet0/2]des [R4-GigabitEthernet0/2]ipv6 address 3::2 64

[R4-GigabitEthernet0/2]quit sys

System View: return to User View with Ctrl+Z. [H3C]sysname R4 [R4]int loopback 1

[R4-LoopBack1]ip address 4.4.4.4 32 [R4-LoopBack1]quit [R4]int loopback 0

[R4-LoopBack0]ipv6 address 7::1 64 [R4-LoopBack0]quit [R4]int gi 0/2

[R4-GigabitEthernet0/2]des [R4-GigabitEthernet0/2]ipv6 address 3::2 64 [R4-GigabitEthernet0/2]quit [R4]bgp 200

[R4-bgp-default]router-id 4.4.4.4

[R4-bgp-default]peer 3::1 as-number 100 [R4-bgp-default]address-family ipv6 unicast [R4-bgp-default-ipv6]peer 3::1 enable [R4-bgp-default-ipv6]network 7:: 64 [R4-bgp-default-ipv6]quit [R4-bgp-default]quit

分别查看R1、R2、R3、R4的IPV6路由表:[R1]dis ipv6 routing-table

Destinations : 12 Routes : 12

Destination: ::1/128 NextHop : ::1 Interface : InLoop0

Destination: 1::/64 NextHop : :: Interface : GE0/1

Destination: 1::1/128 NextHop : ::1 Interface : InLoop0

Destination: 2::/64 NextHop : 1::2 Interface : GE0/1

Protocol : Direct Preference: 0 Cost : 0 Protocol : Direct Preference: 0 Cost : 0 Protocol : Direct Preference: 0 Cost : 0 Protocol : BGP4+ Preference: 255 Cost : 0


H3C IPV6之BGP联盟典型组网配置案例.doc 将本文的Word文档下载到电脑
搜索更多关于: H3C IPV6之BGP联盟典型组网配置案例 的文档
相关推荐
相关阅读