1.5±¶£»Ê×ÐÐËõ½ø£º2×Ö·û£»ÌâÄ¿×ÖÌ壺3ºÅºÚÌ壬µ¥±¶ÐоࣻÕ½Ú×ÖÌ壺4ºÅºÚÌ壬µ¥±¶Ðоࡣ
interface Serial3/0 no ip address shutdown !
interface FastEthernet4/0 no ip address shutdown !
interface FastEthernet5/0 no ip address shutdown !
ip classless
ip route 192.168.1.0 255.255.255.0 192.168.6.1 ip route 192.168.2.0 255.255.255.0 192.168.6.1 ip route 192.168.3.0 255.255.255.0 192.168.6.1 ip route 192.168.4.0 255.255.255.0 192.168.6.1 ip route 192.168.5.0 255.255.255.0 192.168.6.1 ! ! ! !
line con 0 line vty 0 4 login ! ! ! end
Áù¡¢ÍøÂç²âÊÔ PC1ÓëPC2»¥Í¨£»
PC1¿ÉÒÔ·ÃÎÊPC3¡¢PC4µÄHTTPÒ³Ãæ£» PC2¿ÉÒÔ·ÃÎÊPC3¡¢PC4µÄHTTPÒ³Ãæ£»
£¨www.abc.com ¿É·ÃÎÊPC3·þÎñÆ÷£»www.123.com¿É·ÃÎÊPC4·þÎñÆ÷£© £¨PC1¡¢PC2Ö®ËùÒÔ¿ÉÒÔ·ÃÎÊHTTP·þÎñÆ÷£¬ÒòΪPC4ÔÚÕâÀï³Ðµ£DNS·þÎñÆ÷£© ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
Packet Tracer5.2ʵÑéÎļþÏÂÔØ
- 9 -
1.5±¶£»Ê×ÐÐËõ½ø£º2×Ö·û£»ÌâÄ¿×ÖÌ壺3ºÅºÚÌ壬µ¥±¶ÐоࣻÕ½Ú×ÖÌ壺4ºÅºÚÌ壬µ¥±¶Ðоࡣ
ÍøÂçÅäÖãº×ۺϷÓÉʵÑé1¡ª¡ª¿¼²ìµ¥±Û·ÓÉ¡¢¾²Ì¬Â·ÓÉ֪ʶµã
2009Äê11ÔÂ09ÈÕ ÐÇÆÚÒ» 15:09
ʵÑé»·¾³£º
ijһ¹«Ë¾ÄÚÓÐÏúÊÛ²¿ºÍ²ÆÎñ²¿Á½¸ö²¿·Ö£¬·Ö´¦²»Í¬ÐéÄâ¾ÖÓòÍø£¬ÏÖÒªÇóʵÏÖͨÐÅ£¬Í¨¹ýµ¥±Û·ÓÉÍê³ÉÏúÊÛ²¿¡¢²ÆÎñ²¿Á½²¿ÃÅͨÐÅÎÊÌ⣻
¹«Ë¾Í¨¹ýÒ»ÌõDDNרÏßרÏßÓëISPͨÐÅ£¬ÏÖÔÚÒªÇóPC1¡¢PC2Óë×Ó¹«Ë¾µÄ·þÎñÆ÷PC3ºÍ·þÎñÆ÷PC4ʵÏÖͨÐÅ¡£ÔÚ·þÎñÆ÷PC3ºÍ·þÎñÆ÷PC4ÉÏÅäÖÃDNS¡¢HTTP·þÎñÆ÷¡£(Pc4³Ðµ£DNS¡¢HTTP·þÎñÆ÷£¬PC3Ö»³Ðµ£HTTP·þÎñÆ÷¡£)
ÏÖÔÚÒªÇóÔÚR1¡¢R2¡¢R3ºÍR4ÉÏʵÏÖ¾²Ì¬Â·ÓÉ¡£¹«Ë¾ÄÚ²¿½»»»»úSW2ÉÏÅäÖÃVLAN£¬Íâ²¿ÍøÂçµÄ½»»»»ú²»×öÈκÎÅäÖã¬Ö»³Ðµ£¼¶Áª×÷Óá£ ÍøÂçÍØÆË£º
ʵÑé²½Ö裺
Ò»¡¢Ö÷»ú¼°·þÎñÆ÷IPµØÖ·¡¢×ÓÍøÑÚÂ롢ĬÈÏÍø¹Ø¡¢DNS·þÎñÆ÷
PC1 ¡ª¡ª 192.168.1.2/24 255.255.255.0 192.168.1.1 192.168.7.2 PC2 ¡ª¡ª 192.168.2.2/24 255.255.255.0 192.168.2.1 192.168.7.2 ·þÎñÆ÷PC3¡ª¡ª 192.168.5.2/24 192.168.5.1 ·þÎñÆ÷PC3µÄHTTP·þÎñµÄIndex.htmlÎļþ
- 10 -
1.5±¶£»Ê×ÐÐËõ½ø£º2×Ö·û£»ÌâÄ¿×ÖÌ壺3ºÅºÚÌ壬µ¥±¶ÐоࣻÕ½Ú×ÖÌ壺4ºÅºÚÌ壬µ¥±¶Ðоࡣ
Quick Links:
A small page
Copyrights
Image page
Image
·þÎñÆ÷PC4 ¡ª¡ª 192.168.7.2/24 255.255.255.0 ·þÎñÆ÷PC4µÄHTTP·þÎñµÄIndex.htmlÎļþ
Quick Links:
A small page
Copyrights
Image page
Image
·þÎñÆ÷PC4µÄDNS·þÎñÅäÖüǼ
www.123.com A Record 192.168.7.2 www.abc.com A Record 192.168.5.2
¶þ¡¢¹«Ë¾ÄÚSW2ÅäÖà SW2#show running-config Building configuration...
Current configuration : 1021 bytes !
version 12.1
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname SW2 !
- 11 -
1.5±¶£»Ê×ÐÐËõ½ø£º2×Ö·û£»ÌâÄ¿×ÖÌ壺3ºÅºÚÌ壬µ¥±¶ÐоࣻÕ½Ú×ÖÌ壺4ºÅºÚÌ壬µ¥±¶Ðоࡣ
! !
interface FastEthernet0/1 switchport mode trunk !
interface FastEthernet0/2 switchport access vlan 10 !
interface FastEthernet0/3 switchport access vlan 20 !
interface FastEthernet0/4 !
interface FastEthernet0/5 !
interface FastEthernet0/6 !
interface FastEthernet0/7 !
interface FastEthernet0/8 !
interface FastEthernet0/9 !
interface FastEthernet0/10 !
interface FastEthernet0/11 !
interface FastEthernet0/12 !
interface FastEthernet0/13 !
interface FastEthernet0/14 !
interface FastEthernet0/15 !
interface FastEthernet0/16 !
interface FastEthernet0/17 !
interface FastEthernet0/18 !
interface FastEthernet0/19 !
interface FastEthernet0/20 !
interface FastEthernet0/21
- 12 -