·¢Ð»°Ìâ
´òÓ¡

¹ØÓÚ»ªÎªBGP¡¡communityµÄÒÉÎÊ

¹ØÓÚ»ªÎªBGP¡¡communityµÄÒÉÎÊ

¹ØÓÚBGP¡¡communityµÄÒÉÎÊ

СµÜ¸Õ½Ó´¥BGP£¬¶ÔÍÅÌåÊôÐÔÓÐЩÒÉÎÊ»¹Çë¸÷λ°ïæ
ÍØÆËÈçÏÂͼ
ͨ¹ýÅäÖÃÍÅÌåÊôÐÔ£¬±£Ö¤ÕýÈ·µÄ·ÓÉ·¢²¼
1¡¢ÓÉRTA²úÉúµÄÒ»¸ö·Óɲ»ÏëÈÃRTBת¸æ¸øRTC
2¡¢ÓÉRTA°ÑÑ¡¶¨µÄÍÅÌå·¢²¼¸øRTB£¬´ËÍÅÌåÊôÐԹ涨RTB²»ÄܰѸ÷ÓÉÔÙÍùEBGP´«ËÍ
Ô¤²â½á¹û
1¡¢ÅäÖøÃÍÅÌåǰ£¬RTCÄÜѧµ½Â·ÓÉ110.1.1.0/24ºÍ110.1.2.0/24
2¡¢ÅäÖøÃÍÅÌåºó£¬RTCѧ²»µ½Â·ÓÉ110.1.1.0/24ºÍ110.1.2.0/24

ÎÒµÄÒÉÎÊ
1.ÍÅÌåÊôÐÔµÄÅäÖã¿»¹Çë¸÷λ°ï°ïæ°¢£®
2.ÍÅÌåÊôÐԺͷÓɹýÂ˵ÄÇø±ð£¿Í¬ÑùµÄ¹¦ÄÜÎÒʹÓÃBGP¶ÔimportºÍexport·ÓɵĹýÂËÒ²ÊÇ¿ÉÒÔʵÏֵģ¬ËûÃǵÄÇø±»ºÎÔÚ£¿
3.Èç¹ûÏÖÔÚµÄÇé¿öÊÇ110.1.1.0/24ÐèÒª·¢Ë͵½EBGPµ«110.1.2.0/24²»ÐèÒª£¬ÄÇʹÓÃÍÅÌåÊôÐÔÊÇ·ñ¿ÉÒÔʵÏÖÄØ£¿
¸½¼þ: ÄúËùÔÚµÄÓû§×éÎÞ·¨ÏÂÔØ»ò²é¿´¸½¼þ
ÉÏÀ´Ã°¸öÅÝ.........

TOP

æÁ˰ëÌì,ÖÕÓÚ¸ã³öÀ´ÁË.ÉÏÀ´¿´¿´,»¹Ã»ÈË»ØÌû.¾Í×Ô¼ºÌù³öÀ´ÁË,´ó¼Ò¿´¿´°ïÎÒÕÒÕÒ벡.
#                                                                              
sysname rta                                                                    
#                                                                              
local-user rt password cipher aT[8JZ,3DR#Q=^Q`MAF4<1!!                        
local-user rt service-type telnet                                             
local-user rt level 3                                                         
#                                                                              
tcp window 8                                                                  
#                                                                              
router id 1.1.1.1                                                              
#                                                                              
interface Aux0                                                                  
async mode flow                                                               
link-protocol ppp                                                              
#                                                                              
interface Ethernet0/0                                                           
ip address 192.168.3.254 255.255.255.0                                         
#                                                                              
interface Serial1/0                                                            
clock DTECLK1                                                                  
link-protocol ppp                                                              
ip address 10.1.1.1 255.255.255.0                                             
#                                                                              
interface Serial1/1                                                            
clock DTECLK1                                                                  
link-protocol ppp                                                              
#                                                                              
interface NULL0                                                                 
#                                                                              
interface LoopBack1                                                            
ip address 110.1.1.1 255.255.255.0                                             
#                                                                              
interface LoopBack2                                                            
ip address 110.1.2.1 255.255.255.0                                             
#                                                                              
bgp 1                                                                           
network 192.168.1.0                                                            
import-route static                                                            
import-route direct                                                            
undo synchronization                                                           
group 1 internal                                                               
peer 1 route-policy aa export                                                  
peer 10.1.1.2 group 1                                                         
#                                                                              
route-policy aa permit node 2                                                   
if-match community 1                                                           
apply community no-advertise                                                   
#                                                                              
ip community-list 1 permit 100:1  no-advertise                                 
#                                                                              
user-interface con 0                                                            
user-interface aux 0                                                            
user-interface vty 0 4                                                         
authentication-mode local                                                      
#                                                                              
return
ÉÏÀ´Ã°¸öÅÝ.........

TOP

Ó¦¸ÃÔÚbgpÏ*¸¶¨nighbor È»ºó½áºÏ route-map,
ÔÚroute-mapÏ*¸¶¨match ip address
È»ºóÉèÖÃÊôÐÔΪno-exportÕâÑù¸üΪÍ×µ±Ð©°É£¬²»¹ý»ªÎªµÄÐÂÃüÁ̫ÊìϤ£¬²»ÖªµÀÔÚBGPÍÅÌåÊôÐÔÅäÖùý³ÌÖÐÓÐûÓÐÌØÊâµÄ¹æ¶¨µÄ

TOP

ǰÁ½Ìì¾Õ»¨Ò»Ö±Éϲ»À´,¸Õ¹ýÁË¿´µ½ÁËwghµÄ»Ø¸´.
ÔÚ»ªÎªµÄvrpÖÐ,communityÊôÐÔÊÇ¿ÉÒÔÖ±½ÓÔÚroute-policy(Ò²¾ÍÊÇciscoµÄroute-map)Öж¨ÒåµÄ,È»ºóÔÚ½«Õâ¸öroute-policyÔÚpeerÖзֲ¼³öÈ¥,peerµÄ¶ÔÏó¿ÉÒÔÊÇijһ¸öipÒ²¿ÉÒÔÊÇÒ»¸ö×é.
no-advertiseÊôÐÔÊDz»ÏòÈκεÄpeer·¢²¼Â·ÓÉÐÅÏ¢.
no-expertÊDz»ÏòASÍⲿ·¢²¼Â·ÓÉÐÅÏ¢.
ÉÏÀ´Ã°¸öÅÝ.........

TOP

·¢Ð»°Ìâ