¼ÆËã»úÍøÂçʵÑé ÏÂÔر¾ÎÄ

2.¾²Ì¬Â·ÓÉЭÒéµÄÅäÖÃ

£¨Â·ÓÉÆ÷¸÷¸ö½Ó¿ÚµÄIPµØÖ·ÉèÖÃÈçͼ2£¬PC»úµÄĬÈÏÍø¹ØµØÖ·ÉèÖÃΪÆäÖ±Á¬µÄ·ÓÉÆ÷½Ó¿ÚµÄIPµØÖ·£© ¶ÔRouter AµÄÅäÖÃÈçÏ£º

system-view

Enter system view, return to user view with Ctrl+Z. [H3C]int e1/0

[H3C-Ethernet1/0]ip addr 192.168.1.1 255.255.255.0 [H3C-Ethernet1/0]int e2/0

[H3C- Ethernet2/0]ip addr 192.168.3.2 255.255.255.0 [H3C- Ethernet2/0]quit

[H3C]ip route-static 192.168.2.0 255.255.255.0 192.168.3.3 [H3C]dis ip route

¶Ô·ÓÉÆ÷RouteBÅäÖÃÈçÏ£º

system-view

Enter system view, return to user view with Ctrl+Z. [H3C]int e 1/0

[H3C-Ethernet1/0]ip addr 192.168.3.3 255.255.255.0 [H3C-Ethernet1/0]int e 2/0

[H3C- Ethernet2/0]ip addr 192.168.2.1 255.255.255.0 [H3C-Serial0]quit

[H3C]ip route 192.168.1.0 255.255.255.0 192.168.3.2 [H3C]dis ip rout [H3C]

Æß¡¢³£Ó÷ÓÉÆ÷ÅäÖÃÃüÁî

1¡¢½øÈëϵͳ£¨ÅäÖã©ÊÓͼ system-view

2¡¢ÏÔʾ·ÓÉÆ÷µ±Ç°ÅäÖÃÐÅÏ¢ display current 3¡¢ÏÔʾµ±Ç°Â·Óɱí

display ip routing-table 4¡¢Ôö¼ÓÒ»Ìõ¾²Ì¬Â·ÓÉ

ip route-static Ä¿±êÍøÂçµØÖ· ×ÓÍøÑÚÂë ÏÂÒ»ÌøµØÖ· 5¡¢É¾³ýÒ»Ìõ¾²Ì¬Â·ÓÉ

undo ip route-static all|ip-addr

11

6¡¢½øÈë½Ó¿ÚÊÓͼ

interface e1/0£¨»òe2/0£© 7¡¢Îªwan¿ÚÅäÖÃipµØÖ·

ip address ipµØÖ· ×ÓÍøÑÚÂë

8¡¢Í˳öµ±Ç°Ä£Ê½£¬½øÈëϵͳģʽ quit

Áù¡¢ÊµÑéÊý¾Ý²âÊÔ¼°½á¹û·ÖÎö

¶ÔÈçͼPC»úµÄÁ¬½ÓÇé¿ö½øÐÐPingʱµÄ½áÂÛÊÇ£º 12

ʵÑéÎå ¶¯Ì¬Â·ÓÉЭÒéRIPµÄÅäÖÃ

Ò»¡¢ÊµÑéÄ¿µÄ

RIPÊÇRouting Information Protocol£¨Â·ÓÉÐÅϢЭÒ飩µÄ¼ò³Æ¡£ËüÊÇÒ»ÖÖ½ÏΪ¼òµ¥µÄÄÚ²¿Íø¹ØЭÒ飨Interior Gateway Protocol£¬IGP£©£¬Ö÷ÒªÓÃÓÚ¹æÄ£½ÏСµÄÍøÂçÖС£ÓÉÓÚRIPµÄʵÏÖ½ÏΪ¼òµ¥£¬Ð­Òé±¾ÉíµÄ¿ªÏú¶ÔÍøÂçµÄÐÔÄÜÓ°Ïì±È½ÏС£¬²¢ÇÒÔÚÅäÖúÍά»¤¹ÜÀí·½ÃæÒ²±ÈOSPFÈÝÒ×£¬Òò´ËÔÚʵ¼Ê×éÍøÖÐÈÔÓнϹ㷺µÄÓ¦Óᣠ±¾ÊµÑéµÄÖ÷ҪĿµÄÊÇ£º

1£©Á˽⶯̬·ÓɵÄÌص㣻

2£©Ñ§Ï°¶¯Ì¬Â·ÓÉÆ÷µÄÁ¬½Ó·½·¨£» 3£©Ñ§Ï°¶¯Ì¬Â·ÓÉÆ÷ÅäÖã»

4£©Á˽âºÍÕÆÎÕÖ÷ÒªµÄÅäÖÃÃüÁî¡£

¶þ¡¢ÊµÑé»·¾³

1£©Ã¿Ð¡×é2̨»ªÎª»òH3C·ÓÉÆ÷£¨º¬µçÔ´ÏߺÍÅäÖÃÏߣ©£»

2£©2̨PC»ú£¬²Ù×÷ϵͳΪWindows XP£» 3£©Ö±Á¬Ïß2¸ù£¬½»²æÏß1¸ù£¬ÅäÖÃÏß1¸ù£»

Èý¡¢ÊµÑéÄÚÈÝ

1. RIPµÄ¹¤×÷¹ý³Ì

1£©Ä³Â·ÓÉÆ÷¸ÕÆô¶¯RIPʱ£¬¹ã²¥ÐÎʽÏòÏàÁÚ·ÓÉÆ÷·¢ËÍÇëÇó±¨ÎÄ£¬ÏàÁÚ·ÓÉÆ÷µÄRIPÊÕµ½ÇëÇó±¨Îĺó£¬ÏìÓ¦¸ÃÇëÇ󣬻ØËÍ°üº¬±¾µØ·ÓɱíÐÅÏ¢µÄÏìÓ¦±¨ÎÄ¡£

2£©Â·ÓÉÆ÷ÊÕµ½ÏìÓ¦±¨Îĺó£¬Ð޸ı¾µØ·ÓÉ±í£¬Í¬Ê±ÏòÏàÁÚ·ÓÉÆ÷·¢ËÍ´¥·¢Ð޸ı¨ÎÄ£¬¹ã²¥Â·ÓÉÐÞ¸ÄÐÅÏ¢¡£ÏàÁÚ·ÓÉÆ÷ÊÕµ½´¥·¢Ð޸ı¨Îĺó£¬ÓÖÏòÆäÏàÁÚ·ÓÉÆ÷·¢ËÍ´¥·¢Ð޸ı¨ÎÄ¡£ÔÚÒ»Á¬´®µÄ´¥·¢Ð޸Ĺ㲥ºó£¬¸÷·ÓÉÆ÷¶¼Äܵõ½²¢±£³Ö×îеķÓÉÐÅÏ¢¡£

3£©Í¬Ê±£¬RIPÿ¸ô30ÃëµÄʱ¼äÏòÏàÁÚ·ÓÉÆ÷¹ã²¥±¾µØ·ÓÉ±í£¬ÏàÁÚ·ÓÉÆ÷ÔÚÊÕµ½±¨Îĺ󣬶Ա¾µØ·ÓɽøÐÐά»¤£¬Ñ¡ÔñÒ»Ìõ×î¼Ñ·ÓÉ£¬ÔÙÏòÆä

13

¸÷×ÔÏàÁÚÍøÂç¹ã²¥ÐÞ¸ÄÐÅÏ¢£¬Ê¹¸üеķÓÉ×îÖÕÄܴﵽȫ¾ÖÓÐЧ¡£Í¬Ê±£¬RIP²ÉÓó¬Ê±»úÖƶԹýʱµÄ·ÓɽøÐг¬Ê±´¦Àí£¬ÒÔ±£Ö¤Â·ÓɵÄʵʱÐÔºÍÓÐЧÐÔ¡£

14

15