·ÓÉÆ÷ÊÇͨÐÅ×ÓÍøÖеÄͨÐŽڵ㣬ÿ¸ö·ÓÉÆ÷¶¼¼ÆË㲢ά»¤Ò»ÕÅ·ÓÉ±í£¬²¢¾Ý´ËÖ¸µ¼Êý¾Ý±¨Ç°Íù×î¼Ñ·¾¶ÖеÄÏÂÒ»Õ¾£¬Õâ±ãÊÇËùνµÄ·ÓÉ¡£ÕâÑù£¬¾¹ý»¥ÁªÍøÉÏËùÓзÓÉÆ÷µÄͨÁ¦ºÏ×÷£¬Êý¾Ý±¨¾ÍÄܹ»ÑØ×ÅÒ»Ìõ"×î¼Ñ"·¾¶µ½´ïÄ¿µÄµØ¡£ÔÚ GNU Èí¼þ Zebra µÄÐÖúÏ£¬ÎÒÃÇ¿ÉÒÔ½« Linux »úÆ÷´òÔì³Éһ̨¹¦ÄÜÍ걸µÄ·ÓÉÆ÷£¬ËüÄܹ»Í¬Ê±Ö§³Ö RIPv1¡¢ RIPv2¡¢RIPng¡¢OSPFv2¡¢OSPFv3¡¢BGP - 4 ºÍ BGP - 4+ µÈÖî¶à TCP/IP ÐÒé¡£ÏÖÔÚÎÒÃÇÊ×ÏÈÁ˽âһϠOSPF ºÍ BGP ÐÒéµÄÔËÐÐģʽºÍ»ù±¾ÔÀí£¬È»ºó½éÉÜ Zebra µÄ°²×°ÅäÖ÷½·¨£¬ÈÃÄãµÄ Linux »úÆ÷±ä³ÉÖ§³Ö OSPF Óë BGP µÄ·ÓÉÆ÷¡£
BGP/OSPF ¸ÅÊö
Èç½ñ£¬Ðí¶à¹«Ë¾¶¼½¨Óжà¸öÍøÂ磬Èç¹ûÕâÐ©ÍøÂçµÄÀàÐͲ»¾¡Ïàͬ£¬ÔòÐèÒªÓ÷ÓÉÆ÷½øÐл¥Áª¡£Â·ÓÉÆ÷ÊÇÓëÁ½¸ö»òÁ½¸öÒÔÉϵÄÍøÂçÁ¬½ÓµÄ¼ÆËã»ú£¬Ëü¸ù¾Ý·ÓÉÐÒéÉú³É²¢Î¬»¤Ò»¸ö·ÓÉ±í£¬²¢°´Õո÷ÓɱíÖеÄÐÅϢת·¢°ü¡£ÕâЩ·ÓÉÆ÷¶Ô¹«Ë¾ÄÚ²¿µÄÍøÂç½á¹¹ÁËÈçÖ¸ÕÆ£¬ÖªµÀ½«·Ö×éË͵½Ä¿µÄµØµÄÈ«²¿Ï¸½Ú£¬µ«¶ÔÓÚÆäËû¹«Ë¾µÄÍøÂç½á¹¹²¢²»Á˽⡣ÏñÕâÑù"ÔÚͬһ»ú¹¹Ï¹ÜÀíµÄһϵÁзÓÉÆ÷ºÍÍøÂç"±»³ÆÎª×ÔÖÎϵͳ(AS)¡£Óɲ»Í¬»ú¹¹ÕƹܵÄ×ÔÖÎϵͳ£¬¿ÉÒÔ²ÉÓò»Í¬µÄ·ÓÉÑ¡ÔñËã·¨£»µ«Í¬Ò»×ÔÖÎϵͳÄÚµÄËùÓзÓÉÆ÷¶¼Ê¹ÓÃͬһ·ÓÉÐÒ飬ÒÔ±ãÓÚ×ÔÖÎϵͳÄÚ²¿¸÷¸ö·ÓÉÆ÷»¥»»Â·ÓÉÐÅÏ¢À´Î¬³ÖÏ໥µÄÁ¬Í¨ÐÔ¡£Ã¿Ò»¸ö×ÔÖÎϵͳ¶¼ÓÐÒ»¸ö16λµÄ"×ÔÖÎϵͳ (AS)±àºÅ"×÷Ϊ±êÖ¾£¬¾ÍÏñ IP µØÖ·Ò»Ñù£¬ËüÊÇÓÉרÃÅ»ú¹¹À´·ÖÅäµÄ¡£
×ÔÖÎϵͳÄڵķÓÉÆ÷³ÆÎª"ÄÚ²¿Íø¹Ø"£¬ËùÓõÄÐÒé³ÆÎª"ÄÚ²¿Íø¹ØÐÒé"¡£ÄÚ²¿Íø¹ØÐÒé´óÌåÉÏ·ÖΪÁ½À࣬һÀàÊǾàÀëÏòÁ¿ÐÒ飬Èç RIP,EIGRP ÐÒ飻ÁíÒ»ÀàÊÇÁ´Â·×´Ì¬ÐÒéÈç OSPF ÐÒé¡£Á´Â·×´Ì¬Â·ÓÉÐÒéÓë¾àÀëÏòÁ¿ÐÒéµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬²ÉÓÃÁ´Â·×´Ì¬Â·ÓÉÐÒéµÄ·ÓÉÆ÷²»Êǽ»»»µ½´ïÄ¿µÄµØµÄ¾àÀ룬¶øÊÇά»¤Ò»ÕÅÍøÂçÍØÆË½á¹¹Í¼¡£È»ºóÓÃÊý¾Ý¿â±íʾ¸Ãͼ£¬ÆäÖеıíÏî¶ÔÓ¦ÍøÂçµÄÒ»ÌõÁ´Â·¡£Â·ÓÉÆ÷¸ù¾ÝÊý¾Ý¿âµÄÐÅÏ¢¼ÆËã³ö"×î¼Ñ·ÓÉ"£¬ÓÉ´ËÖ¸µ¼°üµÄת·¢¡£µ±ÍøÂçÍØÆË½á¹¹·¢Éú±ä»¯Ê±£¬Ö»Ð轫ÏàÓ¦¼Í¼¶ø·ÇÕû¸öÊý¾Ý¿â֪ͨÆäËû½Úµã¡£¸÷·ÓÉÆ÷×ö³öÏàÓ¦Ð޸IJ¢ÖØÐ¼ÆËã·Óɺ󣬾ͿÉÒÔ¼ÌÐøÕý³£¹¤×÷¡£
ÒòΪ"¿ª·Åʽ×î¶Ì·¾¶ÓÅÏÈÐÒé"µÄÎĵµ±ØÐ빫¿ª·¢±í£¬ËùÒÔËüÊÇ"¿ª·ÅʽµÄ"£¨Open£©£»ÓÖÒòΪËü²ÉÓÃ"×î¶Ì·¾¶ÓÅÏÈ"£¨SPF£©Ëã·¨À´¼ÆËãÒ»¸ö½Úµãµ½ËùÓÐÆäËü½Úµã¼äµÄ×î¶Ì·¾¶£¬¹ÊÃûΪ OSPF¡£OSPF ¾ßÓÐÖ§³Ö¶àÖØ¶ÈÁ¿ÖÆÊ½ºÍ¶àÖØÂ·¾¶µÈÖî¶àÓŵ㣬Òò´Ë³ÉΪÒòÌØÍøÉÏÍÆ¼öʹÓõÄÄÚ²¿Íø¹ØÐÒ飬RIP È´ÓÉÓÚ×ÔÉíµÄ¾ÖÏÞÐÔ¶ø±»´òÈëÀ乬¡£ÏÖÔÚ£¬ÔÚÐÔÄÜÉÏΨһÄܹ»Óë OSPF ÏàÆ¥µÐµÄÄÚ²¿Íø¹ØÐÒé±ãÊÇ EIGRP--Cisco µÄÒ»¸öרÓÐÐÒ飬µ« OSPF µÄ"¿ª·Å"±¾Éí¾ÍÊÇÒ»¸öÏìÁÁµÄÕÐÅÆ£¬ÒòΪËÒ²²»ÏëÊÜÖÆÓÚij¼Ò¹©Ó¦ÉÌ¡£
Ç°ÃæÌáµ½£¬×ÔÖÎϵͳÄڵķÓÉÆ÷²»±ØÖªµÀÆäËû×ÔÖÎϵͳµÄÄÚ²¿½á¹¹Ï¸½Ú£¬´Ó¶øÓÐЧµØ½ÚÔ¼ÁË·ÓÉÆ÷µÄÄÚ´æºÍ CPU ʱ¼ä£¬²¢Ìá¸ßÁËÍøÂç´ø¿íµÄÀûÓÃÂÊ¡£µ«ÊÇ£¬Èç¹ûÏëÓëÆäËû¹«Ë¾£¨×ÔÖÎϵͳ£©Í¨ÐÅʱ¸ÃÔõô°ìÄØ£¿ºÜ¼òµ¥£¬ÎÒÃÇ¿ÉÒÔÔÚ×ÔÖÎϵͳÄÚÖ¸¶¨Ò»¸öÓëÆäËû×ÔÖÎϵͳÏàÁ¬µÄ·ÓÉÆ÷Ϊ"Íâ²¿Íø¹Ø"£¬Í¨¹ýËü½øÈëÆäËû×ÔÖÎϵͳ¡£¸Ã·ÓÉÆ÷ʹÓõÄÐÒé½Ð×ö"Íâ²¿Íø¹ØÐÒé"£¬Èç±ß½çÍø¹ØÐÒ飨BGP£©¡£ÏàÁÚµÄÁ½¸öÍø¹Ø±ØÐëÊ×ÏÈ»¥»»"ÁÚ»ú̽²â "±¨ÎÄ£¬ÐÉÌÊÇ·ñÔ¸Òâ³ÉΪ"ÁÚ»ú"¡£³ÉΪÁÚ»úÔòÒâζ×ÅÁ½¸ö×ÔÖÎϵͳͬÒâÖÐת˫·½µÄͨÐÅÁ÷¡£Í¬Òâºó£¬Á½¸öÁÚ»ú»¥»»"ÁÚ»ú¿É´ïÐÔ±¨ÎÄ"£¬À´¼à¶½ËûÃÇÖ®¼äµÄÁ´Â·µÄ¹¤×÷Çé¿ö¡£½ÓÏÂÀ´±ãÊÇ×îÖØÒªµÄ¹¤×÷£¬ÓÃ"ÍøÂç¿É´ïÐÔ±¨ÎÄ"À´½»»»Í¨¹ý¸÷ÁÚ»úËùÄܵ½´ïµÄÍøÂçµÄÐÅÏ¢£¬´Ó¶øÊµÏÖ×ÔÖÎϵͳ֮¼äµÄÁ¬Í¨ÐÔ¡£ÔÚÍâ²¿Íø¹ØµÄÑÛÀïÖ»ÓÉÍâ²¿Íø¹ØºÍÁ¬½ÓËûÃǵÄÁ´Â·£¬Èç´ËÒÔÀ´£¬×ÔÖÎϵͳÄÚµÄͨÐÅÓÉÄÚ²¿Íø¹Ø´¦Àí£¬×ÔÖÎϵͳ֮¼äµÄͨÐŽ»ÓÉÍâ²¿Íø¹Ø´¦Àí--Ò»¸ö·Ö¼¶Â·Óɵľ°ÏóÒѾչÏÖÔÚÎÒÃÇÃæÇ°£¬Êµ¼ÊÉÏ£¬ÒòÌØÍøÕýÊÇÓÉ´óÁ¿×ÔÖÎϵͳ×é³ÉµÄ¡£
½¨Á¢Ò»¸ö¸ß¼¶Â·ÓÉÆ÷
Ðí¶àÈ˶Ô·ÓÉÆ÷¸Ðµ½±È½ÏİÉú£¬ÊÂʵÉÏ×÷Ϊһ¸ö·À»ðǽʹÓÃµÄ Linux ϵͳÒѾÊÇÒ»¸ö·ÓÉÆ÷ÁË£¬Ö»²»¹ý»¹Óеã"¼òª"¶øÒÑ¡£È»¶ø£¬ÎÒÃǵÄÄ¿±êÊÇÓà Linux ´òÔìÒ»¸ö"¸ß¼¶"·ÓÉÆ÷£¬Ëü±ØÐëÄܹ»ÀûÓö¯Ì¬Â·ÓÉÐÒ飨ÉÏÎÄÌáµ½µÄÐÒé½ÔΪ¶¯Ì¬Â·ÓÉÐÒ飩¹¤×÷¡£ÕâЩÐÒéÄܹ»Ê¹Â·ÓÉÆ÷»¥»»Ïà¹ØÐÅÏ¢£¬´Ó¶ø¹²Ïí´©Ô½ÍøÂçʱËùÓõÄÄÇЩ·¾¶--·ÓÉ¡£ÕâÒ»µã¶ÔÓÚ´óÐÍÍøÂç(±ÈÈç Internet)¶øÑÔÊÇ"Òì³£"ÖØÒªµÄ£¬ÒòΪ´ËʱÔÙÓþ²Ì¬Â·ÓÉ£¨Ò²¾ÍÊÇÈ˹¤¼ÆËãÉèÖ÷ÓÉ£©ÊǸù±¾²»ÏÖʵµÄ¡£
¾ÙÀýÀ´Ëµ£¬¼´Ê¹ÔڱȽÏÀíÏë--¼´²»¿¼ÂÇ·Óɵı仯µÄÇé¿öÏ£¬Ò»¸ö±ß½çÍø¹ØÐÒé(BGP)·ÓɱíÒ²ÖÁÉÙ°üº¬ 100,000 ÌõÒÔÉϵıíÏî¡£Õâʱ£¬ÊÖ¹¤½¨Á¢ÕâÑùµÄ¾²Ì¬Â·ÓÉÊÇÄÑÒÔÈÌÊܵġ£ºÜÃ÷ÏÔ£¬¼´Ê¹ÎÒÃǵÄÍøÂçСÓÚ Internet--±ÈÈçÒ»¸ö´óÐ͹«Ë¾ÍøÂ磬ÎÒÃÇ»¹ÊǸü¼Óϲ»¶¶¯Ì¬Â·ÓÉÐÒé¡£
Íâ²¿Íø¹ØÐÒé BGP ͨ³£×÷Ϊ Internet µÄ¹Ç¸ÉʹÓ㬶øÆäËüµÄÐÒ飨Èç OSPF£©ÔòÊÊÓÚСÐ͵Ļ¥Á¬ÍøÂç¡£¿ª·Åʽ×î¶Ì·¾¶ÓÅÏÈ(OSPF)ÐÒéÊÇÒ»¸öÓ¦ÓÃ×î¹ãµÄÄÚ²¿Íø¹ØÐÒé(IGP)¡£Zebra ÊÇÒ»¸ö¿ª·ÅÔ´´úÂë³ÌÐò°ü£¬Í¨¹ýËüÄã¿ÉÒÔÔÚ Linux ÉÏÔËÐÐ BGP Óë / »ò OSPF¡£
°²×° Zebra
Äã¼È¿ÉÒÔ´Ó Zebra.org ÍøÕ¾ÏÂÔØ Zebra µÄ×îÐÂÔ´³ÌÐò£¬Ò²ÄÜ´Ó Redhat ºÍ Debian ÖлñµÃËü£¬µ«²»Ò»¶¨ÊÇ×îаæµÄ¡£´ÓÔ´´úÂëÖнøÐÐÈí¼þ°²×°£¬Äã¾Í»á·¢ÏÖʹÓõÄÊÇһЩÆÕͨµÄ°²×°¹ý³Ì¡£¼ò½éÈçÏ£º
./configuremakemake installÅäÖýű¾»áËÑË÷ϵͳÉÏÒѾ°²×°µÄ IP Õ»²¢ÇÒ×Ô¶¯µØÉèÖóÉÖ§³ÖËûÃÇ¡£µ±Ç°£¬IP Õ»ºÜ¿ÉÄܽö½öÊÇÖ¸ IPv4£¬µ«ÊÇ IPv6 Óû§Ò²²»Óõ£ÐÄ£¬ÒòΪ Zebra Ò²»á·¢ÏÖ²¢ÇÒÖ§³ÖËü¡£
³ÌÐò°²×°Ö®ºó£¬»¹¿ÉÄܱØÐëÔÚ /etc/services ÖÐÔö¼ÓһЩÃüÁîÐС£Zebra µÄÊØ»¤³ÌÐòÔÚËûÃÇ×Ô¼ºµÄÐéÄâÖÕ¶ËÁ¬½Ó(VTY)ÏÂÔËÐУ¬ËùÒÔÄãµÄϵͳ±ØÐëÖªµÀÕâЩÐéÄâÖÕ¶ËÁ¬½Ó¡£ÕâÀïÊÇÄãÓ¦¸ÃÔö¼ÓµÄһЩÁ¬½Ó¡Ã
zebrasrv 2600/tcp # zebra servicezebra 2601/tcp # zebra vtyripd 2602/tcp # RIPd vtyripngd 2603/tcp # RIPngd vtyospfd 2604/tcp # OSPFd vtybgpd 2605/tcp # BGPd vtyospf6d 2606/tcp # OSPF6d vtyÅäÖÃ Zebra
Èç¹ûÄãÒѾÊìϤ Cisco IOS£¬ÄÇÄã¾ÍÄÜÔÚ¶Ìʱ¼äÄÚÕÆÎÕ Zebra£¬ÒòΪÄã»á·¢ÏÖÁ½Õß¼«ÎªÏàËÆ¡£Zebra µÄÿ¸öÊØ»¤³ÌÐòʹÓÃÒ»¸öµ¥¶ÀµÄ VTY£¬ÕâЩ VTY ¿ÉÒÔͨ¹ýÒ»¸öÔ¶³ÌµÇ¼»á»°½øÐж¯Ì¬ÅäÖá£ËùÒÔ£¬Èç¹ûÄãÐèÒªÉèÖà OSPF£¬¼òµ¥µØÔ¶³ÌµÇ¼µ½¸Ã Linux ÉÏ 2604 ¶Ë¿Ú£»ÎªÁËÐÞ¸ÄÄں˵Ä·Óɱí»òÉèÖ÷ÓÉÐÒé¼äµÄÔÙ·Ö·¢£¬Äã¿ÉÒÔÔ¶³ÌµÇ¼µ½¶Ë¿Ú 2601£¬¸Ã Zebra ÊØ»¤³ÌÐò³äµ±Äں˹ÜÀíÆ÷£¬¹ÜÀíÆäËûµÄÊØ»¤³ÌÐòºÍϵͳ±¾ÉíÖ®¼äµÄͨÐÅ¡£
ÏÖÔÚ½éÉÜÈçºÎÔÚÒ»¸ö·þÎñÆ÷ÉÏ´´½¨ºÍÔËÐÐ OSPF ºÍ BGP¡£Zebra µÄÊØ»¤³ÌÐòÔËÓô¿Îı¾Îļþ´¢´æËüÃǵÄÅäÖ᣶ÔÓÚ OSPF/BGP ·ÓÉÆ÷£¬½«Óõ½Èý¸öÎļþ¡Ãzebra.conf¡¢ospfd.conf ºÍ bgpd.conf¡£¾ÙÀýÀ´Ëµ£¬zebra.conf Îļþ¿ÉÄÜ»áÊÇÕâÑù:
! Zebra configuration saved from vty! 2002/02/28 01:46:12!hostname LinuxRouter /*Ö÷»úÃûΪ LinuxRouter*/password zebra /*¿ÚÁîΪ zebra*/enable password z3bRa /*½øÈëÌØÈ¨Ä£Ê½Ê±µÄ¿ÚÁîΪ z3bRa */log file /var/log/zebra/zebra.log /*ÈÕÖ¾ÎļþµÄµØÖ·*/!interface eth0 /*ÒÔÌ«½Ó¿Ú eth0*/ description Interface to External Network/*¶Ô½Ó¿ÚµÄÃèÊö*/ ip address 10.0.0.1/24 /*¸Ã½Ó¿ÚµÄ IP µØÖ·*/!interface eth1/*ÒÔÌ«½Ó¿Ú eth0*/ description Interface to Internal Network/*¶Ô½Ó¿ÚµÄÃèÊö*/ ip address 192.168.66.1/24/*¸Ã½Ó¿ÚµÄ IP µØÖ·*/ ÕâÀïµÄ¸Ð̾ºÅ³äµ±×¢½â±êʶ»ò·Ö¸ô·û¡£¾¡¹Ü´æÔÚ´óÁ¿²»Í¬µÄÍøÂç½Ó¿ÚÀàÐÍ(Ethernet¡¢ISDN µÈµÈ)£¬µ«Ö»ÒªÊÇ Linux ÄÚºËÄܹ»±æÈϵÄÍøÂç½Ó¿ÚÀàÐÍ£¬Zebra ¶¼¿ÉÒÔʹÓá£
×ÓÍøÑÚÂë¶¼´øÓÐÍøÂçλµÄλÊý(ÀýÈç/24)£¬Ä¬ÈÏÑÚÂëÔò²»È»£¨±ÈÈç 255.255.255.0£©¡£×¢Òâ´æÔÚÁ½¸ö¿ÚÁһ¸öÓÃÓÚÓû§Ä£Ê½¶øÁíÒ»¸öÓÃÓÚÌØÈ¨Ä£Ê½¡£Õâ²»½öÓÐÀûÓÚÏò·Ç¹ÜÀíÔ±Ìṩ·ÃÎÊȨÏÞ£¬¶øÇÒ¶ÔÓÚ´´½¨Â·ÓÉ·þÎñÆ÷»òÕß·ÓÉ̽²â¾µÒ²ÊǷdz£ÖØÒªµÄ¡£ËùÓÐ BGP ¹ÜÀíÔ±¶¼ÖªµÀ£¬ÕâЩ̽²â¾µÊǵ÷ÊÔ·ÓÉÎÊÌâµÄ¹Ø¼ü£¬ÒòΪËûÃÇÄܹ»Ê¹Äã¾ÍÏó´ÓÒ»¸öÍⲿ AS( AS´ú±í×ÔÖÎϵͳ)Ò»Ñù²é¿´Â·ÓÉ¡£ BGP ·ÓÉÐèÒªÓõ½ AS ±àºÅ£¬AS ±àºÅÊÇһЩÓÉ ARIN (ÃÀ¹ú»¥ÁªÍøÂçºÅÂë×¢²á»ú¹¹)¿ØÖƵÄ×¢²áºÅÂë¡£
ÏÂÒ»²½½«Æô¶¯Ò»Ð©±ØÒªµÄ³ÌÐò¡£ÓÃÒÔÏÂÃüÁîÍê³É¡Ã
/usr/sbin/zebra -dk/usr/sbin/ospfd -d/usr/sbin/bgpd -dµÚÒ»¸öÃüÁÆô¶¯ zebra£¬¸ÃÊØ»¤³ÌÐòʵ¼ÊÉÏÓÃÀ´¸üÐÂÄں˵Ä·ÓÉ±í¡£-dk ¸æË߸óÌÐò×÷Ϊһ¸öÊØ»¤³ÌÐòÔËÐÐ(d)£¬ËüµÄ´ó²¿·Öʱ¼äÔÚºǫ́ÔËÐС£k ÊÇÁíÍâµÄÒ»¸öÑ¡Ï¸æËß Zebra ά»¤ËùÓÐÒÑÅäÖõÄ·ÓÉ¡£ËüÓÃÀ´±£Ö¤ÔÚÄã²âÊÔ Zebra µÄʱºò²»»áÒâÍâµØÉ¾³ý·ÓÉ±í¡£Ò»°ãÇé¿öÏ£¬ÉèÖ÷Óɺͽӿڣ¬ÐèÒª½« ifconfig ºÍ route ÕâÁ½¸öÃüÁîÅäºÏʹÓ᣶ø Zebra ÍêÈ«¿ÉÒÔÌæ´úÕâÖÖ·ÓɹÜÀí·½Ê½£¬Ê¹ÓÃÆðÀ´¸üΪ¼ò½à¡£
ÉèÖÃOSPF
ÖÁ´Ë£¬»ù±¾µÄ·þÎñÒѾ¾ß±¸£¬ÏÖÔÚÈÃÎÒÃÇ Telnet µ½±¾µØ»úÆ÷µÄ 2604 ¶Ë¿Ú£¬¿ªÊ¼ÅäÖà OSPF¡£Îª½øÈëÌØÈ¨Ä£Ê½£¬¼üÈë enable (ÕýÈçÔÚCisco IOS ÖÐÒ»Ñù)£¬È»ºó¼üÈëÌØÈ¨Ä£Ê½¿ÚÁî¡£½ÓÏÂÀ´£¬Óà configuration terminal ÃüÁîÇл»µ½ÅäÖÃģʽ¡£ÖµµÃÒ»ÌáµÄÊÇ Zebra Ò²ÄܽÓÊÜÃüÁîËõдÐÎʽ£¬ÕâÓë Cisco ¼«ÎªÏàËÆ£¬Èç configuration terminal ¿ÉÒÔ¼òдΪ config t£¬Õâ´ó´óËõ¶ÌÁËÊäÈëʱ¼ä£¬Ê¹ÓÃÆðÀ´¸üΪ·½±ã¡£ÁíÍ⣬Èç¹ûÊäÈë list ºÍ ?£¬Ëü½«ÏÔʾһ¸öµ±Ç°¿ÉÓÃÃüÁîµÄÇåµ¥£¬²¢¸½ÓÐһЩ¼òÂÔ½âÊÍ¡£³ý´ËÖ®Í⣬»¹¿ÉÒÔ¼üÈë tab ÓÃÓÚÃüÁîµÄ×Ô¶¯Íê³É¡£Õâ¾ÍÊÇ˵£¬Èç¹ûÄãÏë¼üÈëÃüÁî clock£¬Ö»Òª¼üÈëǰÁ½¸ö×Öĸ cl È»ºó°´ tab ¼ü£¬»úÆ÷¾Í»á×Ô¶¯"²¹È«"ÕâÌõÃüÁî--ǰÌáÊÇÄã¼üÈëµÄ×Ö·û×ãÒÔΨһµØÈ·¶¨ÕâÌõÃüÁî¡£ÕâÊÇÒ»¸öºÜºÃµÄ¹¦ÄÜ£¬ÓÈÆäÊǵ±Äãϰ¹ßÓÚÕâÖÖÓ÷¨Ê±¡£
½ÓÏÂÀ´£¬ÎÒÃÇ»¹ÐèÒª¸æËßÊØ»¤³ÌÐò½«Í¨¹ý OSPF ¹ã²¥ÄÄÐ©ÍøÂçÒÔ¼°Ïà¹ØµÄÓò£¨area£©¡£OSPF µÄ¿ÉÉìËõÐÔÔÊÐíËüÖ§³Ö¶à¸öÓò¡£¼üÈë router ospf ¿ªÊ¼ÅäÖà OSPF£¬È»ºó¼üÈë network 192.168.66.0/24 area 0¡£Õâ¸æËß·ÓÉÆ÷£¬ÎÒÃǽ«Ê¹Óà OSPF ¹ã²¥Ò»¸ö×ÓÍøÑÚÂëΪ 255.255.255.0 µÄ 192.168.66.0 ÍøÂç¡£
ÔÚ±¾ÀýÖУ¬ÎÒÃÇÈà eth0 ½Ó¿Ú±ä³ÉÒ»¸ö±»¶¯£¨passive£©½Ó¿Ú£¬ÒÔ±ãʹËü²»ÄÜ·¢ËÍ·ÓɸüС£Õâ¶ÔÓÚʵÑéÊǷdz£ÖØÒªµÄ£¬ÒòΪÔÚÄǸö·½ÏòÉÏµÄÆäËûµÄ·ÓÉÆ÷¿ÉÄܼàÌýµ½·¢Ë͵Ä·ÓɸüУ¬½«½Ó¿Ú±ä³ÉÒ»¸ö±»¶¯£¨passive£©½Ó¿Ú£¬´Ó¶øÓÐЧµÄ±ÜÃâÈÅÂÒÍøÂçµÄÕý³£ÔËÐС£Îª´Ë£¬¼üÈëÃüÁî passive - interface eth0¡£Èç¹û´òË㽫´Ë·ÓÉÆ÷×÷Ϊ¹¤×÷·ÓÉÆ÷ʹÓÃʱ£¬¾ÍûÓÐÕâ¸ö±ØÒªÁË¡£Ò»µ©ÄãÍê³ÉÐ޸ģ¬Óà end ÃüÁî´ÓÅäÖÃģʽÖÐÍ˳ö£¬È»ºóÓà write file ÃüÁî±£´æ¡£ÕâÀïÊÇÒ»¸ö¿ìÕÕ£º
labrat:~# telnet 0 2604 /*Telnet µ½±¾µØ»úÆ÷µÄ 2604 ¶Ë¿Ú*/Trying 0.0.0.0...Connected to 0.Escape character is '^]'. /*Óà '^]'Í˳ö¸Ã»á»°*/ Hello, this is zebra (version 0.84b)Copyright 1996-2000 Kunihiro Ishiguro User Access Verification Password: /*Ôڴ˼üÈë¿ÚÁÈç zebra*/ospfd> enable/*½øÈëÌØÈ¨Ä£Ê½*/Password: /*ÊäÈëÌØÈ¨Ä£Ê½¿ÚÁÈç z3bRa*/ospfd# configure terminal /*´ÓÖÕ¶ËÅäÖ÷ÓÉÆ÷*/ospfd(config)# router ospf /*ÅäÖà OSPF*/ospfd(config-router)# network 192.168.66.0/24 area 0 /*ͨ¹ý OSPF ¹ã²¥ÍøÂç network 192.168.66.0£¬/24 Ö¸³ö×ÓÍøÑÚÂëΪ 24 룬area 0 Ö¸³ö¸ÃÍøÂçËùÔÚµÄÓò*/ospfd(config-router)# passive-interface eth0 /*½« eth0 ½Ó¿ÚÉèÖóÉÒ»¸ö±»¶¯£¨passive£©½Ó¿Ú*/ospfd(config-router)# end /*Í˳öÅäÖÃģʽ*/ospfd# write file /*±£´æÐÞ¸Ä*/Configuration saved to /etc/zebra/ospfd.confÇë¼Çס£¬ÎªÁËÈà OSPF »ò BGP ÔÚij½Ó¿ÚÉϹ¤×÷£¬ÄÇô¸Ã½Ó¿Ú±ØÐë´¦ÓÚ"ÔËÐÐ"״̬¡£ÎªÊÖ¹¤ÔËÐÐÒ»¸ö½Ó¿Ú£¬µÇ¼µ½¶Ë¿Ú 2601 ²¢ÇÒÔڸýӿÚÉÏÖ´ÐÐ no shut ÃüÁî¡£
½¨Á¢ BGP
BGP Óë OSPF µÄÅäÖôóÖÂÏàͬ¡£¿ªÊ¼£¬´ò¿ªÒ»¸öÔ¶³ÌµÇ¼»á»°µ½¶Ë¿Ú 2605¡£Ö®ºóÖ´ÐÐ configure terminal£¬ÊäÈë router bgp
labrat:~# telnet 0 2605Trying 0.0.0.0...Connected to 0.Escape character is '^]'. Hello, this is zebra (version 0.84b)Copyright 1996-2000 Kunihiro Ishiguro User Access Verification Password:bgpd> enablePassword:bgpd# configure terminalbgpd(config)# router bgp 65530 /*ÅäÖà BGP£¬65530 ÊÇ×ÔÖÎϵͳ±àºÅ¡£Ò²¾ÍÊǽ«¸ÃϵͳÅäÖóÉ×ÔÖÎϵͳ 65530 ÉϵÄÍâ²¿Íø¹Ø*/bgpd(config-router)# network 192.168.66.0/24 /*ÓÉ BGP ¹ã²¥µÄÍøÂç*/bgpd(config-router)# neighbor 10.0.0.5 remote-as 65531 /*¾²Ì¬Ö¸¶¨×ÔÖÎϵͳ 65531 ÉÏ IP µØÖ·Îª 10.0.0.5 µÄ·ÓÉÆ÷Ϊ±¾»úµÄÁÚ»ú*/bgpd(config-router)# endbgpd# write fileConfiguration saved to /etc/zebra/bgpd.conf¶ÔÓÚ OSPF ºÍ BGP£¬ÓдóÁ¿Ñ¡Ïî¿ÉÓã¬ÏÞÓÚÆª·ù²»ÄÜÔÚ´ËÒ»Ò»½éÉÜ¡£¶ÔÓÚÿ¸öÐÒ飬ÎÒ½¨ÒéÔÚʵ¼ÊʹÓÃ֮ǰ£¬²»·ÁÏÈÑо¿Ò»·¬¡£Îª´Ë£¬¿ÉÒԲο¼ GNU Zebra Îĵµ£¬Ëü»á¸øÄãÌṩÐí¶à°ïÖú¡£
½áÊøÓï
ÔÚÍøÂçÖУ¬Â·ÓÉͨÐÅÁ÷µÄ·½·¨ÓÐÈô¸ÉÖÖ¡£¾Í·ÓÉÆ÷¶øÂÛ,ËäÈ»ÓÐÓø÷ÖÖÓ²¼þ¿ÉÓÃ,µ«ÊÇ·ÑÓýϸß--ÈËÃÇ×ÔÈ»¾Í»áÏëµ½ÔËÐÐÒ»¸öÓà Linux ϵͳ¹¹ÖþµÄ¹¦ÄܷḻµÄ·ÓÉÆ÷×÷Ϊ´úÌæ¡£Zebra ·ÓÉÊØ»¤³ÌÐòÒѾʹÕâÒ»ÇбäΪÏÖʵ¡£ÒòΪ֧³Ö IPv4¡¢IPv6 ºÍÆäËü¸÷ʽ¸÷ÑùµÄÐÒ飬ËùÒÔ Zebra Äܹ»Âú×ãÎÒÃÇËùÓеÄ·ÓÉÐèÇó¡£Ëü»¹ÓÐÒ»¸öºÃ´¦¾ÍÊÇ£¬ÒòΪ Cisco IOS ºÍ Zabra ¼«ÎªÏàËÆ£¬Èç¹ûÄãÒÔǰÔÚ Cisco IOS »·¾³Öй¤×÷£¬¿ÉÒÔÇáËɵĹý¶Éµ½ Zebra ϵͳ£»Í¬Ê±£¬Ê¹Óà Zebra Ò²ÄÜÈÃÄã»ýÀÛÆð·á¸»µÄÀàËÆÓÚʹÓà Cisco IOS ·ÓÉÆ÷µÄ¾ÑéºÍ֪ʶ¡£
72.36.211.* ÓÚ 2007-04-28 21:42:16·¢±í:
Great work!
ctu 24 ringtone | mp3 ringtone download | free ringtones downloads | free nokia downloads | ringtone midi | free sprint ringtones | motorola mp3 ringtones | sprint ringtones | cisco ringtones | simpsons ringtone
72.36.211.* ÓÚ 2007-04-28 21:42:04·¢±í:
Great work!
download free polyphonic ringtones | free ringtone converter | ringtones mp3 | free ringtones sprint | cellular one ringtones | free anime ringtones | free ringtones us cellular | ringtone motorola | free samsung ringtones | verizon free ringtones
72.36.211.* ÓÚ 2007-04-27 11:33:33·¢±í:
Good design!
free black jack games | casino free games | blackjack for free | multiplayer poker | download party poker | slot machines free | online gambling sites | free online bingo games
72.36.211.* ÓÚ 2007-04-27 11:33:09·¢±í:
Nice site!
download free poker game | free monopoly online | casinos online | aussie slots | bingo online | free money casino | poker game online | black jack online | online video slots | free no deposit casino
72.36.211.* ÓÚ 2007-04-27 11:32:03·¢±í:
Nice site!
online holdem | free on line poker | online blackjack | free online slots no downloads | play slots for fun | casino black jack | new no deposit casino | play slots | poker bonus | full tilt poker
72.36.211.* ÓÚ 2007-04-27 11:31:40·¢±í:
Nice site!
free strip blackjack | free no download slots | poker games | blackjack free | free sims slots | play roulette online | free online roulette | texas holdem online | poker usa | online black jack game
72.36.211.* ÓÚ 2007-04-27 11:31:27·¢±í:
Nice site!
online slot games | free play slots | poker | blackjack download | download poker games | slot games | no limit texas hold em | free poker money | casino bonus | free money casinos
72.36.211.* ÓÚ 2007-04-26 14:43:15·¢±í:
Thank you!
online bingo | poker online free | free slots on line | omaha poker | texas holdem online | casino slot games | stud poker | poker stars | free joker poker | casino free games
72.36.211.* ÓÚ 2007-04-26 14:42:44·¢±í:
Well done!
poker online | download casino games | free online blackjack | free games on line | black jack free | poker free download | gambling machines | internet bingo | casino black jack | internet blackjack
72.36.211.* ÓÚ 2007-04-26 14:41:41·¢±í:
Great work!
free online slots no downloads | video poker download | free black jack games | poker on line | free slots download | multiplayer poker | poker games download | roulette games | play free blackjack online | free blackjack
72.36.211.* ÓÚ 2007-04-26 14:41:09·¢±í:
Good design!
slot machines free | play blackjack online | pokerstars download | free slot machine games online | no deposit bonus casinos | internet gambling | online roulette game | video slot | free slots games | video poker free
72.36.211.* ÓÚ 2007-04-26 14:40:56·¢±í:
Nice site!
slot machine software | free poker websites | no deposit bingo | free games online | free casino slots | free online slot games | slots games | texas holdem | free slot | free slots online
72.36.192.* ÓÚ 2007-04-25 05:25:29·¢±í:
Good design!
ringtones mp3 free | boost ringtones | free cellular one ringtones | ringtone uploader | free 24 ctu ringtone | free ringtones | 24 ring tones | ringtone ctu | free ringtones for cricket | ctu ringtone
72.36.192.* ÓÚ 2007-04-25 05:24:57·¢±í:
Well done!
free ringtones for alltel | free mobile phone ringtones | ringtones download | motorola q ringtones | t mobile ringtones | free ringtones lg | download free ringtones | absolutely free ringtones | free polyphonic ringtone | free midi ringtones
72.36.192.* ÓÚ 2007-04-25 05:24:05·¢±í:
Thank you!
ringtone creator | tmobile free ringtones | ringtone | free real ringtones | cingular wireless ringtones | motorola ring tones | jamster ringtones | ringtones for sprint phones | free mp3 ringtones download | polyphonic ringtones
72.36.192.* ÓÚ 2007-04-25 05:23:30·¢±í:
Well done!
ringtones samsung | download free ringtone | free ringtones for tracfone | mp3 to ringtone converter | free samsung ringtones | free mobile ringtones | nextel downloads | free star wars ringtones | free ringtones us cellular | free alltel ringtones
72.36.192.* ÓÚ 2007-04-25 05:23:10·¢±í:
Nice site!
free mp3 ringtone downloads | verizon ctu ringtone | free nokia downloads | wav ringtones | free harry potter ringtones | free nextel downloads | sanyo ringtones | midi ringtones | sms ringtones | sprint phones
72.36.192.* ÓÚ 2007-04-24 07:09:05·¢±í:
Nice site!
motorola mp3 | midi ringtones | free gospel ringtones | free ringtones for cellular south | free ring tones | ringtones lg | free ringtones | free alltel ringtones | verizon ring tones | free wav ringtones
72.36.192.* ÓÚ 2007-04-24 07:08:43·¢±í:
Good design!
free real music ringtones | music ringtones | us cellular free ringtones | free mp3 download | free mobile phone ringtones | free us cellular ringtones | ringtones samsung | country ringtones | free ringtone | 24 ringtone
72.36.192.* ÓÚ 2007-04-24 07:08:06·¢±í:
Well done!
free ringtones for nokia | motorola ringtones | free 24 ringtones | free ringtones download | nascar ringtones | free ringtone downloads | free anime | ringtones free | cricket ringtones | hifi ringtones
72.36.192.* ÓÚ 2007-04-24 07:07:42·¢±í:
Thank you!
free ringtones for tracfone | ctu ringtone verizon | alltel ringtones | free ringtones for tracfones | mosquito ringtone | free mobile ringtones | free ringtones samsung | crazy frog ringtones | free ringtones for verizon | midi ringtone
72.36.192.* ÓÚ 2007-04-24 07:07:19·¢±í:
Thank you!
free ringtone converter | sprint ringtones | sms ringtones | ringtone websites | polyphonic ringtone | nextel downloads | voice ringtones | boost ringtones | mp3 ringtones download | motorola q ringtones
72.36.192.* ÓÚ 2007-04-23 07:31:57·¢±í:
Thank you!
download free ringtone | free us cellular ringtones | sony ericsson ringtones | cingular free ringtones | free us cellular ring tones | free anime ringtones | kyocera ringtones | midi ringtone | motorola razr v3 ringtones | composer ringtones
72.36.192.* ÓÚ 2007-04-23 07:31:29·¢±í:
Great work!
verizon free ringtones | free suncom ringtones | free polyphonic ringtone | centennial wireless ringtones | free ringtones verizon | free gospel ringtones | us cellular ringtones | nokia ringtones | sprint pcs ringtones | free tmobile ringtones
72.36.192.* ÓÚ 2007-04-23 07:30:54·¢±í:
Great work!
ringtones free | ringtone ctu | free boost ringtones | free cellular ringtones | free wwe ringtones | free country ringtones | free ringtones for t-mobile | free ringtones for us cellular | cellular south ringtones | ringtone jukebox
72.36.192.* ÓÚ 2007-04-23 07:30:27·¢±í:
Nice site!
free ringtones for lg | free ringtones mp3 | motorola mp3 ringtones | verizon ringtones | 24 ring tone | ringtone nokia | free polyphonic | ctu ringtones | free mp3 ringtone download | free cricket ringtones
72.36.192.* ÓÚ 2007-04-23 07:30:05·¢±í:
Good design!
free alltel ringtones | mp3 to ringtone | free monophonic ringtones | free mp3 ringtone | free blackberry ringtones | samsung free ringtones | harry potter ringtone | free ringtones cingular | samsung ringtones | free sprint downloads
72.36.192.* ÓÚ 2007-04-22 09:43:18·¢±í:
Well done!
free joker poker | internet bingo | casino free game online | no deposit casinos | on line poker | free online bingo games | free black jack | virtual poker | poker game online | casino game download
72.36.192.* ÓÚ 2007-04-22 09:42:50·¢±í:
Well done!
hold em poker | video poker free | full tilt poker | absolute poker | pacific poker | free slot machine downloads | download blackjack | online casino games | blackjack online | flash casino
72.36.192.* ÓÚ 2007-04-22 09:42:18·¢±í:
Great work!
texas holdem free | flash casinos | poker web sites | best usa casino online | slots download | free strip black jack | free casino slot | free gambling games | online gambling sites | video slots free
72.36.192.* ÓÚ 2007-04-22 09:41:56·¢±í:
Good design!
play poker for free | play slots for fun | free casino games online | texas poker | free blackjack online | free poker games | free slot games online | slot machines games | play bingo | free slot machines
72.36.192.* ÓÚ 2007-04-22 09:41:28·¢±í:
Thank you!
online blackjack free | strip blackjack game | texas hold em online | online slot machines | blackjack download | video slots | strip blackjack | online poker free | poker online | play texas hold em
72.36.192.* ÓÚ 2007-04-21 08:17:55·¢±í:
Well done!
bonus casino free online | free online gambling | free monopoly slots | free money casino | planet poker | slot machine | roulette download | us poker sites | slots for free | strip blackjack free
72.36.192.* ÓÚ 2007-04-21 08:17:35·¢±í:
Good design!
no deposit online casinos | free play slot machines | free casino slots | free blackjack online | play slots | free online roulette | free poker software | poker for free | free black jack games | texas hold em poker
72.36.192.* ÓÚ 2007-04-21 08:16:59·¢±í:
Thank you!
free poker download | poker | play slots for fun | casino online | casinos on line | video poker free | free online texas holdem | online poker free | online blackjack free | free games on line
72.36.192.* ÓÚ 2007-04-21 08:16:40·¢±í:
Great work!
roulette online | casino bonuses | online black jack game | free play slots | internet gambling | slim slots | free online slot games | download free poker games | flash casino | free black jack game
72.36.192.* ÓÚ 2007-04-21 08:16:14·¢±í:
Great work!
world series of poker download | blackjack online free | games download | online video slots | internet poker | play texas hold em | slots online | free online texas holdem | no deposit casinos | monopoly online
72.36.192.* ÓÚ 2007-04-20 08:01:37·¢±í:
Good design!
free phone downloads | ringtone | free mp3 ringtones | free ringtone download | christian ringtones | ringtones samsung | free music ringtones | free ringtones for t mobile | sprint pcs ringtones | free hifi ringtones
72.36.192.* ÓÚ 2007-04-20 08:01:12·¢±í:
Thank you!
ringtone composer | cellular south ringtones | keypress ringtones | free nokia ringtone | download free ringtones | free real ringtones for cingular | crazy frog ring tone | ringtone websites | ringtones for motorola q | nextel downloads
72.36.192.* ÓÚ 2007-04-20 08:00:46·¢±í:
Well done!
free polyphonic ringtones | free mp3 ringtones download | free ring tones | ringtones for suncom | ringtone 24 ctu | download free motorola ringtone | free cingular cell phone ringtones | free t mobile ringtones | free cricket ringtones | country ringtones