cisco?·óé????μ??ù±?????ê??é
ó2?t?·?3£o6ì¨pc?ú£?3ì¨?????ú£?3ì¨?·óé£?3?ù??2???£?7?ù?±í¨???£
èí?t?·?3£owindows xp 2ù×÷?μí3 3????????£
êμ?é2??è£o
1.°′????í?á??ó?????ú£??·óé?÷£?pc?úμ?êy?y???£
pc1?----¨¤sw1 7o????ú pc2?----¨¤sw2 7o????ú
pc3?----¨¤sw1 17o????ú pc4?----¨¤sw2 17o????ú
pc5?----¨¤sw3 5o????ú pc6?----¨¤sw3 12o????ú
sw1 24o????ú?----¨¤sw2 24o????ú
sw1 23o????ú?----¨¤router1 e0/0???ú
router1 e1/1???ú?----¨¤router2 e0/0???ú
router2 e1/2???ú?----¨¤router3 e1/1???ú
router3 e0/0???ú?----¨¤switch3 24o????ú
2.switch1μ?????è???£o
switch>enable
switch#config terminal
switch(config)#hostname sw1
sw1(config)#no ip domain-lookup
sw1(config)#line console 0
sw1(config-line)#exec-timeout 0 0
sw1(config-line)#logging synchronous
sw1(config-line)#enable password 123
sw1(config)#exit
sw1(config)#vlan database
sw1(vlan)#vtp domain abc.com
sw1(vlan)#vtp password cisco
sw1(vlan)#exit
sw1#config terminal
sw1(config)#interface f0/23
sw1(config-line)#switch mode trunk
sw1(config-line)#no shutdown
sw1(config-line)#interface f0/24
sw1(config-line)#switch mode trunk
sw1(config-line)#no shutdown
sw1(config-line)#exit
sw1(config)#vlan 2,3
sw1(config)#interface range f0/1-10
sw1(config-if-range)#switchport access vlan 2
sw1(config-if-range)#interface range f0/11-22
sw1(config-if-range)#switch port access vlan 3
3.switch2????è???£o
switch>enable
switch#config terminal
switch(config)#hostname sw2
sw2(config)#no ip domain-lookup
sw2(config)#line vty 0 4
sw2(config-line)#login
sw2(config-line)#password cisco
sw2(config-line)#exit
sw2(config)#line console 0
sw2(config-line)#exec-timeout 0 0
sw2(config-line)#logging synchronous
sw2(config-line)#exit
sw2#vlan database
sw2(vlan)#vtp mode client(dé?a?ú?d?avtp client)
sw2(vlan)#vtp domain benet.com
sw2(vlan)#vtp password 123
sw2(vlan)#exit
sw2#config terminal
sw2(config)#interface range f0/1 - 10
sw2(config-if-range)#switchport access vlan 2
上一篇: 10Gb以太网和双绞线铜缆的应用