Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BGP - exclude a network from learning

My other other end BGP peer advertises a lot of network, including my side local network. I want my end device to exclude one network from learning (like 192.168.2.0/24).

Are there any BGP commands for this.



This thread was automatically locked due to age.
Parents Reply
  • I got this working. Just added "prefix-list listname in" after neighbour command. It just worked. Prefix-list command does not show in CLI options. Still worked.
    Below is the full config;


    router bgp 65000
    bgp router-id 169.245.138.125
    bgp log-neighbor-changes
    no bgp ebgp-requires-policy
    neighbor 169.245.138.126 remote-as 64512
    !
    address-family ipv4 unicast
    network 192.168.2.0/24
    neighbor 169.245.138.126 prefix-list hodc in
    exit-address-family
    !
    exit
    !
    ip prefix-list hodc seq 10 permit 10.10.0.0/20
    ip prefix-list hodc seq 25 permit 192.168.0.0/24 le 32

    **Note the le in prefix-list command is very important. Check www.cisco.com/.../irg_bgp2.html

Children
No Data