Local-AS
In R9
No router bgp 401
router bgp 501
bgp always-compare-med
bgp asnotation dot
bgp log-neighbor-changes
network 9.9.9.9 mask 255.255.255.255
redistribute static
neighbor 96.0.0.6 remote-as 1.301
neighbor 98.0.0.8 remote-as 20
*Aug 17 00:25:34.011: %BGP-3-NOTIFICATION: received from neighbor 96.0.0.6 active 2/2 (peer in wrong AS) 2 bytes 01F5
R9#
*Aug 17 00:25:34.015: %BGP-5-NBR_RESET: Neighbor 96.0.0.6 active reset (BGP Notification received)
*Aug 17 00:25:34.019: %BGP-5-ADJCHANGE: neighbor 96.0.0.6 active Down BGP Notification received
*Aug 17 00:25:34.023: %BGP_SESSION-5-ADJCHANGE: neighbor 96.0.0.6 IPv4 Unicast topology base removed from session BGP Notification received
R9#
R6
%BGP-3-NOTIFICATION: sent to neighbor 96.0.0.9 passive 2/2 (peer in wrong AS) 2 bytes 01F5
R8
*Aug 13 08:45:07.629: %BGP-3-NOTIFICATION: received from neighbor 98.0.0.9 active 2/2 (peer in wrong AS) 2 bytes 00C9
R8(config)#
Now in R9
router bgp 501
bgp always-compare-med
bgp asnotation dot
bgp log-neighbor-changes
network 9.9.9.9 mask 255.255.255.255
redistribute static
neighbor 96.0.0.6 remote-as 1.301
neighbor 96.0.0.6 local-as 401
neighbor 98.0.0.8 remote-as 201
neighbor 98.0.0.8 local-as 401
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
96.0.0.6 4 1.301 26 17 37 0 0 00:09:23 21
98.0.0.8 4 201 13 13 37 0 0 00:00:00 21
R5
R5#sh ip bgp
BGP table version is 334, local router ID is 55.5.5.5
Network Next Hop Metric LocPrf Weight Path
*>i 4.4.4.4/32 3.3.3.3 0 100 0 201 i
* i 28.0.0.8 25 100 0 201 i
*>i 8.8.8.8/32 3.3.3.3 0 100 0 201 i
* i 28.0.0.8 25 100 0 201 i
* i 9.9.9.9/32 28.0.0.8 25 100 0 201 401 501 i
*>i 16.0.0.6 50 100 0 1.301 401 501 i
* 56.0.0.6 100 0 1.301 401 501 i
We can see 501 in AS-path
No-prepend replace-as
R9(config-router)# neighbor 98.0.0.8 local-as 401 no-prepend replace-as
R5
*>i 9.9.9.9/32 3.3.3.3 0 100 0 201 401 i { no 501 in path }
* i 28.0.0.8 25 100 0 201 401 i
* 56.0.0.6 100 0 1.301 401 501 i { both in path}
R9(config-router)# neighbor 96.0.0.6 local-as 401 no-prepend replace-as
*>i 9.9.9.9/32 16.0.0.6 50 100 0 1.301 401 i
* 56.0.0.6 100 0 1.301 401 i
* i 28.0.0.8 25 100 0 201 401 i
Dual AS
R9(config-router)# neighbor 96.0.0.6 local-as 401 no-prepend replace-as dual-as
R6
R6(config)#router bgp 1.301
R6(config-router)#nei 96.0.0.9 remote-as 501
%BGP-5-ADJCHANGE: neighbor 96.0.0.9 Up
sh ip bgp summary
96.0.0.9 4 501 15 12 387 0 0 00:00:24 16
R6#
sh ip bgp
*> 9.9.9.9/32 96.0.0.9 0 0 501 i
Private -As
R6
router bgp 65001
bgp asnotation dot
bgp log-neighbor-changes
network 66.6.6.6 mask 255.255.255.255
aggregate-address 69.0.0.0 255.224.0.0
redistribute connected route-map conn
neighbor 16.0.0.1 remote-as 101
neighbor 16.0.0.1 ebgp-multihop 2
neighbor 16.0.0.1 next-hop-self
neighbor 56.0.0.5 remote-as 101
neighbor 56.0.0.5 route-map for9 out
neighbor 96.0.0.9 remote-as 501
neighbor 96.0.0.9 shutdown
neighbor 96.0.0.9 route-map routefromr1 out
R9
*> 69.0.0.0/11 98.0.0.8 0 201 101 65001 i
*> 69.1.1.0/24 98.0.0.8 0 201 101 65001 ?
*> 69.2.1.0/24 98.0.0.8 0 201 101 65001 ?
*> 69.3.1.0/24 98.0.0.8 0 201 101 65001 ?
*> 69.4.1.0/24 98.0.0.8 0 201 101 65001 ?
We want to remove Private-As in AS-PATH
R6(config)#router bgp 65001
R6(config-router)# neighbor 56.0.0.5 remove-private-as
R6(config-router)# neighbor 16.0.0.1 remove-private-as
No effect of R6 Config
now in R3 and R2
R2 R2(config-router)# neighbor 28.0.0.8 remove-private-as
R3 R3(config-router)# neighbor 4.4.4.4 remove-private-as
R9
*> 69.0.0.0/11 98.0.0.8 0 201 101 i
*> 69.1.1.0/24 98.0.0.8 0 201 101 ?
*> 69.2.1.0/24 98.0.0.8 0 201 101 ?
*> 69.3.1.0/24 98.0.0.8 0 201 101 ?
*> 69.4.1.0/24 98.0.0.8 0 201 101 ?
No comments:
Post a Comment