Hi,
I have prepaired a toplogy where i want to control the traffic using AS-Path attribute. topology is uploaded and below is the link.
i am trying to traffic engineer the traffic using AS-Path prepend but in IN BOUND direction with route-map on router Aluminium.
Task - Router Aluminium sends traffic to 4.4.4.0 /24 to router Steel, you are only allowed to use the AS Path attribute.
Below is the output of all routers -
Aluminium#sh run | s r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 route-map AS in
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
Aluminium#
Aluminium#sh ip bgp sum
Aluminium#sh ip bgp summary | b N
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 1 296 280 9 0 0 00:32:33 2
3.3.3.3 4 1 287 271 9 0 0 00:33:59 2
------------------------------------------------------------------------------
Copper#sh run | b r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
network 2.2.2.0 mask 255.255.255.0
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
neighbor 4.4.4.4 remote-as 2
neighbor 4.4.4.4 ebgp-multihop 2
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
no ip http server
no ip http secure-server
ip classless
ip route 4.4.4.0 255.255.255.0 192.168.24.4
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
Copper#sh ip bgp sum
Copper#sh ip bgp summary | b N
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 1 280 298 24 0 0 00:33:26 1
3.3.3.3 4 1 240 240 24 0 0 02:38:04 2
4.4.4.4 4 2 203 202 24 0 0 03:00:04 1
-------------------------------------------------------------------------------------------------
Steel#sh run | b r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network 3.3.3.0 mask 255.255.255.0
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 2
neighbor 4.4.4.4 ebgp-multihop 5
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
no ip http server
no ip http secure-server
ip classless
ip route 4.4.4.0 255.255.255.0 192.168.34.4
Steel#sh ip bgp summary | b N
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 1 287 305 9 0 0 00:50:49 1
2.2.2.2 4 1 256 256 9 0 0 02:54:01 2
4.4.4.4 4 2 222 222 9 0 0 02:53:16 1
--------------------------------------------------------------------------------------------------
router bgp 2
no synchronization
bgp log-neighbor-changes
network 4.4.4.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 ebgp-multihop 5
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 ebgp-multihop 5
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
!
no ip http server
no ip http secure-server
ip classless
ip route 2.2.2.0 255.255.255.0 192.168.24.2
ip route 4.4.4.0 255.255.255.0 192.168.34.3
Zinc#sh ip bgp summary | b N
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 1 218 219 27 0 0 03:16:55 3
3.3.3.3 4 1 223 223 27 0 0 02:54:10 3
------------------------------------------------------------------------------------------------