三層與二層交換機的配置腳本、配置數(shù)據(jù)、網(wǎng)線接口、網(wǎng)絡分配匯編_第1頁
三層與二層交換機的配置腳本、配置數(shù)據(jù)、網(wǎng)線接口、網(wǎng)絡分配匯編_第2頁
三層與二層交換機的配置腳本、配置數(shù)據(jù)、網(wǎng)線接口、網(wǎng)絡分配匯編_第3頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、三層交換機配置部分# / 改三層交換機的名字sysname LYXXX-9303# / 開啟交換機的 FTP 服務方便后期備份配置FTP server enable# / 劃分 VLANvlan batch 99 255 1000 1200 1210 to 1211 1221 1231 1241 1251 1300 vlan batch 1310 to 1311 1321 1331 1341 1351 1400 1500 1600 1700 1800 # / 根據(jù)需要開啟 DHCP 服務dhcp enable# / 注釋 VLANvlan 99description LinShivlan 25

2、5description GuanLlivlan 1000description Uplinkvlan 1200description BanGongLouvlan 1210description BanGongLou_JiaoShivlan 1211description BanGongLou_1Fvlan 1221description BanGongLou_2Fvlan 1231description BanGongLou_3Fvlan 1241description BanGongLou_4Fvlan 1251description BanGongLou_5Fvlan 1300desc

3、ription JiaoXueLouvlan 1310description JiaoXueLou_JiaoShivlan 1311description JiaoXueLou_1Fvlan 1321description JiaoXueLou_2Fvlan 1331description JiaoXueLou_3Fvlan 1341description JiaoXueLou_4Fvlan 1351description JiaoXueLou_5Fvlan 1400description WIFIvlan 1500description WeiJiShivlan 1600descriptio

4、n SERVERvlan 1700description KaoQinvlan 1800description JianKong# / 增加管理賬戶aaaauthentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain defaultdomain default_adminlocal-user admin password cipher lylsjy01local-user admin service-type httplocal-user lylsjy password ciphe

5、r lylsjy01local-user lylsjy privilege level 3網(wǎng)絡完local-user lylsjy service-type telnet http# / 網(wǎng)絡沒有完全劃分完成前做了一個臨時VLAN ,把所有的地址段都放到了這里,可以不影響大家上網(wǎng)。成后刪除掉)interface Vlanif99description LinShiip address 54 ip address 54 subip address 54 255.255.255.

6、0 subip address 54 subip address 54 subip address 54 subip address 54 sub# / 管理地址段interface Vlanif255description GuanLiip address # / 上聯(lián)地址段interface Vlanif1000description UP_link

7、_JiaoTiJuip address 0 52# /無線覆蓋地址段,并開啟 DHCP (關閉 DNS ,防止手機上網(wǎng),后期還有驗證功能) interface Vlanif1400description WIFIip address 54 28dhcp select interfacedhcp server excluded-ip-address 30 53# / 上聯(lián)端口上聯(lián)教體局interface GigabitEthernet1/0/0port li

8、nk-type accessport default vlan 1000# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/1 port link-type trunkundo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# / 服務器測試口調(diào)試臨時網(wǎng)絡的上網(wǎng)信息 interface GigabitEthernet1/0/2port link-type access port default vlan 99# /WIFI 控制端 AC 的管理接口 interf

9、ace GigabitEthernet1/0/3 port link-type access port default vlan 1400# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/4 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/5 port link-type trunk undo port tru

10、nk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/6 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/7 port link-type trunk undo port trunk allow-pa

11、ss vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/8 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/9 port link-type trunk undo port trunk allow-pass vlan 1 po

12、rt trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/10 port link-type trunk undo port trunk allow-pass vlan 1port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/11 port link-type trunk undo port trunk allow-pass vlan 1 port trunk al

13、low-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/12 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/13 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass v

14、lan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/14 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/15 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4

15、094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/16 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/17 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trun

16、k 口 透傳 VLAN 信息 interface GigabitEthernet1/0/18 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/19 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLA

17、N 信息 interface GigabitEthernet1/0/20port link-type trunkundo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 interface GigabitEthernet1/0/21 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 ( 并且注釋了

18、本口是教學樓的某個交換機)interface GigabitEthernet1/0/22description JiaoXueLouport link-type trunkundo port trunk allow-pass vlan 1port trunk allow-pass vlan 2 to 4094# /trunk 口 透傳 VLAN 信息 ( 并且注釋了本口是教學樓的某個交換機)interface GigabitEthernet1/0/23description JiaoXueLouport link-type trunkundo port trunk allow-pass vla

19、n 1 port trunk allow-pass vlan 2 to 4094# / 靜態(tài)路由,將學校的地址段路由到上聯(lián)地址 ip route-static 9# / 設置賬戶的認證模式 user-interface con 0 user-interface vty 0 4 authentication-mode aaauser-interface vty 16 20VLAN 地址段分配VLANvlan 注釋vlan 作用可用 IP 段子網(wǎng)掩碼網(wǎng)關vlan1000Uplink上聯(lián)052管理用

20、 - 54vlan0255GuanLli3-1242vlan0099LinShi臨時上網(wǎng)10.16.200.x 10.16.207.xxvlan1200BanGongLou辦公樓 -192vlan1210BanGongLou JiaoShi辦公樓教室 -1255.255

21、.255.192vlan1211BanGongLou 1F辦公樓 1 樓5 - 3244vlan1221BanGongLou 2F辦公樓 2 樓7 - 252426vlan1231BanGongLou 3F辦公樓 3 樓29- 572458vlan1241BanGongLou 4F辦公樓 4 樓10

22、.16.204.161- 892490vlan1251BanGongLou 5F辦公樓 5 樓93- 212422vlan1300JiaoXueLou教學樓 -192vlan1310JiaoXueLou JiaoShi教學樓教室5 - 25926vl

23、an1311JiaoXueLou 1F教學樓 1 樓5 - 25926vlan1321JiaoXueLou 2F教學樓 2 樓29- 572458vlan1331JiaoXueLou 3F教學樓 3 樓61- 892490vlan1341JiaoXueLou 4F教學樓 4 樓93- 10.16.2

24、06.2212422vlan1351JiaoXueLou 5F教學樓 5 樓25- 532454vlan1400WIFI無線覆蓋29- 532854微機室 -252826微機室 29- 532810.

25、16.201.254vlan1500WeiJiShi -252826微機室 3輔助教室29- 532854vlan1600SERVER服務器 -0441vlan1700KaoQin考勤5 - 3444vlan1800JianKong

26、監(jiān)控29- 89990交換機地址及位置交換機名稱交換機位置交換機 IPBanGongLou 1F辦公樓 1 樓1BanGongLou 2F辦公樓 2 樓2BanGongLou 3F辦公樓 3 樓3BanGongLou 4F辦公樓 4 樓4BanGongLou 5F辦公樓 5 樓5JiaoXueLou 1F 1教學樓 1 樓6JiaoXueLou 1F 2教學樓 1 樓7JiaoXueLou

27、2F 1教學樓 2 樓8JiaoXueLou 2F 2教學樓 2 樓9JiaoXueLou 3F 1教學樓 3 樓0JiaoXueLou 3F 2教學樓 3 樓1JiaoXueLou 4F 1教學樓 4 樓2JiaoXueLou 4F 2教學樓 4 樓3JiaoXueLou 5F 1教學樓 5 樓4JiaoXueLou 5F 2教學樓 5 樓5二層交換機配置部分# / 改三層交換機的名字sysname LY15-2326- JiaoXueLou_1F_1# / 開啟交

28、換機的 FTP 服務方便后期備份配置FTP server enable# / 劃分 VLANvlan batch 99 255 1000 1200 1210 to 1211 1221 1231 1241 1251 1300vlan batch 1310 to 1311 1321 1331 1341 1351 1400 1500 1600 1700 1800# / 臨時使用 VLAN (改造完成后需要刪除)vlan 99description LinShi# / 增加管理賬戶aaa authentication-scheme default authorization-scheme defaul

29、t accounting-scheme default domain default domain default_admin local-user admin password cipher lylsjy01 local-user admin service-type httplocal-user lylsjy password cipher lylsjy01local-user lylsjy privilege level 3local-user lylsjy service-type telnet http# / 管理地址段interface Vlanif255description G

30、uanLiip address 6 # / 將交換機的 1-22 口劃分為數(shù)據(jù)口,用來鏈接各教室和辦公室(注意辦公和教學的 VLAN 不能使用一個本配置為 學校的教室中有一個備用的網(wǎng)口,教室的前網(wǎng)口使用樓層 VLAN 方便管理,教室的后網(wǎng)口使用樓 VLAN 方便后期教 室內(nèi)安裝各種監(jiān)控設備)交換機的 23 和 24 口為interface Ethernet0/0/1port link-type accessport default vlan 1310interface Ethernet0/0/2port link-type accessport def

31、ault vlan 1310interface Ethernet0/0/3port link-type accessport default vlan 1310interface Ethernet0/0/4port link-type accessport default vlan 1310interface Ethernet0/0/5port link-type accessport default vlan1310interface Ethernet0/0/6port link-type accessport default vlan 1310 interface Ethernet0/0/

32、7 port link-type access port default vlan 1310 interface Ethernet0/0/8port link-type access port default vlan 1310 interface Ethernet0/0/9 port link-type access port default vlan 1311 interface Ethernet0/0/10 port link-type access port default vlan 1311 interface Ethernet0/0/11 port link-type access

33、 port default vlan 1311 interface Ethernet0/0/12 port link-type access port default vlan 1311 interface Ethernet0/0/13 port link-type access port default vlan 1311 interface Ethernet0/0/14 port link-type access port default vlan 1311 interface Ethernet0/0/15 port link-type access port default vlan 1

34、311 interface Ethernet0/0/16 port link-type access port default vlan 1311 interface Ethernet0/0/17 port link-type access port default vlan 99 interface Ethernet0/0/18 port link-type access port default vlan 99 interface Ethernet0/0/19 port link-type access port default vlan 99 interface Ethernet0/0/

35、20 port link-type access port default vlan 99 interface Ethernet0/0/21 port link-type access port default vlan 99 interface Ethernet0/0/22 port link-type accessport default vlan 99# / 將交換機的 23 和 24 口劃分為 WIFI 覆蓋網(wǎng)段,方便無線覆蓋的管理 interface Ethernet0/0/23port link-type accessport default vlan 1400interface

36、Ethernet0/0/24port link-type accessport default vlan 1400# / 將交換機的兩個光口劃分為trunk 口,上聯(lián) 9303 交換機,透傳 VLAN 數(shù)據(jù),如果近距離使用的話可以將兩個復用的千兆電口做一個端口聚合, 綁定為 2000M 的接口連接三層交換機 (做聚合的話三層的相應的口也必須做端口聚合) interface GigabitEthernet0/0/1description L Y15-9303port link-type trunkundo port trunk allow-pass vlan 1port trunk allow-

37、pass vlan 2 to 4094#interface GigabitEthernet0/0/2description L Y15-9303port link-type trunkundo port trunk allow-pass vlan 1port trunk allow-pass vlan 2 to 4094# / 將二層交換機的管理網(wǎng)段路由到三層交換機ip route-static # / 設置賬戶的認證模式 user-interface con 0 user-interface vty 0 4authentication-mode

38、 aaa各樓層交換機接口及編號030101030105030111030115030101030105030111030115030109030125030127WiFiThunk11112222111030103030107030113030117030103030107030113030117030109030126030128WiFiUP9303111122222030125030125030125030125030125030125030125空空空空2345678WiFiThunk030127030127030127030127030127030127030127空空空空234567

39、8WiFiUP9303教學 樓1樓6 JiaoXueLou_1F_7 JiaoXueLou_1F_2教學樓 1 樓教學樓 1 樓030201030205030211030215030201030205030211030215030209030225030227WiFiThunk11112222111030203030207030213030217030203030207030213030217030209030226030228WiFiUP9303111122222030225030225030225030225030225030225030225空空空空23

40、45678WiFiThunk030227030227030227030227030227030227030227空空空空2345678WiFiUP9303教學 樓2樓8 JiaoXueLou_2F_9 JiaoXueLou_2F_2教學樓 2 樓教學樓 2 樓030301030305030311030315030301030305030311030315030309030325030327WiFiThunk11112222111030303030307030313030317030303030307030313030317030309030326030328WiFiUP9303111122222030325030325030325030325030325030325030325空空空空2345678WiFiThunk030327030327030327030327030327030327030327空空空空2345678WiFiUP9303教學 樓3樓0 JiaoXueLou_3F_1 JiaoXueLou_3F_2教學樓 3 樓教學樓 3 樓03040103040503041103041503040103040503041103041503040903042503042

溫馨提示

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

評論

0/150

提交評論