1. 程式人生 > >Huawei交換機簡單配置命令

Huawei交換機簡單配置命令

服務器端 cli interface 定義 lin ice nic ftp batch

sysname:設備命名
vlan batch vlanid vlanid:定義vlan
vlan vlanid/description:註釋vlan
port-group groupname:定義端口組
group-member:端口加人端口組
port link-type access trunk hybrid:設置端口模式
port default vlan vlanid:設置access vlan
端口類型 收發 描述
Access 收報文 判斷是否有VLAN信息:如果沒有則打上端口的PVID,並進行交換轉發,如果有則直接丟棄(缺省)
發報文 將報文的VLAN信息剝離,直接發送出去
Trunk 收報文 收到一個報文,判斷是否有VLAN信息:如果沒有則打上端口的PVID,並進行交換轉發,如果有判斷該trunk端口是否允許該 VLAN的數據進入:如果可以則轉發,否則丟棄
發報文 比較端口的PVID和將要發送報文的VLAN信息,如果兩者相等則剝離VLAN信息,再發送,如果不相等則直接發送
Hybrid 收報文 收到一個報文判斷是否有VLAN信息:如果沒有則打上端口的PVID,並進行交換轉發,如果有則判斷該hybrid端口是否允許該VLAN的數據進入:如果可以則轉發,否則丟棄
發報文 判斷該VLAN在本端口的屬性(disp interface 即可看到該端口對哪些VLAN是untag, 哪些VLAN是tag)如果是untag則剝離VLAN信息,再發送,如果是tag則直接發送
interface vlan vlanid:配置vlan Interface
ip route-static:設置缺省路由
user-interface vty 0 4:配置遠程端口
authentication-mode:設置驗證模式,一般aaa
protocol inbound all(ssh telnet):設置允許的協議
telnet server enable
stelnet server enable
ssh user UsrName authentication-type password service-type stelnet(sftp scp):ssh用戶驗證模式及使用服務
rsa:生成key
ssh client first-time enable:允許使用ssh
aaa:配置aaa
local-user UsrName password cipher ClearText privilege 15 service-type telnet ssh http:配置用戶
ntp客戶端:ntp trusted authentication-keyid 1
ntp unicast-server 10.100.1.1

Cisco NTP配置:

服務器端:

ntp authentication-key 1 md5 cisco

ntp authenticate

ntp trusted-key 1

ntp source Vlan10

ntp master 8

ntp update-calendar

客戶端:

ntp authentication-key 1 md5 cisco

ntp authenticate

ntp trusted-key 1

ntp source Vlan10

ntp server 192.168.10.254 key 1

設置時間:

clock set hh:mm:ss dd Month year

clock set timezone

sh clock

Huawei交換機簡單配置命令