BGP examples on HP A-series (comware7)

posted 10 Feb 2016, 07:50 by DR Labs   [ updated 9 Apr 2016, 23:54 ]
This lab was configured using HPs H3C cloud lab software. I've attached the exported configuration file.




DEVICE 1 - LOCAL
bgp 65000
 peer 172.16.0.1 as-number 65999
 #
 address-family ipv4 unicast
  network 10.0.0.0 255.0.0.0
  peer 172.16.0.1 enable
  peer 172.16.0.1 route-policy RP-WAN-IN import
#
route-policy RP-WAN-IN permit node 10
 if-match ip address prefix-list PL-WAN-IN
#
route-policy RP-WAN-IN permit node 20
 if-match as-path 1
#
 ip prefix-list PL-WAN-IN index 10 permit 50.0.0.0 8
#
 ip as-path 1 permit _64555$

DEVICE 2 - WAN
bgp 65999
 peer 172.16.0.2 as-number 65000
 peer 172.16.1.1 as-number 64000
 #
 address-family ipv4 unicast
  peer 172.16.0.2 enable
  peer 172.16.1.1 enable

DEVICE 3 - DC1
bgp 64000
 peer 172.16.1.2 as-number 65999
 peer 172.16.2.1 as-number 64555
 #
 address-family ipv4 unicast
  network 50.0.0.0 255.0.0.0
  peer 172.16.1.2 enable
  peer 172.16.2.1 enable

DEVICE 4 - 365
bgp 64555
 peer 172.16.2.2 as-number 64000
 peer 172.16.3.1 as-number 61000
 #
 address-family ipv4 unicast
  network 90.0.0.0 255.0.0.0
  network 100.0.0.0 255.0.0.0
  peer 172.16.2.2 enable
  peer 172.16.3.1 enable
#

DEVICE 5 - Internet
bgp 61000
 peer 172.16.3.2 as-number 64555
 #
 address-family ipv4 unicast
  network 80.0.0.0 255.0.0.0
  peer 172.16.3.2 enable


ċ
bgp_as_filter_exported.hcl
(1974k)
DR Labs,
10 Feb 2016, 08:31
Comments