奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

華為認證

交換機基本配置命令

時間:2023-07-07 08:35:36 華為認證 我要投稿
  • 相關推薦

交換機基本配置命令大全

  你知道華為交換機怎么劃分VLAN嗎?基本配置命令是什么?下面yjbys小編為大家一一分享,希望大家好好學習,記下來對學習華為交換機有很大的幫助哦!

  一、單交換機VLAN劃分

  命令 命令解釋

  system 進入系統視圖

  system-view 進入系統視圖

  quit 退到系統視圖

  undo vlan 20 刪除vlan 20

  sysname 交換機命名

  disp vlan 顯示vlan

  vlan 20 創建vlan(也可進入vlan 20)

  port e1/0/1 to e1/0/5 把端口1-5放入VLAN 20 中

  disp vlan 20 顯示vlan里的端口20

  int e1/0/24 進入端口24

  port access vlan 20 把當前端口放入vlan 20

  undo port e1/0/10 表示刪除當前VLAN端口10

  disp curr 顯示當前配置

  二、配置交換機支持TELNET

  system 進入系統視圖

  sysname 交換機命名

  int vlan 1 進入VLAN 1

  ip address 192.168.3.100 255.255.255.0 配置IP地址

  user-int vty 0 4 進入虛擬終端

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

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

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

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

  disp ip int 查看交換機VLAN IP配置

  刪除配置必須退到用戶模式

  reset saved-configuration(reset saved) 刪除配置

  reboot 重啟交換機

  三、跨交換機VLAN的通訊

  在sw1上:

  vlan 10 建立VLAN 10

  int e1/0/5 進入端口5

  port access vlan 10 把端口5加入vlan 10

  vlan 20 建立VLAN 20

  int e1/0/15 進入端口15

  port access vlan 20 把端口15加入VLAN 20

  int e1/0/24 進入端口24

  port link-type trunk 把24端口設為TRUNK端口

  port trunk permit vlan all 同上

  在SW2上:

  vlan 10 建立VLAN 10

  int e1/0/20 進入端口20

  port access vlan 10 把端口20放入VLAN 10

  int e1/0/24 進入端口24

  port link-type trunk 把24端口設為TRUNK端口

  port trunk permit vlan all (port trunk permit vlan 10 只能為vlan

  10使用)24端口為所有VLAN使用

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

  undo port trunk permit vlan all 刪除該句

  四、路由的配置命令

  system 進入系統模式

  sysname 命名

  int e1/0 進入端口

  ip address 192.168.3.100 255.255.255.0 設置IP

  undo shutdown 打開端口

  disp ip int e1/0 查看IP接口情況

  disp ip int brief 查看IP接口情況

  user-int vty 0 4 進入口令模式

  authentication-mode password(auth pass) 進入口令模式

  set authentication password simple 222 37 設置口令

  user privilege level 3 進入3級特權

  save 保存配置

  reset saved-configuration 刪除配置(用戶模式下運行)

  undo shutdown 配置遠程登陸密碼

  int e1/4

  ip route 192.168.3.0(目標網段) 255.255.255.0 192.168.12.1(下一跳:下一路由器的接口) 靜態路由

  ip route 0.0.0.0 0.0.0.0 192.168.12.1 默認路由

  disp ip rout 顯示路由列表

  華3C AR-18

  E1/0(lan1-lan4)

  E2/0(wan0)

  E3/0(WAN1)

  路由器連接使用直通線。wan0接wan0或wan1接wan1

  計算機的網關應設為路由器的接口地址。

  五、三層交換機配置VLAN-VLAN通訊

  sw1(三層交換機):

  system 進入視圖

  sysname 命名

  vlan 10 建立VLAN 10

  vlan 20 建立VLAN 20

  int e1/0/20 進入端口20

  port access vlan 10 把端口20放入VLAN 10

  int e1/0/24 進入24端口

  port link-type trunk 把24端口設為TRUNK端口

  port trunk permit vlan all (port trunk permit vlan 10 只能為vlan

  10使用)24端口為所有VLAN使用

  sw2:

  vlan 10

  int e1/0/5

  port access vlan 10

  int e1/0/24

  port link-type trunk 把24端口設為TRUNK端口

  port trunk permit vlan all (port trunk permit vlan 10 只能為vlan

  10使用)24端口為所有VLAN使用

  sw1(三層交換機):

  int vlan 10 創建虛擬接口VLAN 10

  ip address 192.168.10.254 255.255.255.0 設置虛擬接口VLAN 10的地址

  int vlan 20 創建虛擬接口VLAN 20

  ip address 192.168.20.254 255.255.255.0 設置虛擬接口IP VLAN 20的地址

  注意:vlan 10里的計算機的網關設為 192.168.10.254

  vlan 20里的計算機的網關設為 192.168.20.254

  六、動態路由RIP

  R1:

  int e1/0 進入e1/0端口

  ip address 192.168.3.1 255.255.255.0 設置IP

  int e2/0 進入e2/0端口

  ip adress 192.168.5.1 255.255.255.0 設置IP

  rip 設置動態路由

  network 192.168.5.0 定義IP

  network 192.168.3.0 定義IP

  disp ip rout 查看路由接口

  R2:

  int e1/0 進入e1/0端口

  ip address 192.168.4.1 255.255.255.0 設置IP

  int e2/0 進入e2/0端口

  ip adress 192.168.5.2 255.255.255.0 設置IP

  rip 設置動態路由

  network 192.168.5.0 定義IP

  network 192.168.4.0 定義IP

  disp ip rout 查看路由接口

  (注意:兩臺PC機的網關設置PC1 IP:192.168.3.1 PC2 IP:192.168.4.1)

  七、IP訪問列表

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.168.1.1 255.255.255.0

  int e3/0

  ip address 192.168.2.1 255.255.255.0

  acl number 2001 (2001-2999屬于基本的訪問列表)

  rule 1 deny source 192.168.1.0 0.0.0.255 (拒絕地址192.168.1.0網段的數據通過)

  rule 2 permit source 192.168.3.0 0.0.0.255(允許地址192.168.3.0網段的數據通過)

  以下是把訪問控制列表在接口下應用:

  firewall enable

  firewall default permit

  int e3/0

  firewall packet-filter 2001 outbound

  disp acl 2001 顯示信息

  undo acl number 2001 刪除2001控制列表

  擴展訪問控制列表

  acl number 3001

  rule deny tcp source 192.168.3.0 0.0.0.255 destination 192.168.2.0 0.0.0.255

  destination-port eq ftp

  必須在r-acl-adv-3001下才能執行

  rule permit ip source an destination any (rule permit ip)

  int e3/0

  firewall enable 開啟防火墻

  firewall packet-filter 3001 inbound

  必須在端口E3/0下才能執行

  八、命令的標準訪問IP列表(三層交換機):

  允許A組機器訪問服務器內資料,不允許訪問B組機器(服務器沒有限制)

  sys

  vlan 10

  name server

  vlan 20

  name teacher

  vlan 30

  name student

  int e1/0/5

  port access vlan 10

  int e1/0/10

  port access vlan 20

  int e1/0/15

  port access vlan 30

  int vlan 10

  ip address 192.168.10.1 255.255.255.0

  undo sh

  int vlan 20

  ip address 192.168.20.1 255.255.255.0

  int vlan 30

  ip address 192.168.30.1 255.255.255.0

  acl number 2001

  rule 1 deny source 192.168.30.0 0.0.0.255

  rule 2 permit source any

  disp acl 2001 查看2001列表

  int e1/0/10

  port access vlan 20

  packet-filter outbound ip-group 2001 rule 1

  出口

  九、允許A機器訪問B機器的FTP但不允許訪問WWW,C機器沒有任何限制。

  vlan 10

  vlan 20

  vlan 30

  int e1/0/5

  port access vlan 10

  int e1/0/10

  port access vlan 20

  int e1/0/15

  port access vlan 30

  int vlan 10

  ip address 192.168.10.1 255.255.255.0

  undo sh

  int vlan 20

  ip address 192.168.20.1 255.255.255.0

  int vlan 30

  ip address 192.168.30.1 255.255.255.0

  acl number 3001

  rule 1 deny tcp source 192.168.30.0 0.0.0.255 destination 192.168.10.0

  0.0.0.255 destination-port eq www

  int e1/0/15

  packet-filter inbound ip-group 3001 rule 1

  進口

  十、NAT地址轉換(單一靜態一對一地址轉換)

  R1:

  sys

  sysname R1

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.1.1.1 255.255.255.0

  R2:

  sys

  sysname R2

  int e2/0

  ip address 192.1.1.2 255.255.255.0

  int e1/0

  ip address 10.80.1.1 255.255.255.0

  回到R1:

  nat static 192.168.3.1 192.1.1.1

  int e2/0

  nat outbound static

  ip route 0.0.0.0 0.0.0.0 192.1.1.2

  十一、NAT內部整網段地址轉換

  R1:

  sys

  sysname R1

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.1.1.1 255.255.255.0

  acl number 2008

  rule 0 permit source 192.168.3.0 0.0.0.255

  rule 1 deny

  quit

  int e2/0

  nat outbound 2008

  quit

  ip route-static 0.0.0.0 0.0.0.0 192.1.1.2 preference 60

  ↑

  下一個路由接口地址

  R2:

  sys

  sysname R2

  int e2/0

  ip address 192.1.1.2 255.255.255.0

  int e1/0

  ip address 10.80.1.1 255.255.255.0

  NAT地址池配置:

  R1:

  sys

  sysname R1

  int e1/0

  ip address 192.168.3.1 255.255.255.0

  int e2/0

  ip address 192.1.1.1 255.255.255.0

  nat address-group 1 192.1.1.1 192.1.1.5 配置地址池

  undo address-group 1 刪除地址池

  acl number 2001 創建訪問列表

  rule permit source 192.168.1.0 0.0.0.255

  允許192.168.1.0/24網段地址轉換(ethernet2/0指路由器wan口):

  int e2/0

  nat outbound 2001 address-group 1 啟用協議

  ip route 0.0.0.0 0.0.0.0 192.1.1.2 默認路由

  R2:

  sys

  sysname R2

  int e1/0

  ip address 10.80.1.1 255.255.255.0

  int e2/0

  ip address 192.1.1.2 255.255.255.0

  拓展

  一、交換機的基本配置模式:

  用戶模式:

  switch>

  特權模式:

  Switch#

  進入方法:在默認的用戶模式下輸入:enable進入。

  退出方法:輸:exit退回到用戶模式。

  注意用戶模式和特權模式的前面代碼的區別:一個是switch>;一個是Switch#。

  VLAN模式:

  Switch(vlan)#

  進入方法:從#模式輸入vlandatabase進入

  全局配置模式:

  Switch(config)#

  進入方法:從#模式輸入configterminal進入

  接口配置模式:

  Switch(config-if)#

  進入方法:從(config)#模式輸入interface+接口號進入

  終端線路配置模式:

  Switch(config-line)#

  進入方法:從(config)#模式輸入line+終端標識進入

  要記住這些交換機的配置模式,要知道如何進入和退出,也有能看懂當前處于哪個模式下,在所有模式中,輸入exit返回上級,輸入end或ctrl+z退出。

  二、VLAN的常用配置命令:

  交換機沒有被劃分VLAN的時候,交換機默認只有VLAN1,所有的端口都在VLAN1里面,所以我們是不能創建也不能刪除VLAN1的。

  創建VLAN

  Switch#vlandatabase(進入VLAN數據庫)

  Switch(vlan)#vlan10namevlan10

  switch(vlan)#vlan20namevlan20

  第一條命令:進入VLAN數據庫

  第二條命令:創建一個名稱為VLAN10的VLAN10

  第三條命令:創建一個名稱為VLAN20的VLAN20

  這里Name屬性最好定義一下,如果不定義會和默認VLAN名稱沖突,這樣一一對應比較好。

  端口劃入VLAN

  Switch(config)#interfacefa0/1

  Switch(config-if)#switchportaccessvlan10

  第一條命令的意思是:進入接口fa0/1,這里的0表示第1個插槽,1表示第2個端口。(設備第一個端口通常為0,第二個端口通常為1)。

  第二條命令:把fa0/1這個端口劃分給VLAN10這樣配置之后,接在這個端口的所有設備就屬于VLAN10了。

  查看VLAN信息

  Switch#showvlan查看所有VLAN信息

  Switch#showvlanid10查看vlan10的信息

  刪除VLAN

  switch#vlandatabase

  Switch(vlan)#novlan10

  刪除VLAN10后,所有分配給VLAN10的端口都變回非活動狀態,直到下次再次分配給別的VALN為止。

  一個VLAN可以有多個端口,如果要將某個端口從VLAN中刪除

  Switch(config)#interfacef0/2

  Switch(config-if)#noswitchportaccessvlan10

【交換機基本配置命令】相關文章:

華為3COM交換機配置命令詳解04-11

汽車音響基本配置種類12-19

配置顯示器顏色配置文件方法教程12-02

叉車的種類以及配置11-04

思科交換機產品介紹07-18

Linux常用命令匯總03-19

現在高配置臺式電腦11-04

園路的植物配置方法10-13

巧用ping命令檢查網絡故障12-05

CAD常用快捷鍵及命令大全04-29

主站蜘蛛池模板: 宣威市| 济阳县| 临猗县| 额尔古纳市| 邛崃市| 江西省| 岐山县| 武平县| 疏附县| 佛山市| 庆安县| 佛冈县| 陇西县| 石家庄市| 南阳市| 鲁甸县| 伊宁县| 杭州市| 新泰市| 乐平市| 宁化县| 阳新县| 双流县| 武冈市| 清新县| 栾川县| 武穴市| 邵阳县| 石狮市| 曲沃县| 玉溪市| 泌阳县| 达日县| 革吉县| 云南省| 攀枝花市| 富川| 九龙城区| 红桥区| 西吉县| 青海省|