實驗目的:在交換機上配置Telnet。
實驗原理:在兩臺路由器上配置VLAN和IP,用雙絞線把兩臺路由器的端口連接起來,配置VLAN和IP,最後可以在這兩臺路由器上中的任何一臺上登錄上另一臺路由器。
實驗儀器:路由器兩臺
實驗方法及步驟:
Router>enable ...................................進入路由器的特權模式
Router#configure terminal ................................進入路由器的全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f0/0 ...............................進入路由器的f0/0端口
Router(config-if)#ip address 192.168.1.1 255.255.255.0 ...配置路由器f0/0端口的Ip地址
Router(config-if)#no shutdown .......................啓用f0/0端口
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#end ..............................退出配置模式
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 4 ...................進入路由器的VTY虛擬終端
Router(config-line)#password homechen
Router(config-line)#login .....................以上兩行配置VTY(即telent)的密碼
Router(config-line)#exit
Router(config)#enable password homechen ..............配置進入路由器特權模式的密碼
Router(config)#end
實驗記錄:
6.實驗結果:Telnet適合網絡覆蓋面積大的路由與交換。