²©¿Íͳ¼ÆÐÅÏ¢

51ctoÍÆ¼ö²©¿Í
Óû§Ãû£ºwxs-163
ÎÄÕÂÊý£º55
ÆÀÂÛÊý£º100
·ÃÎÊÁ¿£º64152
ÎÞÓDZңº1241
²©¿Í»ý·Ö£º1770
²©¿ÍµÈ¼¶£º6
×¢²áÈÕÆÚ£º2009-02-22

ʹÓ÷ַ¢Áбí¹ýÂËBGP·ÓÉ
2010-02-03 12:00:50
Ô­´´×÷Æ·£¬ÔÊÐí×ªÔØ£¬×ªÔØÊ±ÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ ԭʼ³ö´¦ ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://chinaittrain.blog.51cto.com/672109/273886
Ò»¡¢ÍØÆËͼ£º
 
¶þ¡¢ÅäÖø÷·ÓÉÆ÷µÄIPµØÖ·£¬²¢ÔËÐÐBGPЭÒé¡£
1
¡¢ÎªÁËÈÃR3ѧµ½Ã÷ϸ·ÓÉ,ÎÒÃǰÑR1×Ô¶¯»ã×ܹصô£º
R1(config)#router bgp 64512
R1(config-router)#no auto-summary
R1(config-router)#net 172.16.255.0 mask 255.255.255.252
R1(config-router)#net 172.16.0.1 mask 255.255.255.252
R1(config-router)#net 172.16.0.0 mask 255.255.255.0 
R1(config-router)#net 172.16.1.0 mask 255.255.255.0
R1(config-router)#net 172.16.2.0 mask 255.255.255.0
R1(config-router)#net 172.16.3.0 mask 255.255.255.0
R1(config-router)#nei 172.16.255.2 remote 64512
 
R2(config-if)#router bgp 64512
R2(config-router)#net 172.16.255.0 mask 255.255.255.252
R2(config-router)#net 10.1.255.0 mask 255.255.255.252
R2(config-router)#nei 172.16.255.1 remote 64512
R2(config-router)#nei 10.1.255.2 remote 64513
 
R3(config-if)#router bgp 64513
R3(config-router)#net 10.1.255.0 mask 255.255.255.252
R3(config-router)#nei 10.1.255.1 remote 64512
2¡¢ÅäÖÃÍêÖ®ºó£¬¿´Ò»ÏÂR3µÄ·ÓÉ±í£º
R3#sh ip route
¡­¡­¡­¡­
Gateway of last resort is not set
 
     172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
B       172.16.255.0/30 [20/0] via 10.1.255.1, 00:08:58
B       172.16.0.0/24 [20/0] via 10.1.255.1, 00:08:58
B       172.16.1.0/24 [20/0] via 10.1.255.1, 00:08:58
B       172.16.2.0/24 [20/0] via 10.1.255.1, 00:08:58
B       172.16.3.0/24 [20/0] via 10.1.255.1, 00:08:58
     10.0.0.0/30 is subnetted, 1 subnets
C       10.1.255.0 is directly connected, Serial1/0
Èý¡¢ÔÚR2ÉϽ¨Á¢ACL£¬²¢Ó÷ַ¢ÁбíÈ¥Ó¦ÓÃACLÒÔ´ïµ½¹ýÂËÖ¸¶¨µÄ·ÓÉ£º
R2(config)#access-list 1 deny 172.16.0.0 0.0.0.255
R2(config)#access-list 1 deny 172.16.1.0 0.0.0.255
R2(config)#access-list 1 per any £¨ÆäËü·Óɶ¼²»¾Ü¾ø£©
R2(config-router)#nei 10.1.255.2 distribute-list 1 out £¨¶ÔÄ¿±êÁÚ¾ÓÓ¦Ó÷ַ¢ÁÐ±í£©
ËÄ¡¢ÔÙÀ´²é¿´Ò»ÏÂR3µÄ·ÓÉ±í£¬·¢ÏÖÖ¸¶¨µÄÁ½Ìõ·Óɱ»¹ýÂ˵ôÁË£º
R3#clear ip bgp * soft £¨ÈíäÌÐÂÒ»ÏÂBGPÊý¾Ý¿â£©
R3#sh ip route
¡­¡­¡­¡­¡­¡­
Gateway of last resort is not set
 
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B       172.16.255.0/30 [20/0] via 10.1.255.1, 00:17:19
B       172.16.2.0/24 [20/0] via 10.1.255.1, 00:17:19
B       172.16.3.0/24 [20/0] via 10.1.255.1, 00:17:19
     10.0.0.0/30 is subnetted, 1 subnets
C       10.1.255.0 is directly connected, Serial1/0
R3#
 
 
 

±¾Îijö×Ô ¡°³¬Ô½¼¼Êõ³É¾Í¼ÛÖµ¡± ²©¿Í£¬ÇëÎñ±Ø±£Áô´Ë³ö´¦http://chinaittrain.blog.51cto.com/672109/273886

·ÖÏíÖÁ
¸ü¶à
Ò»¼üÊղأ¬ËæÊ±²é¿´£¬·ÖÏíºÃÓÑ£¡
0ÈË
ÁËÕâÆªÎÄÕÂ
Àà±ð£ºCCNP©ª¼¼ÊõȦ()©ªÔĶÁ()©ªÆÀÂÛ() ©ª ÍÆË͵½¼¼ÊõȦ©ª·µ»ØÊ×Ò³

ÎÄÕÂÆÀÂÛ

 
2010-02-04 15:58:00
Êղأ¡³õѧÖÐ

 

·¢±íÆÀÂÛ            

¡¾¼¼ÊõÃÅÕר¼Ò½âÎö£ºÈí¿¼ÖØµãÄѵ㼰ӦÊÔ¼¼ÇÉ
êÇ  ³Æ£º
µÇ¼  ¿ìËÙ×¢²á
ÑéÖ¤Â룺

Çëµã»÷ºóÊäÈëÑéÖ¤Â벩¿Í¹ý2¼¶£¬ÎÞÐèÌîдÑéÖ¤Âë

ÄÚ  ÈÝ£º