BGP Configuration command directory

aggregate-address

bgp always-compare-med

bgp bestpath med

bgp client-to-client reflection

bgp cluster-id

bgp confederation identifier

bgp confederation peers

bgp dampening

bgp default

bgp deterministic-med

bgp redistribute-internal

clear ip bgp

debug chat

debug dialer

debug ip bgp

distance

filter

neighbor default-originate

neighbor description

neighbor distribute-list

neighbor ebgp-multihop

neighbor filter-list

neighbor maximum-prefix

neighbor next-hop-self

neighbor prefix-list

neighbor remote-as

neighbor route-map

neighbor route-reflector-client

neighbor route-refresh

neighbor send-community

neighbor shutdown

neighbor soft-reconfiguration

neighbor timers

neighbor update-source

neighbor weight

network (BGP)

redistribute(BGP)

router bgp

show ip bgp

show ip bgp community

show ip bgp neighbors

show ip bgp paths

show ip bgp prefix-list

show ip bgp regexp

show ip bgp summary

synchronization

table-map

timers

aggregate-address

aggregate-address A.B.C.D/n [summary-only] [route-map map-name]

no aggregate-address A.B.C.D/n [summary-only] [route-map map-name]

 

Parameter:

A.B.C.D/n

Aggregate network

summary-only

control all route

route-map

Appoint route-mapto set the performance of aggregate network

map-name

route-map name

 

Default::

none 

Command mode:

BGP configuration mode

  

Example:

The following example will creat aggregate address

router bgp 5

aggregate-address 193.0.0.0/8

 

Relevant command:

route-map

network (BGP)

redistribute(BGP)

 

bgp always-compare-med

bgp always-compare-med

no bgp always-compare-med

 

Parameter:

none

 

Default::

In Default,it dou’t compare MED of route from different AS.

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

 

router bgp 5

bgp always-compare-med

 

Relevant command:

bgp bestpath med

bgp deterministic-med

 

bgp bestpath med

   bgp bestpath med

Parameter:

   confed              AS compare MED performance

Default:

   none

 

Command mode:

BGP CONFIGURATION MODE

 

 

Relevant command:

bgp always-compare-med

bgp deterministic-med

 

bgp client-to-client reflection

 

bgp client-to-client reflection

no bgp client-to-client reflection:

 

Parameter:

none

 

Command mode:

BGP CONFIGURATION MODE  

Example:

 

router bgp 5

neighbor 192..168.20.190 router-reflector-client

neighbor 192..168.20.191 router-reflector-client

neighbor 192..168.20.192 router-reflector-client

no bgp client-to-client reflection

 

Relevant command:

neighbor route-reflector-client

    bgp cluster-id

 

bgp cluster-id

bgp cluster-id cluster-id

no bgp cluster-id cluster-id

 

Parameter:

cluster-id      BGP route cluster-id,it can be the format of  ip address,alse can be number,the largest number is 4 bytes.

 

 

Command mode:

BGP CONFIGURATION MODE

  

Example:

router bgp 5

neighbor 198.92.70.24 route-reflector-client

bgp cluster-id 50000

 

Relevant command:

neighbor route-reflector-client 错误!未定义书签。

show ip bgp summary 错误!未定义书签。

 

bgp confederation identifier

use bgp confederation identifier to appoint a BGP AS id,use no bgp confederation identifier to delete it.

bgp confederation identifier autonomous-system

no bgp confederation identifier autonomous-system

 

Parameter:

autonomous-system     AS number of AS

 

Default::

none

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

router bgp 4001

bgp confederation identifier 5

bgp confederation peers 4002 4003 4004 4005 4006 4007

neighbor 1.2.3.4 remote-as 4002

neighbor 3.4.5.6 remote-as 510

 

Relevant command:

bgp confederation peers

show ip bgp summary 30

 

bgp confederation peers

bgp confederation peers autonomous-system [autonomous-system]

no bgp confederation peers autonomous-system [autonomous-system]

 

Parameter:

autonomous-system    AS number

 

Default::

none

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

 

router bgp 1090

bgp confederation identifier 23

bgp confederation peers 1091 1092 1093

 

Relevant command:

bgp confederation identifier

show ip bgp summary

 

bgp dampening

  

   bgp dampening [route-map <name>] | [<half-time> <resuse-value> <suppress-value> <hold-time>]

   no bgp dampening [route-map <name>] | [<half-time> <resuse-value> <suppress-value> <hold-time>]

 

Parameter:

route-map

Route-map

                  

               

Default::

   half-time:                  15 minutes

   reuse-value:           750

   suppress-value:     2000

   hold-time:                      60 minutes

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

Router bgp 100

bgp dampening route-map DMAP

!

route-map DMAP 10 permit

match as-path ASLIST-1

set dampening 15 750 2000 60

!
   route-map DMAP 20 permit

 match as-path ASLIST-2

 set dampening 2 750 2000 8

!
   ip as-path access-list ASLIST-1 permit ^3_

ip as-path access-list ASLIST-2 permit ^5_

 

Relevant command:

      set dampening

 

bgp default

  

bgp default local-preference <0-4294967295>

no bgp default local-preference <0-4294967295>

 

Parameter:

   local-preference     local preference 

   <0-4294967295>       default value of  local priority

 

Default:

100

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

router bgp 100

bgp default local-preference 200

 

bgp deterministic-med

bgp deterministic-med

no bgp deterministic-med

 

Parameter:

none

 

Default::

none

Command mode:

BGP CONFIGURATION MODE

 

 

Relevant command:

bgp bestpath med

bgp always-compare-med

bgp redistribute-internal

bgp redistribute-internal
no bgp redistribute-internal

 

Parameter:

none

Default::

The route get from IBGP don't be added to IGP.

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

router ospf 3
 redistribute bgp 2
!
router bgp 2
 bgp redistribute-internal
!

Relevant command:

none

clear ip bgp

clear ip bgp {* | ip-address | as-number | peer-group name | aggregates | networks | redistribute} [soft [in | out]]

 

Parameter:

*

Reset all current BGP session

ip-address

Reset appointed BGP neighbor

AS

Reset appointed AS neighbor

peer-group-name

Reset appointed BGP peer-group

aggregates

Reset all  aggregate route

networks

Reset all static network route

redistribute

Reset all  redistribute

soft

soft-reconfiguration

in | out 

soft-reconfiguration of in/out route

 

Command mode:

Supervisor mode

 

 

 

Example:

clear ip bgp *

 

Relevant command:

neighbor soft-reconfiguration

show ip bgp

 

 

debug chat

debug chat

no debug chat

Parameter:

none

Command mode:

Supervisor mode

Example:

Router#debug chat

Router#SCRIPT: start script default_dialer_script...

SCRIPT:Sending string: ATZ

SCRIPT:Expecting string: OK

SCRIPT: Receive string:

41 54 0D 0D 0A 4F 4B 0D 0A AT...OK..

SCRIPT:Completed match for expect:OK

SCRIPT:Sending string: ATDT 2

SCRIPT:Expecting string: CONNECT

SCRIPT: Receive string:

43 4F 4E 4E 45 43 54 CONNECT

SCRIPT: Completed match for expect:CONNECT

SCRIPT:Chat script finished

Relevant command:

chat-script

debug dialer

debug dialer

no debug dialer

Parameter:

none

Command mode:

Supervisor mode

Example:

Router#debug dialer

DIALER Serial 1/0: Dialing cause ip(PERMIT).

DIALER Serial 1/0: Dialing using Modem script: default_dialer_script  & System script: none

DIALER Serial 1/0: Attempting to dial 2

DIALER Serial 1/0: process started

DIALER Serial 1/0: Chat script default_dialer_script (dialer) started.....

DIALER Serial 1/0: Connection established

DIALER Serial 1/0: Modem script finished successfully

 

debug ip bgp

debug ip bgp all | fsm | keepalive | open | update

no debug ip bgp all | fsm | keepalive | open | update

 

Parameter:

all

enable BGP all track function

dampening

enable BGP route dampening track function

event

enable BGP event track function

fsm

enable BGP fsm track function

keepalive

enable BGP Keepalive packet track function

notify

enable BGP Notify packet track function

open

enable BGP Open packet track function

update

enable BGP Update packet track function

 

Default:

All track function is enabled.

 

Command mode:

Supervisor mode

 

 

Example:

BGP: 10.1.1.3 start connecting to peer

BGP: 10.1.1.3 went from Idle to Connect

BGP: 10.1.1.3 went from Connect to OpenSent

BGP: 10.1.1.3 send OPEN, length 41

BGP: 10.1.1.3 recv OPEN, length 41

BGP: 10.1.1.3 went from OpenSent to OpenConfirm

BGP: 10.1.1.3 send KEEPALIVE, length 19

BGP: 10.1.1.3 recv KEEPALIVE, length 19

BGP: 10.1.1.3 went from OpenConfirm to Established

BGP: 10.1.1.3 send KEEPALIVE, length 19

BGP: 10.1.1.3 send UPDATE, length 43

BGP: 10.1.1.3 send UPDATE, length 43

BGP: 10.1.1.3 recv KEEPALIVE, length 19

BGP: 10.1.1.3 recv KEEPALIVE, length 19

 

distance

distance bgp external-distance internal-distance local-distance

no distance bgp

 

Parameter:

external-distance

BGP external route distance  ,Default is 200.

internal-distance

BGP internal route distance  ,Default is 200.

local-distance

BGP local route distance  ,Default is 200.

 

Default::

external-distance: 20

internal-distance: 200

local-distance: 200

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 131.108.0.0

neighbor 129.140.6.6 remote-as 123

neighbor 128.125.1.1 remote-as 47

distance 20 20 200

Relevant command:

set metric

set tag

filter

filter interface <in | out> access-list access-list-name gateway access-list-name prefix-list prefix-list-name

no filter interface <in | out> access-list access-list-name gateway access-list-name prefix-list prefix-list-name

 

Parameter:

interface

Interface name

access-list-name

access-list name

prefix-list-name

prefix-list name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

filter * in prefix-list prefix-guize gateway gateway-guize

Relevant command:

       neighbor distribute-list

       neighbor filter-list

       neighbor route-map

neighbor default-originate

neighbor {ip-address | peer-group-name} default-originate

no neighbor {ip-address | peer-group-name} default-originate

      

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

 don’t sent Default route to neighbor

Command mode::

BGP CONFIGURATION MODE

 

      

Example::

router bgp 109

network 160.89.0.0

neighbor 160.89.2.1 remote-as 100

neighbor 160.89.2.3 remote-as 200

neighbor 160.89.2.3 default-originate

 

Relevant command:

neighbor ebgp-multihop

 

neighbor description

neighbor {ip-address | peer-group-name} description LINE

no neighbor {ip-address | peer-group-name} description [LINE]

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 160.89.0.0

neighbor 160.89.2.3 description peer with abc.com

 

neighbor distribute-list

neighbor {ip-address | peer-group-name} distribute-list {access-list name } {in | out}

no neighbor {ip-address | peer-group-name} distribute-list {access-list name} {in |out}

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

access-list name

access-list name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 131.108.0.0

neighbor 120.23.4.1 distribute-list beijing in

 

Relevant command:

ip aspath-list

neighbor filter-list

ip prefix-list 1

neighbor prefix-list

neighbor ebgp-multihop

neighbor {ip-address | peer-group-name} ebgp-multihop [ttl]

no neighbor {ip-address | peer-group-name} ebgp-multihop

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

ttl

1~255

 

Command mode::

BGP CONFIGURATION MODE

 

      

Example::

 

router bgp 109:

neighbor 131.108.1.1 ebgp-multihop

 

Relevant command:

neighbor default-originate

 

neighbor filter-list

neighbor {ip-address | peer-group-name} filter-list as-path-list name {in | out }

no neighbor {ip-address | peer-group-name} filter-list as-path-list name {in | out }

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

ip as-path-list shanghai deny _123_

ip as-path-list shanghai deny ^123$

 

router bgp 109

network 131.108.0.0

neighbor 129.140.6.6 remote-as 123

neighbor 128.125.1.1 remote-as 47

neighbor 128.125.1.1 filter-list shanghai out

 

Relevant command:

ip aspath-list

neighbor distribute-list

ip prefix-list 1

neighbor prefix-list

neighbor maximum-prefix

neighbor {ip-address | peer-group-name} maximum-prefix maximum

no neighbor {ip-address | peer-group-name} maximum-prefix

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default:

Don't limit

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 131.108.0.0

neighbor 129.140.6.6 maximum-prefix 1000

 

Relevant command:

clear ip bgp

 

neighbor next-hop-self

neighbor {ip-address | peer-group-name} next-hop-self

no neighbor {ip-address | peer-group-name} next-hop-self

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default:

disable

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

neighbor 131.108.1.1 next-hop-self

 

Relevant command:

set ip next-hop 18

 

neighbor prefix-list

neighbor {ip-address | peer-group-name} prefix-list prefix-listname {in | out}

no neighbor {ip-address | peer-group-name} prefix-list prefix-listname {in |out}

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

prefix-listname

Prefix list name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 131.108.0.0

neighbor 120.23.4.1 prefix-list abc in

 

router bgp 109

network 131.108.0.0

neighbor 120.23.4.1 prefix-list CustomerA in

 

Relevant command:

ip prefix-list 1

ip prefix-list description 3

ip prefix-list sequence-number 3

show ip prefix-list 4

clear ip prefix-list 5

neighbor filter-list

 

neighbor remote-as

neighbor {ip-address | peer-group-name} remote-as number

no neighbor {ip-address | peer-group-name} remote-as number

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

network 131.108.0.0

network 192.31.7.0

neighbor 131.108.200.1  remote-as 167

neighbor 131.108.234.2  remote-as 109

neighbor 150.136.64.19  remote-as  99

 

Relevant command:

neighbor peer-group (creating)

 

neighbor route-map

 

neighbor {ip-address | peer-group-name} route-map map-name {in | out}

no neighbor {ip-address | peer-group-name} route-map map-name {in | out}

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

map-name

Routr map name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

 

router bgp 5

neighbor 198.92.70.24 route-map internal-map in

 

route-map internal-map

match as-path abc

set local-preference 100

 

Relevant command:

neighbor peer-group (creating)

route-map 1

 

neighbor route-reflector-client

 

neighbor ip-address route-reflector-client

no neighbor ip-address route-reflector-client

 

Parameter:

ip-address                ip address of BGP neighbor

 

 

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 5

neighbor 198.92.70.24 route-reflector-client

 

Relevant command:

bgp cluster-id

show ip bgp

neighbor route-refresh

neighbor ip-address route-refresh

no neighbor ip-address route-refresh

 

Parameter:

ip-address                ip address of BGP neighbor

 

 

 

Command mode::

BGP CONFIGURATION MODE

 

Example::

 

router bgp 5

neighbor 198.92.70.24 route-refresh

 

Relevant command:

show ip bgp neighbors

 

neighbor send-community

neighbor {ip-address | peer-group-name} send-community

no neighbor {ip-address | peer-group-name} send-community

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

 

Command mode::

BGP CONFIGURATION MODE

 

 

 

Example::

router bgp 109

no neighbor 198.92.70.23 send-community

 

Relevant command:

match community-list 4

neighbor peer-group (creating)

set community 15

set community-additive 17

neighbor shutdown

neighbor {ip-address | peer-group-name} shutdown

no neighbor {ip-address | peer-group-name} shutdown

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

 

Relevant command:

show ip bgp summary

show ip bgp neighbors

neighbor soft-reconfiguration

neighbor {ip-address | peer-group-name} soft-reconfiguration [inbound]

no neighbor {ip-address | peer-group-name} soft-reconfiguration [inbound]

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

 

 

Command mode:

BGP CONFIGURATION MODE

 

 

 

Example::

router bgp 100

neighbor 131.108.1.1 remote-as 200

neighbor 131.108.1.1 soft-reconfiguration inbound

 

Relevant command:

clear ip bgp

neighbor peer-group (creating)

 

neighbor timers

neighbor {ip-address | peer-group-name} timers keepalive holdtime

no neighbor {ip-address | peer-group-name} timers keepalive holdtime

 

Parameter:

ip-address

IPaddress of neighbor

peer-group-name

BGP peer group name

 

Default::

keepalive60 s

holdtime180 s

 

Command mode:

BGP CONFIGURATION MODE

 

 

 

Example:

router bgp 109

neighbor 192.98.47.10 timers 70 210

 

neighbor update-source

use neighbor update-source allow BGP session to set TCP connection with appionted interface address.

neighbor {ip-address | peer-group-name} update-source interface

no neighbor {ip-address | peer-group-name} update-source interface

 

Parameter:

ip-address

IP address of BGP session neighbor

peer-group-name

BGP peer group name

Interface

Interface name

 

Default:

 Use local interface IP address accounted by route to set TCP connection.

Command mode::

BGP CONFIGURATION MODE

 

Example:

The following example display the loopback interface IP used by appointed neighbor

router bgp 110

network 160.89.0.0

neighbor 160.89.2.3 remote-as 110

neighbor 160.89.2.3 update-source Loopback0

 

Relevant command:

neighbor peer-group (creating)

 

neighbor weight

use neighbor weight command to set BGP priority; use “no neighbor weightto delete the priority.

neighbor {ip-address | peer-group-name} weight weight

no neighbor {ip-address | peer-group-name} weight weight

 

Parameter:

ip-address

neighbor ip address

peer-group-name

BGP peer group name

Weight

Priority,the range is 0~65535

 

Default:

 Default value of router priority knowed by BGP peer group is 0, Default value of router priority produced d by local router  is 32768

Command mode::

BGP CONFIGURATION MODE

 

 

 

Example::

The following example set the router priority knowed by 151.23.12.1 is 50

router bgp 109 neighbor 151.23.12.1 weight 50

 

Relevant command:

neighbor peer-group (creating)

set weight 23

network (BGP)

use command “networkcan add network route to BGP,use no networkto delete the configuration.

network A.B.C.D/n route-map map-name backdoor

no network A.B.C.D/n route-map map-name backdoor

 

Parameter:

A.B.C.D/n

network prefix

route-map

Appointed route-map

map-name

route-map name

backdoor

backdoor network

 

Default::

In Default,don’t add and network prefix to BGP

 

Command mode:

BGP CONFIGURATION MODE

 

 

Example:

The following example add route 131.108.0.0/8 to BGP process:

router bgp 120

network 131.108.0.0/8

 

Relevant command:

redistribute (BGP)

aggregate-address

redistribute(BGP)

use redistributecommand add route of a route process to BGP.use no redistributeforbid it.

redistribute protocol [process-id] [route-map map-name]

no redistribute protocol [process-id] [route-map map-name]

 

Parameter:

protocol

Type of route protocol

process-id

Process number of route protocol

route-map

Use route-map to set route performance

map-name

route-map name

 

Default::

forbid redistribute

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

router bgp 109

redistribute ospf 23

 

Relevant command:

route-map 1

router bgp

use command”router bgp” to enable BGP or enter BGP configuration mode.use no router bgpto disable BGP.

router bgp as-number

no router bgp as-number

 

Parameter:

as-number                                     AS number

 

Default:

BGP is disable

 

Command mode::

global configuration mode

 

Explanation:

.use no router bgp can delete BGP process and other relevant BGPconfiguration,such as neighbors, route in the route-map will be deleted,too.

You can use command “show running, show ip bgp summary” to see the configuraion information after configure BGP.

 

Example:

The following example enable BGP and appoint the AS mumber to 200

router bgp 200

 

Relevant command:

neighbor remote-as 17

 

show ip bgp

The command “show ip bgp”is used to display the items of BGP router-map.

show ip bgp [network]

 

Parameter:

network                         display appointed router information         

 

Command mode::

Supervisor mode

 

Explanation:

If don’t appoint network,it will display all BGP router-map.

If appoint network,it will display BGP router-map information of the network

B3710_118#show ip bgp

Status codes: s suppressed, d damped, h history, * valid, > best, i internal

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network             Next Hop         Metric LocPrf Weight Path

*  192.168.10.0/24     192.168.69.5                        0 10 400 i

*>i192.168.10.0/24     192.168.69.14              100      0 (65030) 400 i

*>i192.168.11.0/24     192.168.69.14              100      0 (65030) 400 i

*  192.168.65.0/30     192.168.69.1               100      0 (65020) 10 ?

*> 192.168.65.0/30     192.168.69.5                        0 10 ?

*  192.168.65.4/30     192.168.69.1               100      0 (65020) 10 ?

*> 192.168.65.4/30     192.168.69.5                        0 10 ?

*  192.168.65.8/30     192.168.69.1               100      0 (65020) 10 ?

*> 192.168.65.8/30     192.168.69.5                        0 10 ?

*  192.168.66.0/30     192.168.66.2               100      0 (65020) ?

*> 192.168.66.0/30     0.0.0.0                         32768 ?

* i192.168.66.4/30     192.168.66.6               100      0 ?

*> 192.168.66.4/30     0.0.0.0                         32768 ?

*>i192.168.66.8/30     192.168.66.6               100      0 ?

*>i192.168.67.0/30     192.168.69.18       200    100      0 500 ?

 

  Number of displayed routes: 15

 

Relevant command:

show ip bgp community 27

show ip bgp neighbors 28

show ip bgp paths 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

 

show ip bgp community

The command “show ip bgp community”is used to display the statistic information of BGP group performance.

 

show ip bgp community

 

Parameter:

none

 

Command mode::

Supervisor mode

 

Explanation:

The command is used to display the statistic information of BGP group performance.

Relevant command:

show ip bgp 26

show ip bgp neighbors 28

show ip bgp paths 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

 

show ip bgp neighbors

use “show ip bgp neighbors”to display the information of BGP neighbor.

show ip bgp neighbors [ip-address] [received-routes | routes | advertised-routes]

 

Parameter:

ip-ddress

ip-ddress of neighbor

received-routes

the routes received from all appointed neighbors.(accepted and rejected)

routes

the routes received from all appointed neighbors.(received and accepted)

advertised-routes

all routes announced to all neighbors by router.

 

Command mode::

Supervisor mode

 

Explanation:

Use the command can display the information and current state of BGP neighbor,and some configuration information.

Relevant command:

show ip bgp 26

show ip bgp community 27

show ip bgp paths 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

 

show ip bgp paths

use “show ip bgp paths”to display the statistic information of BGP path

show ip bgp paths

 

Parameter:

none

 

Command mode::

Supervisor mode

 

Explanation:

The command is used to display the statistic information of BGP path

Relevant command:

show ip bgp 26

show ip bgp community 27

show ip bgp neighbors 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

      

 

show ip bgp prefix-list

 

use “show ip bgp prefix-list”to display the router information matched with prefix-list:

show ip bgp prefix-list {prefix-list name}

 

Parameter:

prefix-list name                                      Prefix-list name

 

Command mode::

Supervisor mode

 

Explanation:

 The command can filter the information  displayed by command”show ip bgp”by appointting prefix-list.the route matched with prefix-list can be displayed.

      

Relevant command:

show ip bgp 26

show ip bgp community 27

show ip bgp neighbors 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

ip prefix-list 1

ip prefix-list description 3

ip prefix-list sequence-number 3

show ip prefix-list 4

clear ip prefix-list 5

show ip bgp regexp

use “show ip bgp regexg”to display the router information matched with regular-expression:

show ip bgp regexp regular-expression

 

Parameter:

regular-expression                       regular-expression  of AS path

 

Command mode:

Supervisor mode

 

Explanation:

 The command can filter the information  displayed by command”show ip bgp”by appointting regular-expression about as-path.the route matched with regular-expression can be displayed.

Relevant command:

show ip bgp 26

show ip bgp community 27

show ip bgp neighbors 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

 

show ip bgp summary

use “show ip bgp summary”to see all information of BGP connecter.

show ip bgp summary

 

Parameter:

none

 

Command mode::

Supervisor mode

 

Explanation:

You can use  command “show ip bgp summary” to see some global configuraion about BGP protocol.such as global distance  configuraion, IGP synchronization  configuraion,ID number of AS confederation,AS confederation member, local AS number, local router-id, information of all nerghbors

 

Example:

The following example display some information provided by “show ip bgp summary” :

router bgp 4

  BGP local AS is 4

  Router ID is 192.168.20.72

  IGP synchronization is enabled

  Distance: external 20 internal 200

 

 Neighbor        V     AS MsgRcvd MsgSent   TblVer InQ OutQ Up/Down  State/Pref

192.168.20.12    4      5       0       0       0    0    0 never    Connect

 

Relevant command:

show ip bgp 26

show ip bgp community 27

show ip bgp neighbors 28

show ip bgp paths 28

show ip bgp prefix-list 29

show ip bgp regexp 29

show ip bgp summary 30

 

synchronization

use “synchronization”to enable the synchronization between BGP and IGP.

use “no synchronization”to disable it.

synchronization

no synchronization

 

Parameter:

none

 

Default::

Synchronization is enabled

 

Command mode::

BGP CONFIGURATION MODE

 

Explanation:

Normally, you do not expect to redistribute all routes to your IGP. A common design is to redistribute one or two routes, and make them the external routes in IGRP, or force the BGP session to generate an AS default route. When BGP redistribute routes to IGP, only the routes acquired through EBGP will be redistributed. Under most situations, you do not want to allocate your IGP to BGP, just use configuration command “network “ to list the network in AS, then your network will be broadcasted. The networks listed in this form are called local network, and enables BGP to have attribute “Origin” of IGP. They must appear in the main IP routing table, and are effective; for example, they are direct-connected routes, static routes or routes known through IGP. BGP routing process periodically scans the main IP routing table to check the existence of a local network, and accordingly updates BGP routing table if you really want BGP to execute redistribution, you must be very careful, because these may be the routes in IGP that are injected by other routers through BGP, this may bring force a kind of situation that BGP potentially injects the information into IGP, and then send back the information to BGP. Vice versa. In Default,IGP function is enabled.

Example:

 

router bgp 120

no synchronization

 

Relevant command:

router bgp

 

table-map

set Route-map when BGP add route to route-map to modify some performance .Use no table-mapto delete the configuration.

table-map <name>

no table-map <name>

 

Parameter:

<name>                   Route-map name

 

Default::

none

 

Command mode::

BGP CONFIGURATION MODE

 

Explanation:

Setting table-map can filter route or modify performance when BGP add route to route list.

Example::

none

 

Relevant command:

none

 

timers

modify Default timers of BGP neighbor,use no timers to resume the default value.

timers bgp <keepalive> <holdtime>

no timers bgp <keepalive> <holdtime>

 

Parameter:

       <keepalive>                  Keepalive interval of BGP neighbor

       <holdtime>                         hodetime interval of BGP neighbor

 

Default:

Keepalive:                   60 seconds

Holdtime:                          180 seconds

 

Command mode::

BGP CONFIGURATION MODE

 

 

Example::

The following configuration will set the default clock to 10 or 40.

router bgp 100

timers bgp 10 40

 

Relevant command:

neighbor timers