RE: When configuring MPLS VPNs, and you accidentally type ipv4

From: Cisco Nuts (cisconuts@hotmail.com)
Date: Fri Apr 18 2008 - 12:56:18 ART


Hi Darth:

Unfortunately, you cannot remove it...because the default bgp config is for
ipv4 only. when you configure #router bgp 1

but if you configure an additional cmd under it: #no bgp default ipv4-unicast

it will not show up. This means that your goal is to only configure bgp for
vpnv4.

Then you activate the vpnv4 neighbor under address-family vpnv4.

Rack2R8(config)#router bgp 1
Rack2R8(config-router)#no bgp default ipv4-unicast
Rack2R8(config-router)#nei 1.2.3.4 remote-as 2
Rack2R8(config-router)#address-family vpnv4
Rack2R8(config-router-af)#nei 1.2.3.4 activate
Rack2R8(config-router-af)#end

Rack2R8#sh run | b router bgp
router bgp 1
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 1.2.3.4 remote-as 2
 !
 address-family vpnv4
 neighbor 1.2.3.4 activate
 neighbor 1.2.3.4 send-community extended
 exit-address-family

The IOS is "quirky". For ex. if you then decide to also configure ipv4
neighbors and you did a #bgp default ipv4-unicast, then you will see the ipv4
neighbor but it will not be activated because once again, it's default
behavior. You will have to activate it manually. Play with it and see for your
self...it is how the IOS behaves.

Rack2R8(config)#router bgp 1
Rack2R8(config-router)#bgp default ipv4-unicast
Rack2R8(config-router)#end
Rack2R8#sh run | b router bgp
router bgp 1
 bgp log-neighbor-changes
 neighbor 1.2.3.4 remote-as 2
 !
 address-family ipv4
 no neighbor 1.2.3.4 activate
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family vpnv4
 neighbor 1.2.3.4 activate
 neighbor 1.2.3.4 send-community extended
 exit-address-family

Then you would go under ipv4 and activate the neighbor.

Good Luck.

> Date: Thu, 17 Apr 2008 19:32:06 -0800
> From: darklordrouter@gmail.com
> To: ccielab@groupstudy.com
> Subject: When configuring MPLS VPNs, and you accidentally type ipv4 instead
of vpnv4. How do I remove from config?
>
> I know it doesn't matter that it's there, but it's clutter. I can't remove
> it with the no address-family ipv4 command. I can kill it by killing
> everything with no router bgp 1, then redoing. I'm just curious why you
> can't "no" it out of the config once you accidentally put in the command.
>
> router bgp 1
> bgp log-neighbor-changes
> neighbor 150.1.4.4 remote-as 1
> neighbor 150.1.4.4 update-source Loopback0
> !
> address-family ipv4
> neighbor 150.1.4.4 activate
> neighbor 150.1.4.4 next-hop-self
> no auto-summary
> no synchronization
> exit-address-family
> !
> address-family vpnv4
> neighbor 150.1.4.4 activate
> neighbor 150.1.4.4 send-community both
> exit-address-family
>
>
> Pass the CCIE in six weeks, Guaranteed!
> http://www.certscience.com/CCIE
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>



This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:51 ART