實驗一:交換機和路由器的基本配置

1.實驗拓撲
在這裏插入圖片描述
2.實驗步驟

①	:交換機,路由器的各種模式
Switch>en 用戶模式
Switch#conf t特權模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/1全局模式
Switch(config-if)#exit接口模式
Switch(config)#line console 0進入控制檯線路配置模式
Switch(config-line)#
Switch(config)#int vlan 1進入vlan模式

②	:Line模式配置
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line vty 4將line vty數目增加到4
Router(config)#line console 0進入控制檯線路配置模式
Router(config-line)#speed 17600設置控制檯速率爲57600
 Router(config-line)#end回到特權模式
③	:掌握幫助信息的使用方法
Router#?列出每個命令模式支持的命令
Router#show ?提示下一個關鍵字
Router#di?簡寫命令
④	:顯示密碼
Switch(config)#enable password 8989
Switch(config)#no enable password
隱式密碼
Switch(config)#enable secret 888
⑤	掌握歷史命令的使用方法
Router(config)#line vty 0 4  進入線路配置模式
Router(config-line)#history size 10 設置歷史記錄命令爲10Router(config-line)#exit返回全局模式
Router(config)#router rip進入路由配置模式
Router(config-router)#ip route 192.168.10.0 255.255.255.0 10.1.1.2
Router(config)#ip route 192.168.20.0 255.255.255.0 10.1.1.2
Router(config)#ip route 192.168.30.0 255.255.255.0 10.1.1.2
這些地址使用箭頭↑快捷鍵
⑥	:Switch#:Show running-config
Building configure:表示讀取信息
 Show startup-config
Using 1769 type(當前存放的字節數)
Fastethernet0/3 is up  表示當前端口列入爲開啓狀態
Line protlcol  is up表示物理端口已經打開,邏輯鏈路也是開啓狀態
Full-duplex(全雙工) 100MB/s每秒百兆
Minute input rate 0/bits/sec 平均速率接口流量統計結果
Enable password設置登錄密碼(明文)enable secret(密文)entconfigure :1796配置文件大小
⑦	:遠程登錄過程
配置交換機Telnet功能

Switch(config)#line vty 0 4允許5個用戶登錄Switch(config-line)#login
% Login disabled on line 1, until 'password' is set
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
Switch(config-line)#password 123設置登錄密碼
Switch(config-line)#end
Switch#conf t進入全局模式
Switch(config)#int vlan 1進入vlan模式
Switch(config-if)#ip add 192.168.1.1 255.255.255.0配置IP地址
Switch(config-if)#no shut
Switch(config-if)#end
配置路由器Telnet功能
Router>en進入特權模式
Router#conf t進入全局模式
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable secret 123設置特權模式加密密碼
Router(config)#line vty 0 4允許5個用戶登錄
Router(config-line)#login啓動登錄進程
% Login disabled on line 194, until 'password' is set
% Login disabled on line 195, until 'password' is set
% Login disabled on line 196, until 'password' is set
% Login disabled on line 197, until 'password' is set
% Login disabled on line 198, until 'password' is set
Router(config-line)#password 123設置登錄密碼
Router(config-line)#exit返回全局模式
Router(config)#int f0/0進入f0/0接口
Router(config-if)#ip add 192.168.1.3 255.255.255.0設置接口地址
Router(config-if)#no shut打開接口
⑧	:traceroute命令
Router#traceroute 192.168.1.2

3.實驗結果
掌握交換機的基本配置命令
配置交換機Telnet功能
在這裏插入圖片描述
配置路由器Telnet遠程登陸
在這裏插入圖片描述
掌握查看已配置信息的命令
在這裏插入圖片描述

閱讀原文

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章