Home
Routing
BGP
Cisco BGP Configuration
Three way to filter routes in BGP
Routing
BGP
Cisco BGP Configuration
Three way to filter routes in BGP
Here is three way to filter routes / prefixes in BGP and examples
- Distribute-list filtering
- Route-map filtering
- Filter-list(AS filtering) filtering
1. Distribute-list
neighbor 1.1.1.1 distribute-list 1 out
!
access-list 1 deny 10.30.0.0 0.0.0.255 (IP route that is not be announced)
access-list 1 deny 10.40.0.0 0.0.0.255 (IP route that is not be announced)
access-list 1 permit any
!
access-list 1 deny 10.30.0.0 0.0.0.255 (IP route that is not be announced)
access-list 1 deny 10.40.0.0 0.0.0.255 (IP route that is not be announced)
access-list 1 permit any
2. Route-map
neighbor 1.1.1.1 route-map ipBalance out
!
access-list 1 deny 10.30.0.0 0.0.0.255
access-list 1 deny 10.40.0.0 0.0.0.255
access-list 1 permit any
!
route-map ipBalance permit 10
match ip address 1 (Applying access-list 1)
!
access-list 1 deny 10.30.0.0 0.0.0.255
access-list 1 deny 10.40.0.0 0.0.0.255
access-list 1 permit any
!
route-map ipBalance permit 10
match ip address 1 (Applying access-list 1)
3. Filter-list(AS filtering)
neighbor 1.1.1.1 filter-list 1 out (Applying access-list 1 on filter-list)
!
ip as-path access-list 1 deny 100 (Deny AS 100)
ip as-path access-list 1 permit .* (Permit all AS)
or --------------------------
neighbor 1.1.1.1 route-map ipBalance out
!
ip as-path access-list 1 deny 100
ip as-path access-list 1 permit .*
!
route-map ipBalance permit 10
match as-path 1
!
ip as-path access-list 1 deny 100 (Deny AS 100)
ip as-path access-list 1 permit .* (Permit all AS)
or --------------------------
neighbor 1.1.1.1 route-map ipBalance out
!
ip as-path access-list 1 deny 100
ip as-path access-list 1 permit .*
!
route-map ipBalance permit 10
match as-path 1
| < Prev | Next > |
|---|
Last Updated (Sunday, 20 November 2011 00:21)
User Menu
Statistics
Content View Hits : 351116
Related Items
- What is SYS-ID-EXT parameter in Spanning-tree?
- Cisco Trunking Configuration Basic
- [Cisco] Port mirroring sample config
- [Cisco] MLPPP sample configuration
- IP addressing ending .0 or .255
- How to use IP helper-address to connect remote DHCP server
- What is FIB(Forwarding Information Base)?
- [Cisco] How to limit a rate on interface ?
- Configuring Web Authentication page on Cisco WLC 526
- Cisco Wireless 521 Access Point configuration for open event
- [Cisco]What is error for 'input packets with dribble condition detected'
- [log] :Problem with RX packet, length is 1, what is it?
- How to Cisco Banner in other language(8bit)
- How to recognize Cisco IOS image file ?
- [Cisco] How to enable Log and logging buffer
- [Cisco] Access Server setup for the LAB(CCIE)
- [Cisco] How to setup router as a tftp server
- [Cisco] How to power off slot on Cisco GSR 12000 series
- [Cisco] How to Secret Password Recovery - Router
- [Cisco] Password recovery - Router
- [Cisco] High Process CPU time on Cisco router
- [Cisco] How to Check CEF (Cisco Express Forwarding)
- [Cisco] Error message 'disabled analyzed idbs-rem' on Cisco 7000
- [Cisco] Options and functions that are available from the CLI
- How to configure LLDP on Cisco switch for Nortel IP Phone
- FCS errors on Overture Networks ISG by misconfig
- Internet Speed Issue - Bandwidth VS. Throughput
- Easily track SNMP MIB-II from your desktop using dVUE5X
- BGP error with "by remote host, open active delayed 27076ms (35000ms max, 28% jitter)"
- BGP Best Path Selection - Cisco
- BGP Best Path Selection - Juniper
- How to Applying BGP Community string with sample configuration
- Cisco BGP log Changes in Neighbor Status
- BGP Community String for InSat GmbH AS20535
- BGP Community String for NRL PacketNet AS19401
- BGP Community String for Media Link Ukraine AS16112
- BGP Community String for Alta Tecnologia AS16030
- BGP Community String for MCNET AS15997
- BGP Community String for Futuro Poland AS15833
- BGP Community String for Caravan AS15756
- BGP Community String for IKS GmbH AS15725
- BGP Community String for FLAG Telecom AS15412
- BGP Community String for Lightpath AS 6128
- BGP Community String for Ebone France AS13299
- BGP Community String for Ebone Nordic AS13297
- BGP Community String for Abilene AS11537
- BGP Community String for LUKoil Inform AS13105
- BGP Community String for Swiat Internet AS12887
- BGP Community String for Voyager GmbH Germany AS12732
- BGP Community String for Primorye AS12332
- BGP Community String for Utility Line Italia AS9026
- BGP Community String for GlobalaXs AS9009
- BGP Community String for LINX AS8714
- BGP Community String for Romania Data Systems AS8708
- BGP Community String for TELE2UTA AS8437
- BGP Community String for NETHINKS GmbH AS8319
- BGP Community String for NASK AS8308
- BGP Community String for Telehouse AS8235
- BGP Community String for Net Access Corporation AS8001
- BGP Community String for Level3(Legacy WilTel) AS7911
- BGP Community String for Optus(Singtel) AS7474
- BGP Community String for SBC(AT&T) AS7132
- BGP Community String for SK Slovak Telecom AS6855
- BGP Community String for TCNET(Telecom Centre Joint Stock Company) AS6854
- BGP Community String for Sunrise/TDC Switzerland AG AS6730
- BGP Community String for DE-CIX AS6695
- BGP Community String for Eunet Finland AS6667
- BGP Community String for Euroweb Romania AS6663
- BGP Community String for AboveNet Inc AS6461
- BGP Community String for Telecomplete AS6320
- BGP Community String for Cablevision Systems AS6128
- BGP Community String for Electric Lightwave AS5650
- BGP Community String for Polish Telecom AS5617
- BGP Community String for KPNQwest Romania AS5606
- BGP Community String for Garant Park Telecom AS5537
- BGP Community String for RM Telecom AS5523
- BGP Community String for GRNET AS5408
- BGP Community String for EasyNet AS4598
- BGP Community String for nLayer Communications AS4436
- BGP Community String for Time Warner Telecom AS4323
- BGP Community String for Savvis Communications AS3561
- BGP Community String for Global Crossing AS3549
- BGP Community String for Level 3 AS3356
- BGP Community String for Data Telecom AS3327
- BGP Community String for T-Systems AS3320
- BGP Community String for SUrNet - Russia AS3239
- BGP Community String for Golden Telecom AS3216
- BGP Community String for Triera Internet AS3212
- BGP Community String for NTT/Verio AS2914
- BGP Community String for XO AS2828
- BGP Community String for AAPT AS2764
- BGP Community String for Radio-MSU AS2683
- BGP Community String for Sonera AS1759
- BGP Community String for PSI Net AS 1290
- BGP Community String for Cable&Wireless AS1273
- BGP Community String for Sprint AS 1239
- BGP Community String for Bell Canada AS577
- BGP Community String for CERN AS513
- BGP Community String for Qwest AS209
- BGP Community String for Cogent Communication, Inc. AS174
- Cisco BGP Configuration by topology
- Issue on Cisco GigE port with FastEthernet port on 3Com switches
- How to configure Pix 515 for connecting PDM
- How to read Cisco FastEthernet Interface status
- Cisco loop testing must be done by Encapsulation HDLC
- How to configure As-path-access-list 101
- Avoiding arthritis by using Cisco IOS Alias commands
- Light level information for Cisco 12000 SONET modules
- How to configure SSH on Cisco routers and switches
- Cisco 3750 Stack Configuration
- Cisco Catalyst Switch Secure Configuration Template
- Cisco Multicast Troubleshooting Tips
- Cisco IOS Feature Support by Package
- When you get %Error opening tftp://255.255.255.255/~
- Cisco Catalyst 6500 troubleshooting - 720(Cold) why?
- When Cisco IOS upgrading, get !OOOO!OOOO!
- Can I change SFP uplink speed on Catalyst 3750?
- Why WinSCP is getting an error to Cisco devices?
- DHCP Troubleshooting Tips
Community donors
Polls
Who's Online
We have 24 guests online
Expert Links
- Programming Experts
- Aaron's Worthles words
- Etherealmind
- CCIE Journey
- Cisco Tips
- CCIE Quest
- CCIE Pursuit Blog
- Cisco Mars Blog
- Cisco NAC Blog
- Cisco Security Center
- Cisco IOS Hints and Tricks
- Global Config
- Internetwork Experts
- Internetnetwork Expert's online community
- Internetnetwork Expert's blog
- internetworkexpert.org
- IPexpert
- IPexpert's Blog
- Roger's CCIE Blog
- Mr.Configure
- Packetlife.net
- Should have gone with Cisco
- Terry's Blog
- The CCIE Journey
- Write mem



