Contents

Related Topics

BGP Commands

Fireware uses the Quagga routing software suite v0.99.18, which supports most routing commands available in more recent versions of Quagga. For more information about Quagga commands, see Quagga Routing Suite Documentation.

To create or modify a routing configuration file, you must use the correct routing commands. This list includes some of the supported BGP routing commands. The sections must appear in the configuration file in the same order they appear in this table.

Do not use BGP configuration parameters that you do not get from your ISP.

Section Command Description
Configure BGP Routing Daemon
  router bgp [ASN] Enable BGP daemon and set autonomous system number (ASN); this is supplied by your ISP.
  bgp router-id [A.B.C.D] Configure the router ID.
  network [A.B.C.D/M] Announce BGP on network: A.B.C.D/M, identifies the subnet to advertise.
  no network [A.B.C.D/M] Disable BGP announcements on network A.B.C.D/M
  ipv6 bgp network [A:B:C:D:E:F:G:H/M] Announce BGP on network.
  ipv6 bgp aggregate-prefix [A:B:C:D:E:F:G:H/M] Configure BGP aggregate entries.
  timers bgp [keepalive] [holdtime] Set the BGP keepalive time and the hold down time, in seconds. The default keepalive time is 60 seconds, and the default holdtime is 180 seconds. As a general rule, the holdtime should be three times the keepalive time.
Set Neighbor Properties
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] remote-as [ASN] Set neighbor as a member of remote ASN.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] ebgp-multihop Set neighbor on another network using EBGP multi-hop.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] version [4|4-] Set BGP version (4, 4-) for communication with neighbor; default is 4.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] update-source [WORD] Set the BGP session to use a specific interface for TCP connections.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] default-originate Announce default route to BGP neighbor [A,B,C,D].
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] port 189 Set custom TCP port to communicate with BGP neighbor [A,B,C,D].
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] send-community Set peer send-community.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] weight 1000 Set a default weight for neighbor's [A.B.C.D] routes.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] maximum-prefix [NUMBER] Set maximum number of prefixes allowed from this neighbor.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] timers connect [time] Set the BGP connection timer, in seconds.
  neighbor [A.B.C.D] password [password] Set the password for MD5 authentication.
Set IPv6 Address Family command mode
  address-family ipv6

Enter the IPv6 address family command mode.

 

neighbor [A:B:C:D:E:F:G:H] activate

The neighbor activate command must be used in the address-family ipv6 mode.

 

network [A:B:C:D:E:F:G:H/M]

This network statement here can replace the “ipv6 bgp network [A:B:C:D:E:F:G:H/M]” command. This works only within the address-family ipv6 mode.

  exit-address-family Exit the IPv6 address family command mode.
Community Lists
  ip community-list [<1-99>|<100-199>] permit AA:NN Specify community to accept autonomous system number and network number separated by a colon.
Peer Filtering
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] distribute-list [LISTNAME] [in|out] Set distribute list and direction for peer.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] prefix-list [LISTNAME] [in|out] To apply a prefix list to be matched to incoming advertisements or outgoing advertisements to that neighbor.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] filter-list [LISTNAME] [in|out] To match an autonomous system path access list to incoming routes or outgoing routes.
  neighbor [A.B.C.D|A:B:C:D:E:F:G:H] route-map [MAPNAME] [in|out] To apply a route map to incoming or outgoing routes.
Redistribute Routes to BGP
  redistribute static Redistribute static routes to BGP
  redistribute ripng Redistribute RIPng routes to BGP
  redistribute ospf6 Redistribute OSPFv3 routes to BGP
Route Reflection
  bgp cluster-id A.B.C.D To configure the cluster ID if the BGP cluster has more than one route reflector.

 

neighbor [W.X.Y.Z|A:B:C:D:E:F:G:H] route-reflector-client To configure the router as a BGP route reflector and configure the specified neighbor as its client.
Access Lists and IP Prefix Lists
  ip prefix-lists [PRELIST] permit A.B.C.D/M Set IPv4 prefix list
  ipv6 prefix-list [PRELIST] [deny|permit] [A:B:C:D:E:F:G:H/M|Any] Set IPv6 prefix list
  access-list NAME [deny|permit] A.B.C.D/M Set IPv4 access list
  ipv6 access-list [NAME] [deny|permit] [A:B:C:D:E:F:G:H/M|Any] Set IPv6 access list
  route-map [MAPNAME] [deny|permit] [N] In conjunction with the "match" and "set" commands, this defines the conditions and actions for redistributing routes
  match ip address prefix-list [LISTNAME] Match the specified access-list
  set community [A:B] Set the BGP community attribute
  match community [N] Match the specified community_list
  set local-preference [N] Set the preference value for the autonomous system path

See Also 

About Border Gateway Protocol (BGP)

Configure IPv4 and IPv6 Routing with BGP

Sample BGP Routing Configuration File

Give Us Feedback     Get Support     All Product Documentation     Technical Search