03-06-2004 12:01 PM - edited 03-02-2019 02:05 PM
Taken from cisco white paper : http://www.cisco.com/univercd/cc/td...sbgp4.htm#11513
=====================================================
Assume that on Router C you want to set to 300 the community attribute of outgoing updates for network 170.10.0.0. The following commands apply a route map to outgoing updates on Router C:
!Router C
router bgp 300
network 170.10.0.0
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 route-map SETCOMMUNITY out
!
route-map SETCOMMUNITY permit 10
match ip address 1
set community 300
!
access-list 1 permit 0.0.0.0 255.255.255.255
Access list 1 denies any update for network 170.10.0.0 and permits updates for any other network.
=====================================================
Qns 1 :
Can use "access-list 1 permit 170.10.0.0 ... ... " instead? and what's the difference?
Qns 2 :
anyone can explain the last statement?
03-06-2004 12:57 PM
Hello,
the link you have provided doesn´t seem to work, so I cannot check the document, but the statement:
access-list 1 permit 0.0.0.0 255.255.255.255
permits everything and denies nothing. If you want to permit only network 170.10.0.0 you should configure the list as you proposed:
access-list 1 permit 172.10.0.0
No idea where the last statement comes from, it doesn´t make any sense. Happens sometimes, even on the Cisco site...:)
Regards,
Georg
03-06-2004 03:48 PM
sorry, didn't notice the incomplete link...
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ics/icsbgp4.htm#11513
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