Monday, May 2, 2011

The 'bgp upgrade-cli' BGP Router Subcommand

The bgp upgrade-cli BGP router subcommand provides a smooth upgrade path from old-style to AF-style by parsing the old-style commands. Issue copy running-config startup-config to save the new configuration.
Note: The bgp upgrade-cli command is not shown in the configuration.

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router bgp 1
Router(config-router)#no synchronization
Router(config-router)#bgp deterministic-med
Router(config-router)#bgp bestpath med confed
Router(config-router)#bgp scan-time 10
Router(config-router)#network 10.0.0.0 mask 255.0.0.0
Router(config-router)#aggregate-address 20.0.0.0 255.0.0.0
Router(config-router)#neighbor EBGP-PEERS peer-group
Router(config-router)#neighbor EBGP-PEERS route-map ucast-out out
Router(config-router)#neighbor 1.1.1.1 remote-as 1
Router(config-router)#neighbor 1.1.1.1 route-reflector-client
Router(config-router)#neighbor 2.2.2.2 remote-as 2
Router(config-router)#neighbor 2.2.2.2 peer-group EBGP-PEERS
Router(config-router)#neighbor 2.2.2.2 route-map ucast-in in
Router(config-router)#neighbor 3.3.3.3 remote-as 3
Router(config-router)#neighbor 3.3.3.3 peer-group EBGP-PEERS
Router(config-router)#no auto-summary
Router(config-router)#
Router(config-router)#do sh run | sec router bgp
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 bgp deterministic-med
 bgp bestpath med confed
 bgp scan-time 10
 network 10.0.0.0
 aggregate-address 20.0.0.0 255.0.0.0
 neighbor EBGP-PEERS peer-group
 neighbor EBGP-PEERS route-map ucast-out out
 neighbor 1.1.1.1 remote-as 1
 neighbor 1.1.1.1 route-reflector-client
 neighbor 2.2.2.2 remote-as 2
 neighbor 2.2.2.2 peer-group EBGP-PEERS
 neighbor 2.2.2.2 route-map ucast-in in
 neighbor 3.3.3.3 remote-as 3
 neighbor 3.3.3.3 peer-group EBGP-PEERS
 no auto-summary
Router(config-router)#
Router(config-router)#bgp upgrade-cli ?
  af-mode  Upgrade to AFI mode
  

Router(config-router)#bgp upgrade-cli
You are about to upgrade to the hierarchical AFI syntax of bgp commands

Are you sure ? [yes]:
Router(config-router)#
Router(config-router)#do sh run | sec router bgp
router bgp 1
 bgp log-neighbor-changes
 bgp deterministic-med
 bgp bestpath med confed
 neighbor EBGP-PEERS peer-group
 neighbor 1.1.1.1 remote-as 1
 neighbor 2.2.2.2 remote-as 2
 neighbor 2.2.2.2 peer-group EBGP-PEERS
 neighbor 3.3.3.3 remote-as 3
 neighbor 3.3.3.3 peer-group EBGP-PEERS
 !
 address-family ipv4
  no synchronization
  bgp scan-time 10
  network 10.0.0.0
  aggregate-address 20.0.0.0 255.0.0.0
  neighbor EBGP-PEERS route-map ucast-out out
  neighbor 1.1.1.1 activate
  neighbor 1.1.1.1 route-reflector-client
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 route-map ucast-in in
  neighbor 3.3.3.3 activate
  no auto-summary
 exit-address-family
Router(config-router)#

No comments:

Post a Comment