08-24-2019 06:49 PM
Here is my Network,
Have a VLAN in a switch which was connected to a Router which does BGP. If i use static route on my switch to send traffic to BGP router. I am able to ping VLAN interface ip address from other end also, i am able to ping from my end. But if I use route-map to match the traffic from my lan to send to BGP route using set ip next-hop BGP route IP or set ip default next-hop BGP route IP. Ping from my end to other end work fine. But from my other end to my end drops at my BGP router.
08-24-2019 07:22 PM
08-24-2019 08:57 PM
Thanks very much for the quick reply.
Here is my Switch Config.
route-map GET permit 10
match policy-list GET_LAN
set ip next-hop 192.168.200.1
sh ip access-lists GET_LAN
Extended IP access list GET_LAN
10 permit ip 10.30.110.0 0.0.0.255 10.0.23.0 0.0.0.255
20 permit ip 10.30.110.0 0.0.0.255 10.1.10.0 0.0.0.255
30 permit ip 10.30.110.0 0.0.0.255 10.1.13.0 0.0.0.255
sh running-config interface vlan 110
Building configuration...
Current configuration : 94 bytes
!
interface Vlan110
ip address 10.30.110.1 255.255.255.0
ip policy route-map GET
end
BGP config
router bgp 65xx
bgp log-neighbor-changes
network 10.30.110.0 mask 255.255.255.0
network 192.168.200.0 mask 255.255.255.252
redistribute static
neighbor 10.xx.x.22 remote-as 21326
neighbor 10.xx.x.22 update-source GigabitEthernet0/0
neighbor 10.xx.x.22 soft-reconfiguration inbound
sh ip bgp neighbors 10.xxx.x.22 received-routes
BGP table version is 9, local router ID is 192.168.200.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.23.0/24 10.254.1.22 0 21326 13979 65005 i
*> 10.1.10.0/24 10.254.1.22 0 21326 13979 65005 i
*> 10.1.13.0/24 10.254.1.22 0 21326 13979 65005 i
*> 10.254.1.12/30 10.254.1.22 0 21326 13979 65005 i
r> 10.254.1.20/30 10.254.1.22 0 0 21326 i
*> 192.168.1.0/30 10.254.1.22 0 0 21326 i
sh ip bgp neighbors 10.xxx.x.22 advertised-routes
BGP table version is 9, local router ID is 192.168.200.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.30.110.0/24 192.168.200.2 0 32768 i
*> 192.168.200.0/30 0.0.0.0 0 32768 i
Total number of prefixes 2
If i add a static route on my switch "ip route 10.0.23.0 255.255.255.0 192.168.200.1" only then i am able to ping 10.30.110.1 from remote end.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide