#基礎(chǔ)
##1.console口:帶外
##2.基于網(wǎng)絡(luò):帶外、帶內(nèi)(用戶所使用的網(wǎng)絡(luò);配置telnet、ssh登錄、Web頁面)
##3.視圖
###1>設(shè)備開機后進入配置窗口VRP: 此時是屬于用戶視圖,能查看,權(quán)限低
###2>輸入system view,或者簡化sy:[Huawei]此時是系統(tǒng)視圖 可配置、進入端口配置等
###3>接口視圖:
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]
###4>協(xié)議視圖:
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]
##4.基礎(chǔ)配置
###1>時間配置:在用戶視圖下
display clock 初始查看時間
2022-11-28 10:48:45 此時此刻
Monday 星期
Time Zone(China-Standard-Time) : UTC-08:00 時區(qū)
clock timezone BJ add 8:00:00 配置時區(qū) BJ可換成時區(qū)數(shù)字
clock datetime 10:51:10 2022-11-28 配置時間
dis clock
2022-11-28 10:51:14
Monday
Time Zone(BJ) : UTC+08:00
###2>登陸提示,在系統(tǒng)模式下配置
####有密碼驗證
[Huawei]header login information #User login#
q
Configuration console exit, please press any key to log on
User login
Login authentication
Password:
####進入系統(tǒng)就提示
[Huawei]header shell informationuserlogin2
[Huawei]q
q
Configuration console exit, please press any key to log on
User login
Login authentication
Password:
Password:
userlogin2
####使用文本中信息
不管是有無密碼驗證,都可以使用文本內(nèi)容做提示信息
[Huawei]header login ? 登錄提示
file Specify filename of banner 使用文本內(nèi)容提示
information Specify information of banner 直接寫提示信息
[Huawei]header shell ? 進入設(shè)備提示
file Specify filename of banner 使用文本內(nèi)容提示
information Specify information of banner 直接寫提示信息
###修改設(shè)備名稱
[Huawei]sysname yanzhengzhuji
[yanzhengzhuji]
##5.用戶等級
等級 | 命令執(zhí)行 |
---|---|
0-訪問 | 只執(zhí)行0級命令 |
1-監(jiān)控 | 只執(zhí)行0和1級命令 |
2-配置 | 只執(zhí)行0、1和2級命令 |
3-管理-15 | 自定義執(zhí)行全部命令 |
##6.接口登錄配置
默認情況(display current-configuration )console、ssh等方式登錄是沒有密碼驗證
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
[Huawei]user-interface ? 登錄方式
INTEGER<0,129-149>The first user terminal interface to be configured
console Primary user terminal interface console口
current The current user terminal interface
maximum-vty The maximum number of VTY users, the default value is 5
tty The asynchronous serial user terminal interface 使用telnet ssh 虛擬邏輯線路
vty The virtual user terminal interface 專用終端服務(wù)器
###1.接口下的基礎(chǔ)配置
以下基礎(chǔ)配置對端即可使用telnet登錄 但是telnet默認等級是1
[Huawei]user-interface vty 0 5
[Huawei-ui-vty0-4] idle-timeout 0 0 登錄超時時間
[Huawei-ui-vty0-4]screen-length 10 使用vty方式登錄的用戶屏顯多少條
[Huawei-ui-vty0-4]history-command max-size 10歷史命令緩存大
== [Huawei-ui-vty0-4]set authentication password cipher suibian 創(chuàng)建密碼suibian
[Huawei-ui-vty0-4]authentication-mode password 此命令也可創(chuàng)建命令
==驗證
telnet 10.1.1.1
Press CTRL_] to quit telnet mode
Trying 10.1.1.1 …
Connected to 10.1.1.1 …
Login authentication
Password:
sy
^
Error: Unrecognized command found at ‘^’ position.
[Huawei-ui-vty0-4]set authentication password cipher suibian 創(chuàng)建密碼suibian
驗證不成功,需要在接口下將telnet用戶等級提升到3
telnet 10.1.1.1
Press CTRL_] to quit telnet mode
Trying 10.1.1.1 …
Connected to 10.1.1.1 …
Login authentication
Password:
sy
Enter system view, return user view with Ctrl+Z.
[yanzhen]
###7.AAA認證
####1.aaa配置
[yanzhen]aaa
[yanzhen-aaa]local-user ssh password cipher huawei
Info: Add a new user.
[yanzhen-aaa]local-user ssh privilege level 3
[yanzhen-aaa]local-user ssh service-type ssh
[yanzhen-aaa]dis th
[V200R003C00]
aaaauthentication-scheme default此處標記為刪除文本是aaa配置中已有內(nèi)容
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %
%
K8m.Nt84DZ}e#<0`8bmE3Uw}%
%
local-user admin service-type http
==local-user ssh password cipher %$%KaTeX parse error: Undefined control sequence: \4 at position 23: …Lu"g@D=Kf@
local-user ssh service-type ssh == 此處是ssh登錄配置的用戶名密碼
local-user telnet password cipher ~~%
%
KD#HPz-314IHHmIHM=S/)+ji%
%
~~此處配置為密碼 查詢之后密碼已被加密
local-user telnet privilege level 3
local-user telnet service-type telnet 此處加粗是給telnet服務(wù)配置的賬戶和密碼
local-user console password cipher %
%
E*UiV\VnpAx%XM.(L/#H)*2p%
%
local-user console privilege level 3此處標記內(nèi)容是console登錄配置賬戶和密碼
驗證:
console口登錄
vty登錄–telnet
ssh登錄配置
被控端
[yanzhen]rsa local-key-pair create 創(chuàng)建公鑰密鑰
The key name will be: Host
% RSA keys defined for Host already exist.
Confirm to replace them? (y/n)[n]:y標黃部分是需要填寫的
The range of public key size is (512 ~ 2048).給出公鑰大小范圍
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 512]:512默認是512
Generating keys…
…++++++++++++
…++++++++++++
…++++++++
.++++++++
[yanzhen]user-interface vty 0 4
[yanzhen-ui-vty0-4]protocol inbound ssh #允許進入的協(xié)議ssh就不允許telnet登錄,不寫這句驗證不過去
[yanzhen]ssh user ssh authentication-type password 使用ssh協(xié)議登錄的用戶ssh驗證類型密碼 必須寫
Authentication type setted, and will be in effect next time
[yanzhen]stelnet server enable 開啟ssh服務(wù) 必須寫
Info: Succeeded in starting the STELNET server.
[yanzhen]
驗證
客戶端:
[PC]ssh client first-time enable 必須寫
被控端可使用display users 查看有哪些用戶以什么方式登錄
dis users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
0 CON 0 00:00:00 pass
Username : console
129 VTY 0 00:01:42 TEL 10.1.1.2 pass
Username : telnet
[server]dis users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
[server]dis users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
0 CON 0 00:00:00 pass
Username : Unspecified
129 VTY 0 00:00:03 SSH 10.1.1.2 pass
Username : ssh
##8.相關(guān)文件及其命令
###1.操作命令
pwd 當前位置
flash:
dir 查看目錄
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Nov 29 2022 01:31:38 dhcp
1 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
2 -rw- 540 Nov 29 2022 07:04:05 rsa_server_key.efs
3 -rw- 396 Nov 29 2022 07:04:02 rsa_host_key.efs
4 -rw- 2,263 Nov 29 2022 06:59:17 statemach.efs
5 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (784,456 KB free)
copy portalpage.zip portalpage.zip.bak 復(fù)制portalpage.zip到當前目錄下并命名為portalpage.zip.bak
Copy flash:/portalpage.zip to flash:/portalpage.zip.bak? (y/n)[n]:y
Info: Copied file flash:/portalpage.zip to flash:/portalpage.zip.bak…Done
dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Nov 29 2022 01:31:38 dhcp
1 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
2 -rw- 540 Nov 29 2022 07:04:05 rsa_server_key.efs
3 -rw- 396 Nov 29 2022 07:04:02 rsa_host_key.efs
4 -rw- 121,802 Nov 29 2022 07:10:08 portalpage.zip.bak
5 -rw- 2,263 Nov 29 2022 06:59:17 statemach.efs
6 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (784,332 KB free)
copy flash:/portalpage.zip flash:/1.zip
Copy flash:/portalpage.zip to flash:/dhcp/1.bak? (y/n)[n]:y
move dhcp/dhcp-duid.txt flash:/1.bak 移動且重命名
Move flash:/dhcp/dhcp-duid.txt to flash:/1.bak? (y/n)[n]:y
%Moved file flash:/dhcp/dhcp-duid.txt to flash:/1.bak.
###2.配置文件
1.配置內(nèi)容內(nèi)容 內(nèi)存中生效 開關(guān)機后失效:
display current-configuration
2.save保存之后 開關(guān)機不失效
*save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
.
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
查看目錄其中vrpcfg.zip
9 -rw- 642 Nov 29 2022 07:41:40 vrpcfg.zip
是保存的配置文件
查看已經(jīng)保存的配置文件
display saved-configuration
查看啟動配置
display startup
MainBoard:
Startup system software: 本次啟動使用的操作系統(tǒng) null
Next startup system software: 下次啟動使用的操作系統(tǒng) null
Backup system software for next startup: 備份操作系統(tǒng)為下次啟動 null
Startup saved-configuration file: 本次啟動使用的配置文件flash:/vrpcfg.zip
Next startup saved-configuration file:下次啟動使用的配置文件 flash:/vrpcfg.zip
Startup license file: null
Next startup license file: null
Startup patch package: 本次加載補丁文件 null
Next startup patch package: null
Startup voice-files: null
Next startup voice-files: null
配置下次啟動時使用的配置文件:
startup saved-configuration vrpcfg-1.zip
比較當前和下次啟動配置文件的差異
compare configuration
#傳輸介質(zhì)
##1.同軸電纜:容易被干擾
可用于模擬信號和數(shù)字信號的傳輸
最重要的應(yīng)用有線電視傳播、長途電話傳輸、計算機系統(tǒng)之間的==短距離==連接以及局域網(wǎng)等。
稱為細纜網(wǎng)
a) 10base2—10M---185米-----BNC接頭-
b) 10base5—10M—500米-----N型接頭
##2.雙絞線
不僅可以抵御一部分來自外界的電磁波干擾,也可以降低多對絞線之間的相互干擾。
a)屏蔽雙絞線(STP)—數(shù)據(jù)傳輸?shù)你~質(zhì)雙絞線
b) 非屏蔽雙絞線 utp
c)雙絞線的做法:
線序:
標準568B:橙白-1,橙-2,綠白-3,藍-4,藍白-5,綠-6,棕白-7,棕-8。
標準568A:綠白-1,綠-2,橙白-3,藍-4,藍白-5,橙-6,棕白-7,棕-8。
1》4類 5類 100M
1、2、3、6通 4、5、7、8屏蔽電磁干擾
HUB 物理層/Switch 鏈路層(交換設(shè)備)
Router 網(wǎng)絡(luò)層(路由設(shè)備):和其他設(shè)備相連使用直通線
交換設(shè)備之間、路由設(shè)備之間使用交叉線
交換設(shè)備和路由設(shè)備之前使用直通線
交叉線是用于同類型的兩臺交換機,主要作用于PC,HUB,HUB交換器,交換器這幾種兩臺同樣的網(wǎng)絡(luò)設(shè)備之間的連線
直通線則是主要用于交換機和別的網(wǎng)絡(luò)設(shè)備。主要則是用于路由器和交換機,或PC和交換機,以及別的一些網(wǎng)絡(luò)通迅設(shè)備和交換機之間的連線。
華為和H3C不區(qū)分直通線和交叉線,設(shè)備內(nèi)部電路做轉(zhuǎn)換
##3.光纖
a) 單模適合長距離傳輸,只能傳輸一個傳播模式的光纖,纖芯的直徑為8μm~10μm,常用的是9/125μm。
b) 多模局域網(wǎng)適合局域網(wǎng) 芯的直徑是50μm和62.5μm兩種, 大致與人的頭發(fā)的粗細相當。
說明:9/125μm指光纖的纖核為9μm,包層為125μm,9/125μm是單模光纖的
##4.串口電纜
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧
本文題目:是基礎(chǔ)吧~~~-創(chuàng)新互聯(lián)
文章分享:http://sd-ha.com/article32/ddoosc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、微信小程序、App開發(fā)、網(wǎng)站改版、營銷型網(wǎng)站建設(shè)、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容