HCL华三模拟器BGP配置更新源
peer connect-interface命令用来指定与对等体/对等体组创建BGP会话时建立TCP连接使用的源接口,即采用指定源接口的IP地址/IPv6地址与对等体/对等体组建立TCP连接。
本命令的作用与peer source-address命令的作用类似:peer source-address命令直接指定建立TCP连接的源地址;本命令通过指定源接口,间接指定建立TCP连接的源地址。在一台BGP路由器上如果同时执行本命令和peer source-address命令,则后执行的配置覆盖之前的配置。
# ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 20.1.1.0 0.0.0.255 network 100.1.1.0 0.0.0.255 interface LoopBack2 ip address 100.1.1.2 255.255.255.0 ip address 100.1.1.3 255.255.255.0 sub ip address 100.1.1.4 255.255.255.0 sub ip address 100.1.1.5 255.255.255.0 sub ip address 100.1.1.6 255.255.255.0 sub interface GigabitEthernet0/0 port link-mode route combo enable copper ip address 20.1.1.1 255.255.255.0 #bgp 100 peer 20.1.2.2 as-number 100 # address-family ipv4 unicast peer 20.1.2.2 enable #
# ospf 1 router-id 3.3.3.3 area 0.0.0.0 network 20.1.1.0 0.0.0.255 network 20.1.2.0 0.0.0.255 # interface GigabitEthernet0/0 port link-mode route combo enable copper ip address 20.1.1.2 255.255.255.0 # interface GigabitEthernet0/1 port link-mode route combo enable copper ip address 20.1.2.1 255.255.255.0 #
ospf 1 router-id 4.4.4.4 area 0.0.0.0 network 20.1.2.0 0.0.0.255 # interface GigabitEthernet0/0 port link-mode route combo enable copper ip address 20.1.2.2 255.255.255.0 # bgp 100 peer 100.1.1.2 as-number 100 # address-family ipv4 unicast peer 100.1.1.2 enable #
不用配置更新源,即可连接
本文来自博客园,作者:开源侠,转载请注明原文链接:https://www.cnblogs.com/cyj22/p/17434492.html
微信公众号:青衫换酒吃