All pastes #746622 Raw Edit

openbgpd config

public text v1 · immutable
·published 2007-10-23 11:22 UTC
rendered paste body
AS 38657
router-id 203.82.32.251
holdtime min 3
fib-update yes
nexthop qualify via bgp

network 116.50.138.0/24
network 116.50.137.0/24
network 118.67.192.0/21
network 118.67.192.0/27


neighbor 203.82.33.129 {
        descr "FC"
        remote-as 18187
        multihop 3
        local-address 203.82.33.129
        announce self
        enforce neighbor-as yes
        announce IPv4 unicast
        announce IPv6 none
        softreconfig in yes
        softreconfig out yes
}
neighbor 118.67.197.233 {
        descr "POI"
        remote-as 38657
        announce all
        enforce neighbor-as no
        announce IPv4 unicast
        announce IPv6 none
        softreconfig in yes
        softreconfig out yes
}

match to 118.67.197.233 set { nexthop self }
deny from any
allow from any prefixlen 8 - 24
deny from any prefix 0.0.0.0/0
deny from any prefix 10.0.0.0/8 prefixlen >= 8
deny from any prefix 172.16.0.0/12 prefixlen >= 12
deny from any prefix 192.168.0.0/16 prefixlen >= 16
deny from any prefix 169.254.0.0/16 prefixlen >= 16
deny from any prefix 192.0.2.0/24 prefixlen >= 24
deny from any prefix 224.0.0.0/4 prefixlen >= 4
deny from any prefix 240.0.0.0/4 prefixlen >= 4


# bgpctl show nexthop
Nexthop              State
203.82.32.241        valid     msk0    UP, Ethernet, active, 100 MBit/s
203.82.32.238        valid     msk0    UP, Ethernet, active, 100 MBit/s
118.67.197.233       valid     em0     UP, Ethernet, active, 100 MBit/s
203.82.32.233        valid     msk0    UP, Ethernet, active, 100 MBit/s
203.82.32.229        valid     msk0    UP, Ethernet, active, 100 MBit/s
203.82.32.227        valid     msk0    UP, Ethernet, active, 100 MBit/s
203.82.32.225        valid     msk0    UP, Ethernet, active, 100 MBit/s
203.82.33.129        valid     -----Loopback ip of my peering
#


# bgpctl show nei
BGP neighbor is 203.82.33.129, remote AS 18187
 Description: FC
  BGP version 4, remote router-id 203.82.33.129
  BGP state = Established, up for 00:53:06
  Last read 00:00:07, holdtime 90s, keepalive interval 30s
  Neighbor capabilities:
    Multiprotocol extensions: IPv4 Unicast
    Route Refresh

  Message statistics:
                  Sent       Received
  Opens                    4          4
  Notifications            1          0
  Updates                  8     194428
  Keepalives             329        321
  Route Refresh            0          0
  Total                  342     194753

  Local host:         203.82.32.251, Local port:    179
  Remote host:        203.82.33.129, Remote port: 14050

BGP neighbor is 118.67.197.233, remote AS 38657
 Description: POI
  BGP version 4, remote router-id 118.67.197.225
  BGP state = Established, up for 02:49:11
  Last read 00:00:11, holdtime 90s, keepalive interval 30s
  Neighbor capabilities:
    Multiprotocol extensions: IPv4 Unicast
    Route Refresh

  Message statistics:
                  Sent       Received
  Opens                    1          1
  Notifications            0          0
  Updates              99370     113557
  Keepalives              20        340
  Route Refresh            0          0
  Total                99391     113898

  Local host:        118.67.197.234, Local port:  47061
  Remote host:       118.67.197.233, Remote port:   179