無(wú)線路由如何充當(dāng)交換機(jī) 無(wú)線路由怎么當(dāng)交換機(jī)用
2024-04-06
enable Password : *****" />
更新時(shí)間:2024-04-06 00:13:32作者:未知
1、 進(jìn)入全局配置模式
Switch-3548 > enable
Password : ********
Switch-3548 # config t
Switch-3548 (config) #
2、 啟用交換機(jī)的HTTP Server
Switch-3548 (config) # ip http server
3、 配置主機(jī)名
Switch-3548 (config) # hostname Switch-PHY-3548
4、 配置超級(jí)用戶(hù)口令
Switch-GYX-3548 (config) # enable secret 5 zzz
Switch-GYX-3548 (config) # enable password zzz
Switch-GYX-3548 (config) #
Switch-GYX-3548 (config) # enable password 7 zzz
Switch-GYX-3548 (config) #
5、 配置遠(yuǎn)程登錄口令
Switch-GYX-3548 (config) # line vty 0 4
Switch-GYX-3548 (config-line) # password 7 zzz
Switch-GYX-3548 (config-line) # password 0 zzz
Switch-GYX-3548 (config-line) #
6、 配置系統(tǒng)時(shí)間
Switch-GYX-3548 # clock set 23:00:00 29 March 2009
7、 配置設(shè)備管理地址(IP地址及缺省路由)
Switch-GYX-3548 (config) # interface VLAN1
Switch-GYX-3548 (config-if) # ip address 203.105.1.62 255.255.255.0
Switch-GYX-3548 (config) # ip default-gateway 203.105.1.1
8、 進(jìn)入端口配置模式
Switch-GYX-3548 (config) # interface f0/24
9、 配置端口描述信息
Switch-GYX-3548 (config-if) # description To-lib
10、配置交換機(jī)端口的關(guān)閉與開(kāi)啟
Switch-GYX-3548 (config-if) # (no) shutdown
11、配置交換機(jī)端口的通信方式
Switch-GYX-3548 (config-if) # duplex auto/full/half
12、配置交換機(jī)端口的傳輸速率
Switch-GYX-3548 (config-if) # speed 10/100/auto
13、配置VTP域名
Switch-GYX-3548 (config) # vtp domain pku
14、配置VTP工作模式
Switch-GYX-3548 (config) # vtp mode server/client/transparent
15、進(jìn)入VLAN配置模式
Switch-GYX-3548 # vlan data
16、建立VLAN
Switch-GYX-3548 (vlan) # vlan 1000 name vlan1000
17、刪除VLAN
Switch-GYX-3548 (vlan) # no vlan 1000
18、修改VLAN
Switch-GYX-3548 (vlan) # vlan 1000 name v1000
19、為端口分配VLAN
Switch-GYX-3548 (config-if) # switchport access vlan 248
20、配置VLAN Trunk模式
Switch-GYX-3548 (config-if) # switchport mode trunk
21、封裝VLAN協(xié)議
Switch-GYX-3548 (config-if) # switchport trunk encapsulation dot1 q/isl/negotiate P
22、設(shè)置允許中繼的VLAN
Switch-GYX-3548 (config-if) # switchport trunk allowed vlan 10,14/10-14/except 100-1000
23、打開(kāi)或關(guān)閉STP
Switch-GYX-3548 (config) # (no) spanning-tree vlan 3
24、配置根網(wǎng)橋和備份根網(wǎng)橋
Switch-GYX-3548 (config) # spanning-tree vlan 3 root primary/secondary
25、配置生成樹(shù)優(yōu)先級(jí)
Switch-GYX-3548 (config) # spanning-tree vlan 3 priority 8192
26、配置BackboneFast 生成樹(shù)可選功能
Switch-GYX-3548 (config) # spanning-tree backbonefast
27、配置UplinkFast 生成樹(shù)可選功能
Switch-GYX-3548 (config) # spanning-tree uplinkfast max-update-rate 32000
Switch-GYX-3548 (config) # spanning-tree uplinkfast
28、配置PortFast 生成樹(shù)可選功能
Switch-GYX-3548 (config) # spanning-tree portfast default
29、配置BPDU Filter 生成樹(shù)可選功能
Switch-GYX-3548 (config) # spanning-tree portfast bpdufilter default