华为设备配置BGP联盟(华为bgp协议配置)

网友投稿 529 2022-09-18


华为设备配置BGP联盟(华为bgp协议配置)

1. 配置各接口所属的VLAN

[LSW1]vlan batch 10 20 30 40  60

[LSW1-GigabitEthernet0/0/2]port link-type trunk

[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10

[LSW1-GigabitEthernet0/0/3]port link-type trunk

[LSW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 20

[LSW1-GigabitEthernet0/0/4]port link-type trunk

[LSW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 30

[LSW1-GigabitEthernet0/0/5]port link-type trunk

[LSW1-GigabitEthernet0/0/5]port trunk allow-pass vlan 40

[LSW1-GigabitEthernet0/0/6]port link-type trunk

[LSW1-GigabitEthernet0/0/6]port trunk allow-pass vlan 60

[LSW2]vlan batch 10

[LSW2-GigabitEthernet0/0/1]port link-type trunk

[LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10

[LSW3]vlan batch 20

[LSW3-GigabitEthernet0/0/1]port link-type trunk

[LSW3-GigabitEthernet0/0/1]port trunk allow-pass vlan 20

[LSW4]vlan batch 30 50

[LSW4-GigabitEthernet0/0/1]port link-type trunk

[LSW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 30

[LSW4-GigabitEthernet0/0/5]port link-type trunk

[LSW4-GigabitEthernet0/0/5]port trunk allow-pass vlan 50

[LSW5]vlan batch 40 50

[LSW5-GigabitEthernet0/0/1]port link-type trunk

[LSW5-GigabitEthernet0/0/1]port trunk allow-pass vlan 40

[LSW5-GigabitEthernet0/0/4]port link-type trunk

[LSW5-GigabitEthernet0/0/4]port trunk allow-pass vlan 50

[LSW6]vlan batch 60 70

[LSW6-GigabitEthernet0/0/1]port link-type trunk

[LSW6-GigabitEthernet0/0/1]port trunk allow-pass vlan 60

[LSW6-GigabitEthernet0/0/7]port link-type trunk

[LSW6-GigabitEthernet0/0/7]port trunk allow-pass vlan 70

2. 配置各VLANIF接口的IP地址

[LSW1-Vlanif10]ip add 10.1.1.1 24

[LSW1-Vlanif20]ip add 10.1.2.1 24

[LSW1-Vlanif30]ip add 10.1.3.1 24

[LSW1-Vlanif40]ip add 10.1.4.1 24

[LSW1-Vlanif60]ip add 10.1.6.1 24

[LSW2-Vlanif10]ip add 10.1.1.2 24

[LSW3-Vlanif20]ip add 10.1.2.3 24

[LSW4-Vlanif30]ip add 10.1.3.4 24

[LSW4-Vlanif50]ip add 10.1.5.4 24

[LSW5-Vlanif40]ip add 10.1.4.5 24

[LSW5-Vlanif50]ip add 10.1.5.5 24

[LSW6-Vlanif60]ip add 10.1.6.6 24

[LSW6-Vlanif70]ip add 10.1.7.6 24

3. 配置BGP联盟

[LSW1]bgp 65001

[LSW1-bgp]router-id 1.1.1.1

[LSW1-bgp]confederation id 200

[LSW1-bgp]confederation peer-as 65002 65003

[LSW1-bgp]peer 10.1.1.2 as-number 65002

[LSW1-bgp]peer 10.1.2.3 as-number 65003

[LSW1-bgp]ipv4-family unicast

[LSW1-bgp-af-ipv4]peer 10.1.1.2 next-hop-local

[LSW1-bgp-af-ipv4]peer 10.1.2.3 next-hop-local

[LSW2]bgp 65002

[LSW2-bgp]router-id 2.2.2.2

[LSW2-bgp]confederation id 200

[LSW2-bgp]confederation peer-as 65001 65003

[LSW2-bgp]peer 10.1.1.1 as-number 65001

[LSW3]bgp 65003

[LSW3-bgp]router-id 3.3.3.3

[LSW3-bgp]confederation id 200

[LSW3-bgp]confederation peer-as 65001 65002

[LSW3-bgp]peer 10.1.2.1 as-number 65001

4. 配置AS65001内的IBGP连接

[LSW1]bgp 65001

[LSW1-bgp]peer 10.1.3.4 as-number 65001

[LSW1-bgp]peer 10.1.4.5 as-number 65001

[LSW1-bgp]ipv4-family unicast

[LSW1-bgp-af-ipv4]peer 10.1.3.4 next-hop-local

[LSW1-bgp-af-ipv4]peer 10.1.4.5 next-hop-local

[LSW4]bgp 65001

[LSW4-bgp]router-id 4.4.4.4

[LSW4-bgp]peer 10.1.3.1 as-number 65001

[LSW4-bgp]peer 10.1.5.5 as-number 65001

[LSW5]bgp 65001

[LSW5-bgp]router-id 5.5.5.5

[LSW5-bgp]peer 10.1.4.1 as-number 65001

[LSW5-bgp]peer 10.1.5.4 as-number 65001

5. 配置AS100和AS200之间的EBGP连接

[LSW1]bgp 65001

[LSW1-bgp]peer 10.1.6.6 as-number 100

[LSW6]bgp 100

[LSW6-bgp]router-id 6.6.6.6

[LSW6-bgp]peer 10.1.6.1 as-number 200

[LSW6-bgp]ipv4-family unicast

[LSW6-bgp-af-ipv4]network 10.1.7.0 24

6. 检查配置


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:解决SpringMVC拦截器path路径的坑
下一篇:IPPBX融合通信方案_电话交换机集团IP电话交换机方案(ippbx组网方案)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~