亚洲一级簧片_性 毛片_国产乱子视频_久久影城_强伦女教师视频_成人精品久久

華為交換機命令

發布時間: 2023-08-01 12:15 閱讀: 文章來源:QUY513XUSR

交換機的基礎命令匯總

system-view 進入系統視圖

quit 退到系統視圖

sysname 交換機命名

vlan 20 創建vlan(進入vlan20)

display vlan 顯示vlan

undo vlan 20 刪除vlan20

display vlan 20 顯示vlan里的端口20

Interface e1/0/24 進入端口24

portlink-type access vlan 20 把當前端口放入vlan20

undo porte1/0/10 刪除當前VLAN端口10

display current-configuration 顯示當前配置

02

配置交換機支持TELNET

interfacevlan 1 進入VLAN1

ip address192.168.3.100 255.255.255.0 配置IP地址

user-interfacevty 0 4 進入虛擬終端

authentication-modepassword (aut password) 設置口令模式

setauthentication password simple 222 (set aut pass sim 222) 設置口令

userprivilege level 3(use priv lev 3) 配置用戶級別

dispcurrent-configuration (disp cur) 查看當前配置

display ipinterface 查看交換機VLANIP配置

resetsaved-configuration(reset saved) 刪除配置(必須退到用戶模式)

reboot重啟交換機

03

跨交換機VLAN的通訊

在sw1上:

vlan 10建立VLAN 10

interfacee1/0/5 進入端口5

Portdefault vlan 10 把端口5加入vlan10

vlan 20建立VLAN 20

interfacee1/0/15 進入端口15

portdefault vlan 20 把端口15加入VLAN20

interfacee1/0/24 進入端口24

portlink-type trunk 把24端口設為TRUNK端口

port trunkpermit vlan all 所有端口都能經過此路徑

在SW2上:

vlan 10建立VLAN 10

interfacee1/0/20 進入端口20

portdefault vlan 10 把端口20放入VLAN10

interfacee1/0/24 進入端口24

portlink-type trunk 把24端口設為TRUNK端口

port trunkpermit vlan all (port trunk permit vlan 10 只能為vlan10使用)24端口為所有VLAN使用

displayinterface e1/0/24 查看端口24是否為TRUNK

undo porttrunk permit vlan all 刪除該句

04

路由器的基礎命令匯總

dispaly version 顯示系統軟件版本及硬件信息

system-view 切換到系統視圖

quit 返回

interface +接口 進入接口視圖

ip address +IP +mask 配置IP和子網掩碼

return 返回用戶視圖

返回用戶視圖

sysname R1 修改路由器名稱為R1

display current-configuration 查看路由器當前配置

dispaly interface +接口查看路由器接口的狀態信息

save 保存當前配置

display ip interface brief 查看接口與IP相關摘要信息

display ip routing-table 查看路由表

05

telnet遠程登陸配置

user-interface vty 0 4 進入0~4前五個的VTY用戶界面進行整體配置

authentication-mode password 設置驗證方式為密碼

user privilege level 3 設置用戶登陸級別

aaa 進入aaa視圖

local-user admin password cipher hello privilege level 3在aaa視圖下設置賬號密碼和用戶級別

local-user admin service-type telnet 配置該用戶接入類型為aaa

q 退回到用戶視圖

user-interface vty 0 4 進入到VTY用戶視圖

authentication-mode aaa 設置驗證方式aaa

06

配置Stelnet

配置SSHserver:rsalocal-key-pair create 生成本地RSA主機密鑰對

display rsa local-key-pair public 查看本地密鑰對中的公鑰信息

user-interface vty 0 4 進入VTY用戶視圖

authentication-mode aaa 設置用戶驗證方式為aaa授權驗證方式

protocol inbound ssh 指定VTY用戶只支持ssh

q 返回到系統視圖

aaa 進入aaa視圖

local-user huawei1 password cipher huawei1 創建用戶和設置用戶密碼

local-user huawei1 service-type ssh 配置本地用戶接入類型為ssh

q 退回到用戶視圖

ssh user huawei1 authentication-type password新建ssh用戶指定ssh用戶認證方式為password

aaa 進入aaa視圖

local-user huawei1 privilege level 3 設置huawei1用戶級別為3級別范圍0~15

stelnet server enable 開啟ssh功能

display ssh user-information huawei1 查看ssh用戶配置信息不指定用戶默認查看所有用戶

display ssh server status 查看ssh服務器全局配置信息

07

STP配置和選路規則

stp enable 在交換機上啟用STP

stp mode stp

dis stp 查看stp配置

dis stp brief 查看接口摘要信息

stp priority 4096 修改交換機優先級為4096

stp root primary 設置交換機為主根交換機

stp root secondary 命令配置備份交換機

display stp interface Ethernet 0/0/2 查看e0/0/2接口的開銷值

int e0/0/2

stp cost 2000 配置接口e0/0/2的帶價值為2000

stp timer forward-delay 3000 修改STP的ForwardDelay時間為3000cs也就是30s

stp bridge-diameter 3 命令設置網絡的直徑為3

stp mode rstp 啟用RSTP使用RSTP可以縮短收斂時間

int e0/0/1

stp edged-port enable 配置接口e0/0/1為邊緣端口不參與生成樹的計算

08

配置MSTP多實例

stp region-configuration 進入MST域視圖

region-name huawei 配置MST域名為huawei

revision-level 1 配置MSTP的修訂級別為1

instance 1 vlan 10 指定VLAN10映射到MSTI1

active region-configuration 激活MST域配置

display stp region-configuration 查看交換機上當前生效的MST域配置信息

dis stp instance 0 brief 查看實例0中的生成樹狀態和統計的摘要信息

stp instance 2 priority 0 配置交換機成位實例2中的根交換機

09

RIP路由協議配置

rip 創建開啟協議進程

network + ip 對指定網段接口使能RIP功能IP地址是與路由器直連的網段

debugging rip 1 查看RIP定期更新情況

terminal debugging

terminal monitor 在屏幕上顯示debug信息

undo debugging rip 1undo debug all 命令關閉debug調試功能

在上面的配置基礎上配置RIP2

rip 進入子視圖模式

version 2 配置版本

或者直接配置

rip 1

version 2

network + ip

10

OSPF單區域配置

ospf 1 進入ospf視圖1代表進程號

area 0 創建區域并進入OSPF區域視圖,輸入要創建的區域ID,骨干區域即區域0

network +IP +匹配碼

display ospf interface 命令查看OSPF接口通告是否正確、

display ospf peer 查看OSPF鄰居狀態

display ip routing-table protocol ospf 查看OSPF路由表

11

配置OSPF區域明文認證

ospf 1

area 1

authentication-mode simple plain huawei plain是口令以明文方式顯示

authentication-mode md5 1 huawei 配置區域密文認證

12

配置鏈路認證

int g0/0/1

ospf authentication-mode md5 1 huawei 在一條鏈路中的兩個接口配置要相同

13

配置抑制接口

ospf 1

silent-interface GigabitEthernet 0/0/1 禁止接口g0/0/1接收和發送ospf報文

14

技巧對多個接口配置接口抑制

ospf 1

silent-interface all 抑制所有接口

un

display ip routing-table 10.0.1.1 查看10.0.1.1所在網段的路由條目

15

基于接口修改

int g0/0/0

ospf network-type p2mp 修改ospf的網絡類型為多到多點

ospf network-type broadcast 修改ospf的網絡類型為廣播

ospf dr-priority 100 修改g0/0/0接口的DR優先級為100

reset ospf process 重啟ospf進程

ospf cost 1000 修改ospf的開銷值為1000

ospf timer hello 20 修改HELLO計時器為20s

ospf timer dead 80 修改dead計時器為80s

ospf 1

preference 110 修改ospf優先級為110值越大優先級越低

16

路由引入

ospf 1

import-route rip 1 在ospf進程中引入rip

default-route-advertise always 在ospf進程中引入默認路由

rip

import-route ospf 1 在rip進程中引入ospf

import-route ospf cost 3 ospf 引入rip時配置開銷值

default-route originate 在RIP進程中發布默認路由

17

vrrp(虛擬路由器冗余協議)基本配置

int g0/0/0

vrrp vrid 1 virtual-ip 172.16.1.254創建VRRP備份組,備份組號為1,配置虛擬IP為172.16.1.254

vrrp vrid 1 priority 120 修改優先級為120

display vrrp 查看vrrp信息

display vrrp brief

display vrrp interface g0/0/0 查看VRRP的工作狀態

18

配置VRRP多備份組

int g0/0/0

vrrp vrid 1 virtual-ip 172.16.1.254創建VRRP備份組,備份組號為1,配置虛擬IP為172.16.1.254

vrrp vrid 1 priority 120 修改優先級為120

vrrp vrid 2 virtual-ip 172.16.1.253創建VRRP備份組,備份組號為2,配置虛擬IP為172.16.1.253

int g0/0/0

vrrp vrid 1 virtual-ip 172.16.1.254創建VRRP備份組,備份組號為1,配置虛擬IP為172.16.1.254

vrrp vrid 2 virtual-ip 172.16.1.253創建VRRP備份組,備份組號為2,配置虛擬IP為172.16.1.253

vrrp vrid 2 priority 120 修改優先級為120

vrrp vrid 2 preempt-mode disable 開啟非搶占方式

19

配置VRRP的跟蹤接口及認證

int g0/0/1

vrrp vrid 1 track interface GigabitEthernet 0/0/0 reduced 50監視上行接口G0/0/0,當此接口斷掉時,裁減優先級50,使優先級為70

vrrp vrid 1 authentication-mode md5 huawei 認證配置

20

配置基本的訪問控制表

acl 2000 創建一個編號型ACL,基本ACL的范圍是2000~29999

rule 5 permit source 1.1.1.1 0指定規則ID為5,允許數據源地址為1.1.1.1的報文通過,反掩碼全為0,即精確匹配

rule 10 deny source any 指定ID為10,拒絕任意源地址的數據包通過

display acl all 查看設備上所有的訪問控制列表。

???展開全文
相關文章
主站蜘蛛池模板: 中文av电影 | 7777视频| 99国内精品 | 免费看av大片 | 国产伦精品一区 | 成人国产在线观看 | 狠狠综合久久 | 黄色毛片免费看 | 99re6热只有精品免费观看 | 日韩色在线 | 国产97在线观看 | 久久成人一区 | 日韩欧美中文在线 | 国产剧情一区二区 | 久久精品国产一区二区 | 成人午夜又粗又硬又大 | 精品99久久久 | 成人午夜在线观看 | 男女网站在线观看 | 69热视频在线观看 | www.91香蕉视频| 亚洲精品乱码久久久久久蜜糖图片 | 欧美视频网址 | 亚洲不卡视频 | 成年人黄色网址 | 99久久精品免费看蜜桃的推荐词 | 很黄很污的网站 | 曰本理伦片午夜理伦片 | 一区二区三区中文字幕 | 久久高清精品 | 精品国产不卡一区二区三区 | 久久久久久久久久久久久女国产乱 | 亚洲不卡在线 | 成人性生交大片免费看视频r | 热久久国产 | 久久久久国 | 国产精品黄视频 | 69亚洲视频 | 国产永久免费观看 | 最新日韩在线观看 | 亚洲精品久久久久国产 |