實(shí)訓(xùn)二十、華為交換機(jī)的配置.ppt_第1頁
實(shí)訓(xùn)二十、華為交換機(jī)的配置.ppt_第2頁
實(shí)訓(xùn)二十、華為交換機(jī)的配置.ppt_第3頁
實(shí)訓(xùn)二十、華為交換機(jī)的配置.ppt_第4頁
實(shí)訓(xùn)二十、華為交換機(jī)的配置.ppt_第5頁
已閱讀5頁,還剩7頁未讀 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、實(shí)訓(xùn)二十、華為交換機(jī)的配置,重點(diǎn)內(nèi)容 華為交換機(jī)的基本配置命令; 掌握華為交換機(jī)的配置;,實(shí)訓(xùn)一、華為交換機(jī)的基本配置,一、配置PC機(jī)的IP地址 IP地址:172.16.1.5;子網(wǎng)掩碼:255.255.0.0; 網(wǎng)關(guān):172.16.1.1; 二、配置S3026交換機(jī) system Password: /輸入口令 Quidwaysysname S3026 /設(shè)置交換機(jī)名稱 S3026super password 111 /設(shè)置系統(tǒng)視圖口令 S3026user-interface vty 0 4 /進(jìn)入用戶界面視圖配置虛擬終端 S3026-ui-vty0-4authentication-mode

2、 password /設(shè)置驗(yàn)證方式為口令方式 S3026-ui-vty0-4set authentication-mode password simple 222 /設(shè)置口令為222 S3026-ui-vty0-4user privilege level 3 /設(shè)置用戶級別為3 S3026-ui-vty0-4quit /退回上一級模式 S3026quit /從系統(tǒng)視圖返回用戶視圖,system-view Password: /輸入“111”口令 S3026display currect-config /顯示配置信息 S3026interface vlan 1 /配置交換機(jī)的管理IP地址 S30

3、26-Vlan-interface1ip address 172.16.1.1 255.255.0.0 /為Vlan1配置IP地址 S3026-Vlan-interface1quit S3026ip route-static 0.0.0.0 0.0.0.0 172.16.1.2 /配置交換機(jī)的靜態(tài)路由 S3026ip default-gateway 172.16.1.2 /設(shè)置交換機(jī)默認(rèn)網(wǎng)關(guān) S3026dis curr S3026save /保存配置信息 三、驗(yàn)證測試 PCA:ping 172.16.1.1 PCA:telnet 172.16.1.1,實(shí)訓(xùn)二、華為交換機(jī)端口聚合的配置,一、配置

4、SwitchA交換機(jī) Quidwaysysname SwitchA /更改交換機(jī)名稱為SwitchA SwitchAinterface ethernet0/1 /進(jìn)入交換機(jī)e0/1端口 SwitchA-Ethernet0/1duplex full /設(shè)置端口工作模式為全雙工 SwitchA-Ethernet0/1speed 100 /設(shè)置端口速率為100Mbps SwitchA-Ethernet0/1port link-type trunk /設(shè)置該端口為trunk模式 SwitchA-Ethernet0/1port trunk permit vlan all /該trunk允許所有VLAN信

5、息通過 SwitchA-Ethernet0/1int e0/2 SwitchA-Ethernet0/2duplex full SwitchA-Ethernet0/2speed 100 SwitchA-Ethernet0/2port link-type trunk SwitchA-Ethernet0/2port trunk permit vlan all,二、配置SwitchB交換機(jī) Quidwaysysname SwitchB SwitchBinterface ethernet0/1 SwitchB-Ethernet0/1duplex full SwitchB-Ethernet0/1speed

6、 100 SwitchB-Ethernet0/1port link-type trunk SwitchB-Ethernet0/1port trunk permit vlan all SwitchB-Ethernet0/1int e0/2 SwitchB-Ethernet0/2duplex full SwitchB-Ethernet0/2speed 100 SwitchB-Ethernet0/2port link-type trunk SwitchB-Ethernet0/2port trunk permit vlan all,三、配置端口聚合 SwitchAlink-aggregation et

7、hernet0/1 to ethernet0/2 both /將e0/1和e0/2端口聚合 SwitchBlink-aggregation ethernet0/1 to ethernet0/2 both SwitchAdisplay link-aggregation ethernet0/1 /顯示端口聚合 SwitchAundo link-aggregation all /刪除端口聚合,實(shí)訓(xùn)三、華為交換機(jī)VLAN的配置,一、配置PC機(jī)的IP地址 HostA:IP:10.65.1.2/24 ;HostB:IP:10.66.1.2/24 HostC:IP:10.65.1.3/24 ;HostD:I

8、P:10.66.1.3/24,二、創(chuàng)建VLAN并劃分VLAN端口 SwitchAvlan 2 /創(chuàng)建Vlan2 SwitchA-vlan2port e0/3 to e0/4 /將e0/3-e0/4端口劃分為VLAN2 SwitchA-vlan2vlan 3 /創(chuàng)建Vlan3 SwitchA-vlan3port e0/5 to e0/6 /將e0/5-e0/6端口劃分為VLAN3 SwitchA-vlan3quit SwitchAdis vlan all /顯示交換機(jī)所有VLAN信息 SwitchAdis current /顯示交換機(jī)當(dāng)前配置 SwitchBvlan 2 SwitchB-vlan

9、2port e0/3 to e0/4 SwitchB-vlan2vlan 3 SwitchB-vlan3port e0/5 to e0/6 SwitchB-vlan3quit SwitchBdis vlan all SwitchBdis current,三、驗(yàn)證連通性 HostA#ping 10.65.1.2 通 /本機(jī)的IP地址 HostA#ping 10.66.1.2 不通 /因?yàn)槭遣煌木W(wǎng)絡(luò)段,不同的vlan HostA#ping 10.65.1.3 不通 /因?yàn)閮膳_交換機(jī)之間的連接線為vlan 1 HostA#ping 10.66.1.3 不通 /因?yàn)槭遣煌木W(wǎng)絡(luò),不同的vlan,四、

10、設(shè)置兩臺交換機(jī)相連的端口為trunk模式 SwitchAinterface ethernet0/8 /進(jìn)入e0/8端口 SwitchA -Ethernet0/8port link-type trunk /設(shè)置該端口為Trunk模式 SwitchA -Ethernet0/8port trunk permit vlan all /設(shè)置該端口允許所有VLAN通過 SwitchBinterface ethernet0/1 SwitchB -Ethernet0/1port link-type trunk SwitchB -Ethernet0/1port trunk permit vlan all Swi

11、tchB -Ethernet0/1quit SwitchBdis curr,五、再次驗(yàn)證連通性 HostA#ping 10.65.1.3 通 HostA#ping 10.66.1.2 不通 HostB#ping 10.66.1.3 通 提示:因?yàn)橛?jì)算機(jī)HostA與HostC同處于vlan 2,所以它們相互可以通信,而HostB與HostD同處于vlan 3,所以,HostB與HostD也可以相互通信。但計(jì)算機(jī)HostA和HostB由于處于不同的VLAN,所以它們之間是無法通信的。同理HostC與HostD也無法通信。,實(shí)訓(xùn)四、華為交換機(jī)生成樹協(xié)議的配置,SwitchAstp enable /啟用生成樹協(xié)議 SwitchBstp enable SwitchCstp enable SwitchAstp priority 4096 /設(shè)置SwitchA交換機(jī)的優(yōu)先級值為4096,使之為根交換機(jī) SwitchA stp root primary /或者使用此命令手動指定該交換機(jī)為根交換機(jī) SwitchA-Ethernet0/1stp cost 200 /設(shè)置交換機(jī)e0/1端口的花費(fèi),提示: 1)、缺省情況下交換機(jī)的優(yōu)先級值為32768,如果想手動指定某一臺交換機(jī)為根交換機(jī),則可以通過修改優(yōu)先級的值來實(shí)現(xiàn)或

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論