虚拟局域网(VLAN
 
实验要求:
1.      Vlan 2,命名为abc
2.      f0/1加入到Vlan 2中。
3.      使用TFTP 下载IOS
4.      使用TELNET进行管理。
 
拓扑图:
 
 
实验步骤:
打开超级终端后开始输入命令。
1.      Switch>en
Switch# conf t
Switch(config)#vlan 2
Switch(config-vlan)#name abc
Switch(config-vlan)#exit
Switch(config)#exit
Switch#show vlan
如确实看到下表中显示出已经改名为abcVlan2则正确!
2.      Switch#conf t
Switch(config)#interface f0/1
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#exit
Switch#show vlan
如在下表中确实看到Vlan2的右边有显示端口为f0/1则正确!
3.      Switch#conf t
Switch(config)#inter vlan 2
Switch(config-if)#ip address 192.168.100.10 255.255.255.0
Switch(config-if)#exit
Switch(config)#exit
然后右击桌面上的网上邻居属性——右击本地连接属性——常规——Internet协议(TCP/IP——右下点击属性——常规——使用下面的IP地址:输入IP地址为192.168.100.5,子网掩码为255.255.255.0——确定——关闭。
回到超级终端输入:
Switch#sh run
查到要下载的文件名为:flash:/c2950-ibq412-mz.121-22.EA4.bin
Switch#copy flash tftp
Source filename[]?把上面显示的文件名粘贴到这里。
Address or name of remote host[]?192.168.100.5
Destination filename[flash:/c2950-ibq412-mz.121-22.EA4.bin]?这里直接回车。
如看到一连串的#########即表示正在下载,则正确!
4.      Switch#conf t
Switch(config)#line vty 0 4
Switch(config-line)#password 123456
Switch(config-line)#login
Switch(config)#en secret cisco
按开始菜单弹出运行后,输入cmd,弹出命令框,输入:
telnet 192.168.100.10
Password123456(它不会真的显示出来,不要打错!)
Switch>en
Passwordcisco(同样不会显示出来!)
Switch#sh run
看完表最后出现#则正确!