bgpsim 0.20.4

A network control-plane simulator
Documentation
!
feature bgp
feature ospf
!
! Interfaces
!
interface Ethernet8/1
  no switchport
  ip address 3.128.0.1/30
  ip ospf cost 100
  ip router ospf 10 area 0
  ip ospf dead-interval 5
  ip ospf hello-interval 1
  no shutdown
exit
!
interface Ethernet8/2
  no switchport
  ip address 3.128.0.5/30
  ip ospf cost 100
  ip router ospf 10 area 0
  ip ospf dead-interval 5
  ip ospf hello-interval 1
  no shutdown
exit
!
interface Ethernet8/3
  no switchport
  ip address 3.128.0.9/30
  ip ospf cost 100
  ip router ospf 10 area 0
  ip ospf dead-interval 5
  ip ospf hello-interval 1
  no shutdown
exit
!
interface Ethernet8/4
  no switchport
  ip address 1.192.0.1/30
  no shutdown
exit
!
interface Loopback0
  ip address 3.0.0.1/32
  ip ospf cost 1
  ip router ospf 10 area 0
  no shutdown
exit
!
! Static Routes
!
!
! OSPF
!
router ospf 10
  router-id 3.0.0.1
  maximum-paths 1
exit
!
! BGP
!
route-map neighbor-R1-in permit 65535
exit
route-map neighbor-R1-out permit 65535
exit
route-map neighbor-R2-in permit 65535
exit
route-map neighbor-R2-out permit 65535
exit
route-map neighbor-R3-in permit 65535
exit
route-map neighbor-R3-out permit 65535
exit
route-map neighbor-R0_ext_4-in permit 65535
exit
route-map neighbor-R0_ext_4-out permit 65535
exit
!
router bgp 65500
  router-id 3.0.0.1
  neighbor 3.0.1.1 remote-as 65500
    update-source Loopback0
    address-family ipv4 unicast
      weight 100
      next-hop-self
      route-map neighbor-R1-in in
      route-map neighbor-R1-out out
      send-community both
      soft-reconfiguration inbound
    exit
  exit
  neighbor 3.0.2.1 remote-as 65500
    update-source Loopback0
    address-family ipv4 unicast
      weight 100
      next-hop-self
      route-map neighbor-R2-in in
      route-map neighbor-R2-out out
      send-community both
      soft-reconfiguration inbound
    exit
  exit
  neighbor 3.0.3.1 remote-as 65500
    update-source Loopback0
    address-family ipv4 unicast
      weight 100
      next-hop-self
      route-map neighbor-R3-in in
      route-map neighbor-R3-out out
      send-community both
      soft-reconfiguration inbound
    exit
  exit
  neighbor 1.192.0.2 remote-as 100
    update-source Ethernet8/4
    address-family ipv4 unicast
      weight 100
      next-hop-self
      route-map neighbor-R0_ext_4-in in
      route-map neighbor-R0_ext_4-out out
      soft-reconfiguration inbound
    exit
  exit
  address-family ipv4 unicast
    network 3.0.0.0/8
  exit
exit
!
ip route 3.0.0.0/8 null 0
!
! Route-Maps
!
ip prefix-list neighbor-R0_ext_4-in-32778-pl seq 1 permit 100.0.0.0/24
ip community-list standard neighbor-R0_ext_4-in-32778-cl permit 65500:10
route-map neighbor-R0_ext_4-in permit 32778
  match ip address prefix-list neighbor-R0_ext_4-in-32778-pl
  match community neighbor-R0_ext_4-in-32778-cl
  set weight 10
  continue 32798
exit
!
ip community-list standard neighbor-R0_ext_4-in-32788-cl permit 65500:20
route-map neighbor-R0_ext_4-in permit 32788
  match community neighbor-R0_ext_4-in-32788-cl
  set weight 20
exit
!
ip community-list standard neighbor-R0_ext_4-in-32798-cl permit 65500:30
route-map neighbor-R0_ext_4-in permit 32798
  match community neighbor-R0_ext_4-in-32798-cl
  set weight 30
  continue 32808
exit
!
ip community-list standard neighbor-R0_ext_4-in-32808-cl permit 65500:40
route-map neighbor-R0_ext_4-in permit 32808
  match community neighbor-R0_ext_4-in-32808-cl
  set weight 40
  continue 65535
exit
!
ip community-list standard neighbor-R0_ext_4-out-32778-cl permit 65500:20
route-map neighbor-R0_ext_4-out deny 32778
  match community neighbor-R0_ext_4-out-32778-cl
exit