1、system-view 進(jìn)入系統(tǒng)視圖
2、sysname R1 配置路由器名字為R1
3、display clock 查看當(dāng)前系統(tǒng)時間
4、clock datetime 00:00:00 2/26/2023 用戶模式下修改系統(tǒng)時間
配置控制臺密碼 Console:
1、user-interface aux0 在系統(tǒng)模式下進(jìn)入圖接口
2、authentication-mode passwd 登錄方式為密碼登錄
3、set authentication passwd simple xxxxxx 配置登錄密碼
配置遠(yuǎn)程登錄信息
1、user-interface vty 0 4 進(jìn)入Telnet配置
備注:VT的編號為0-4,第一個登陸的遠(yuǎn)程用戶為VTY0,第二個VTY1,以此類推,可以選擇配置VTY編號
2、authentication-mode scheme 登錄方式為用戶名密碼
備注:VTY用戶界面視圖配置驗證方式。這里有三種方式可以選擇,關(guān)鍵字none表示不需要驗證,password為單純的密碼驗證,關(guān)鍵字為scheme表示使用用戶名密碼驗證。
3、set authentication passwd simple xxxxxx 配置密碼為xxxxx
4、user level-15 配置用戶登錄后級別為15
配置接口信息
1、interface GigabitEthernet0/0 進(jìn)入接口G0/0
2、ip add xxxxxxx /24 為接口配置IP地址、質(zhì)網(wǎng)掩碼
3、undo shutdown 路由器接口默認(rèn)是關(guān)閉的,需要手動開啟
4、interface LoopBack0 創(chuàng)建回環(huán)口,這個是自動開啟的不許手動開啟
5、iP add 10.10.10.10 255.255.255.255 配置IP地址和質(zhì)網(wǎng)掩碼
保存配置
1、save 保存當(dāng)前配置,如果不保存斷電后就不會有了,所以一定記得保存一下(保存在用戶視圖模式輸入)
查看路由器版本信息
display? version? 查看路由器版本信息(在用戶視圖下使用)
查看路由器當(dāng)前配置信息
1、display current-configutafion 查看路由器配置信息(在用戶視圖下輸入)
查看路由器啟動配置信息
1、pisplay startup 查看路由器啟動配置信息(在用戶視圖下輸入)
查看摸個接口信息
1、display interface GigabitEthernet x/x?? 查看某個接口信息(在用戶視圖下輸入)
查看串行接口信息
1、display GigabitEthernet sx/x? 查看串行接口信息(在用戶視圖模式下輸入)
查看所有接口簡要信息
1、display interface brief 查看所有接口簡要信息(在用戶視圖下輸入)
通過Telnet與SSH訪問H3C路由器
1、telnet server enable 在路由器上開啟Telnet服務(wù)
2、local user xxx 創(chuàng)建一個用戶
3、passwd simple xxxxxx 配置登錄密碼
4、server-type telnet 登錄方式為Telnet
驗證SSH功能
1、ssh server enable 開啟路由器ssh功能
2、local-user xxx 創(chuàng)建用戶
3、passwd simple xxxxxx 配置登錄密碼
4、server-type ssh 登錄方式為ssh文章來源:http://www.zghlxwxcb.cn/news/detail-449861.html
5、public-key local create rsa 生成RSA密碼 (在用戶視圖下輸入)文章來源地址http://www.zghlxwxcb.cn/news/detail-449861.html
到了這里,關(guān)于H3C路由器基本配置命令的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!