日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Cisco 3550-EMI 交 换 机 配 置 教 程

發布時間:2023/12/13 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Cisco 3550-EMI 交 换 机 配 置 教 程 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
目錄:
一、標識交換機
二、設置口令及用戶
三、配置VTP(Vlan中繼協議)
四、配置中繼線(Trunk)
五、創建、描述Vlan及設置Vlan IP
六、劃分、描述及設置Vlan端口
七、配置STP(生成樹協議)
八、啟用Vlan間 Router
九、配置ACL
十、配置DHCP中繼代理
十一、配置DHCP服務器
十二、配置HSRP(熱備路由協議)
十三、保存配置
附1:命令行編輯鍵
附2:SHOW命令
附3:破解Cisco 3550 Switch口令(Console 口)
附4:破解Cisco 2950 Switch口令(Console 口)
附5:備份IOS、Config、及DataBase文件
附6:恢復IOS、Config、及DataBase文件
附7:ACL例子

一、標識交換機
??? Switch#configure terminal?? 進入配置狀態
Switch(config)#hostname “hostname”?? 設置Switch名稱
Switch (config)#no hostname?? 取消Switch名稱
Switch(config)#end?? 結束本次配置
二、設置口令及用戶
Switch#configure terminal?? 進入配置狀態
Switch(config)#enable secret “password” 設置特權模式口令
Switch(config)#no enable secret?? 取消特權模式口令
Switch(config)#enable password “password” 設置EXEC模式口令
Switch(config)#no enable password?? 取消EXEC模式口令
witch(config)#username “username” privilege “num” secret “password” 建立本地用戶及口令
??? Switch(config)#no username “username”?? 刪除本地用戶
Switch(config)#service password-encryption?? 加密所有明文口令
Switch(config)#no service password-encryption?? 拒絕加密所有明文口令
Switch(config)#end?? 結束本次配置

1、配置console用戶用口令
??? Switch#configure terminal 進入配置狀態
Switch(config)#line console 0?? 進入console口配置狀態
Switch(config-line)#login local??? 設置登錄模式為本地用戶驗證模式
Switch(config-line)#no login local?? 取消本地用戶驗證模式
Switch(config-line)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#line console 0?? 進入console口配置狀態
Switch(config-line)#login??? 設置登錄模式為線性登錄模式
Switch(config-line)#password “password”?? 設置線性登錄模式口令
Switch(config-line)#no login?? 取消線性登錄模式
Switch(config-line)#end?? 結束本次配置

2、配置tenlnet(vty)用戶及口令
??? Switch#configure terminal 進入配置狀態
Switch(config)#line vty 0 15?? 進入vty配置狀態
Switch(config-line)#login local??? 設置登錄模式為本地用戶驗證模式
Switch(config-line)#no login local?? 取消本地用戶驗證模式
Switch(config-line)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#line vty 0 15?? 進入vty配置狀態
Switch(config-line)#login??? 設置登錄模式為線性登錄模式
Switch(config-line)#password “password”?? 設置線性登錄模式口令
Switch(config-line)#no login?? 取消線性登錄模式
Switch(config-line)#end?? 結束本次配置

三、配置VTP(Vlan中繼協議)
??? Switch#vlan database??? 進入vlan數據庫配置狀態
Switch(vlan)#vtp domain “domainname”?? 設置vtp域名稱
Switch(vlan)#vtp server|client| transparent?? 設置vtp模式
Switch(vlan)#vtp password “password”?? 設置vtp口令
Switch(vlan)#no vtp password?? 取消vtp口令
Switch(vlan)#exit?? 退出vlan數據庫配置狀態
??
四、配置trunk(中繼線)
??? Switch#configure terminal 進入配置狀態
Switch(config)#interface “interface mod/port” 進入端口配置狀態
Switch(config-if)#switchport trunk encapsulation dot1q|isl| negotiate?? 設置干道封裝模式
Switch(config-if)#switchport mode trunk?? 設置端口為干道模式
Switch(config-if)#no shutdown?? 啟用端口
Switch(config-if)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#interface range “interface mod/port -port” 進入端口組配置狀態
Switch(config-if-range)#switchport trunk encapsulation dot1q|isl| negotiate 設置干道封裝模式
Switch(config-if-range)#switchport mode trunk?? 設置端口為干道模式
Switch(config-if-range)#no shutdown?? 啟用端口
Switch(config-if-range)#end?? 結束本次配置
??
五、創建、描述Vlan及設置Vlan IP
??? Switch#vlan database 進入vlan數據庫配置狀態
Switch(vlan)#vlan “vlan-num” name “vlan-name”?? 建立vlan及名稱
Switch(vlan)#no vlan “vlan-num”??? 刪除vlan
Switch(vlan)#exit?? 退出vlan數據庫配置狀態

Switch#configure terminal 進入配置狀態
Switch(config)#interface vlan “vlan-num”?? 進入vlan配置狀態
Switch(config-if)#description “description”?? 描述vlan
Switch(config-if)#no description?? 取消描述
Switch(config-if)#ip address “ip-address subnet-mask”?? 設置vlan 網關的ip 地址
Switch(config-if)#no shutdown 啟用vlan
Switch(config-if)#end?? 結束本次配置

六、劃分、描述及設置Vlan端口
??? Switch#configure terminal 進入配置狀態
Switch(config)#interface “interface mod/port” 進入端口配置狀態
Switch(config-if)#description “ description”?? 描述端口
Switch(config-if)#speed auto|100|10?? 設置端口速率模式
Switch(config-if)#duplex auto|full|half 設置端口雙工模式
Switch(config-if)#switchport mode access?? 設置端口為訪問模式
Switch(config-if)#switchport access vlan “vlan-num”?? 設置端口所屬Vlan
Switch(config-if)#no shutdown?? 啟用端口
Switch(config-if)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#interface range “interface mod/port -port”?? 進入端口組配置狀態
Switch(config-if-range)#description “ description”?? 描述端口
Switch(config-if-range)#speed auto|100|10?? 設置端口速率模式
Switch(config-if-range)#duplex auto|full|half 設置端口雙工模式
Switch(config-if-range)#switchport mode access?? 設置端口為訪問模式
Switch(config-if-range)#switchport access vlan “vlan-num”?? 設置端口所屬Vlan
Switch(config-if-range)#no shutdown?? 啟用端口
Switch(config-if-range)#end?? 結束本次配置

七、配置STP(生成樹協議)
Switch#configure terminal 進入配置狀態
Switch(config)#spanning-tree portfast default?? 設置所有訪問端口為快速模式
Switch(config)#no spanning-tree portfast default?? 取消所有訪問端口為快速模式
Switch(config)#spanning-tree uplinkfast?? 設置上行端口為快速模式
Switch(config)#no spanning-tree uplinkfast?? 取消上行端口為快速模式
Switch(config)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#interface “interface mod/port”?? 進入端口配置狀態
Switch(config-if)#spanning-tree portfast?? 設置端口為快速模式
Switch(config-if)#no shutdown?? 啟用端口
Switch(config-if)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#interface range “interface mod/port -port”?? 進入端口組配置狀態
Switch(config-if-range)# spanning-tree portfast?? 設置端口為快速模式
Switch(config-if-range)#no shutdown?? 啟用端口
Switch(config-if-range)#end?? 結束本次配置
八、啟用Vlan間 Router
??? Switch#configure terminal 進入配置狀態
Switch(config)#ip routing?? 啟用ip 路由
Switch(config)#ip route “Destination-prefix Destination-prefix-mask Forwarding-router’s-address”
Switch(config)#end?? 結束本次配置

九、配置ACL????
Switch#configure terminal 進入配置狀態
Switch(config)#access-list “standard-acl-num” permit|deny “source-address source-wildcard” 設置標準acl
Switch(config)#access-list “extend-acl-num” permit|deny ip “source-add source-wildcard Destination-add Destination-wildcard” 設置擴展acl
Switch(config)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#interface vlan “vlan-num”?? 進入vlan配置狀態
Switch(config-if)#ip access-group “acl-num” in|out?? 應用acl到vlan
Switch(config-if)#end?? 結束本次配置

Switch#configure terminal 進入配置狀態
Switch(config)#line vty 0 15?? 進入vty配置狀態
Switch(config-line)#access-class “acl-num” in|out????? 應用acl到vty
Switch(config-if)#end?? 結束本次配置
例:
Switch(config)#access-list 101 deny ip host 192.168.2.11 host 192.168.10.21
Switch(config)#access-list 102 deny ip host 192.168.2.13 192.168.10.0 0.0.0.255
Switch(config)#access-list 103 deny ip 192.168.2.0 0.0.0.255 192.168.10.0 0.0.0.255
Switch(config)# access-list 104 deny ip 192.168.2.0 0.0.0.255 host 192.168.10.25

十、配置DHCP中繼代理
Switch#configure terminal?? 進入配置狀態
Switch(config)#service dhcp?? 啟用dhcp服務
Switch(config)#ip dhcp relay information option?? 啟用dhcp代理服務
Switch(config)#interface vlan “vlan-num”?? 進入vlan配置狀態
Switch(config-if)#ip helper-address “ip-address”?? 啟用dhcp代理服務器ip地址
Switch(config-if)#end?? 結束本次配置

十一、配置DHCP服務器
Switch#configure terminal?? 進入配置狀態
Switch (config)#ip dhcp pool “Pool-name”?? 設置dhcp地址池名稱
Switch (dhcp-config)#network “Network-num Network-mask”?? 設置dhcp地址池ip范圍
Switch (dhcp-config)# dns-server “ip-address”?? 為客戶機分配DNS服務器ip地址
Switch (dhcp-config)#netbios-name-server “ip-address”?? 為客戶機分配WINS服務器ip地址
Switch (dhcp-config)#default-router “ip-address”?? 為客戶機分配默認網關ip地址
Switch(config-if)#end?? 結束本次配置

Switch#configure terminal?? 進入配置狀態
Switch(config)#service dhcp?? 啟用dhcp服務
wyz(config)#ip dhcp excluded-address “Low-ip-address High-ip-address” 設置保留ip地址
Switch(config-if)#end?? 結束本次配置

十二、配置HSRP(熱備路由協議)
Switch#configure terminal?? 進入配置狀態
Switch(config)#interface vlan “vlan-num”?? 進入vlan配置狀態
Switch(config-if)#ip address “ip-address subnet-mask”?? 設置vlan 物理ip 地址
Switch(config-if)#standby “group-num” ip “virtual-ip-address”?? 設置vlan 虛擬ip 地址
Switch(config-if)#standby priority “Priority-value”?? 設置路由器優先等級
Switch(config-if)#standby preempt?? 設置hsrp搶占功能
Switch(config-if)#standby timers “Hello-interval-in-seconds Hold-time-in-seconds”設置hello信息
Switch(config-if)#end?? 結束本次配置

十三、保存配置
Switch#write memory

Switch#copy running-config startup-config

附1:命令行編輯鍵
TAB?????? 補全命令
???????? 查看可用命令
Ctrl + P?? 粘貼歷史命令
Ctrl + E?? 將光標移至命令末尾
Ctrl + F?? 將光標向前移動
Ctrl + B?? 將光標向后移動
Ctrl + Z?? 返回#命令模式
Ctrl + U?? Clear Line and Put in Buffer
Ctrl + W Delete Word Backwards and Put in Buffer
Ctrl + Y?? Paste Buffer Contents
Ctrl + X?? Clear Line to the Left and Put in Buffer
Ctrl + T?? Flip Last 2 Characters
Ctrl + J?? Return
Ctrl + L?? Refresh Line
Ctrl + I??? Refresh Line and Goto End
Ctrl + K?? Delete everything on the Right of cursor
Ctrl + V?? Allows to type control character
Ctrl + M?? Return
Ctrl + H?? Backspace Character to the Left
Ctrl + R?? 刷新行

附2:SHOW命令

Switch#show version?? 顯示版本信息
Switch #show arp | include “ip-address”?? 顯示ip地址對應的mac地址信息
Switch#show mac-address-table?? 顯示mac地址信息
Switch#show mac-address-table | include “mac-address”?? 格式:xxxx.xxxx.xxxx.xxxx
Switch #show mac-address-table dynamic address “mac-address” 顯示mac地址對應的端口信息
Switch#show mac-address-table dynamic interface “interface mod/port” 顯示端口對應的mac地址信息
Switch#show tech-support?? 顯示技術支持信息
Switch#show interfaces?? 顯示接口信息
Switch#show vlan?? 顯示vlan信息
Switch#show startup-config?? 顯示啟用配置文件
Switch#show running-config?? 顯示運行配置文件
Switch#show ip route?? 顯示ip路由狀態
Switch#clear counters interface “interface mod/port”??? 清除端口計數器
Switch(config)#default interface “interface mod/port” 恢復端口出廠設置
Switch#clear interface “interface mod/port”?? 重置端口的硬件邏輯
keyada#show cdp neighbors “interface mod/port” detail

附3:破解Cisco 3550 Switch口令(Console 口)

1、 長按MODE鍵,接通SWITCH電源,直至PORT 1 燈熄滅,其它PORT口燈長亮后,松開MODE鍵后SYSTEM燈閃爍;
2、 輸入switch: flash_init 初始化flash
3、 輸入switch: dir flash: 顯示flash目錄文件列表
4、 輸入switch: rename flash:config.text flash:config.old 更改config文件名稱
5、 輸入switch: boot 啟動switch ios
6、 當出現Would you like to enter the initial configuration dialog? [yes/no]:介面時,輸入no
7、 輸入Switch >enable 進入特權模式,此時無需密碼
8、 輸入Switch#rename flash:config.old flash:config.text 改回原config文件名稱
9、 輸入Switch#copy flash:config.text system:running-config 將原config文件應用到running-config中
10、 修改用戶及密碼后,保存配置
11、 輸入Switch #reload完成 重啟switch

附4:破解Cisco 2950 Switch口令(Console 口)

1、 長按MODE鍵,接通SWITCH電源,直至SYST燈閃爍后,松開MODE鍵;
2、 輸入switch: flash_init 初始化flash
3、 輸入switch: load_helper 裝載helper文件
4、 輸入switch: dir flash: 顯示flash目錄文件列表
5、 輸入switch: rename flash:config.text flash:config.old 更改config文件名稱
6、 輸入switch: boot 啟動switch ios
7、 當出現Would you like to enter the initial configuration dialog? [yes/no]:介面時,輸入no
8、 輸入Switch >enable 進入特權模式,此時無需密碼
9、 輸入Switch#rename flash:config.old flash:config.text 改回原config文件名稱
10、 輸入Switch#copy flash:config.text system:running-config 將原config文件應用到running-config中
11、 修改用戶及密碼后,保存配置
12、 輸入Switch #reload完成 重啟switch
附5:備份IOS、Config、及DataBase文件
1、 打開TFTP服務器
2、 Switch#dir
3、 Switch#cd c3550-i5q3l2-mz.121-20.EA1
4、 Switch#dir
5、 Switch#copy c3550-i5q3l2-mz.121-20.EA1.bin tftp
6、 Switch#copy flash:/c3550-i5q3l2-mz.121-20.EA1/c3550-i5q3l2-mz.121-20.EA1.bin tftp
7、 Switch#copy startup-config tftp
8、 Switch#copy flash:vlan.dat tftp
附6:恢復IOS、Config、及DataBase文件
1、 Switch#copy tftp startup-config
2、 Switch#copy tftp flash:vlan.dat
3、 Switch#copy tftp flash:/c3550-i5q3l2-mz.121-20.EA1/c3550-i5q3l2-mz.121-20.EA1.bin

附7:ACL例子

VLAN1需實現以下效果:
1、VLAN1主機192.168.1.240可以訪問所有網段;
2、VLAN1其余主機可以訪問除VLAN2、VLAN3及VLAN4外所有網段。

VLAN2需實現以下效果:
1、VLAN2網段只可訪問VLAN3中的192.168.3.126主機,但不能訪問VLAN3中其它主機;
2、VLAN2網段可以訪問除VLAN1、VLAN3及VLAN4外所有網段。

VLAN3需實現以下效果:
1、VLAN3主機192.168.3.126可以訪問所有網段;
2、VLAN3其余主機不能訪問所有網段。

VLAN4需實現以下效果:
1、VLAN4網段只可訪問VLAN2網段。

interface Vlan1
ip address 192.168.1.1 255.255.255.0
ip access-group 101 in
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
ip access-group 102 in
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
ip access-group 103 in
!
interface Vlan4
ip address 192.168.4.1 255.255.255.0
ip access-group 104 in
!

access-list 101 permit ip host 192.168.1.240 any
access-list 101 deny?? ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 101 deny?? ip 192.168.1.0 0.0.0.255 192.168.3.0 0.0.0.255
access-list 101 deny?? ip 192.168.1.0 0.0.0.255 192.168.4.0 0.0.0.255
access-list 101 permit ip any any
access-list 102 permit ip 192.168.2.0 0.0.0.255 host 192.168.3.126
access-list 102 deny?? ip 192.168.2.0 0.0.0.255 192.168.3.0 0.0.0.255
access-list 102 permit ip any any
access-list 103 permit ip host 192.168.3.126 any
access-list 103 deny?? ip any any
access-list 104 permit ip 192.168.4.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 104 deny?? ip any any
Switch(config)#interface port-channel 2
Switch(config)#interface range fastEthernet 0/23 –24
Switch(config-if-range)#channel-group 2 mode desirable

轉載于:https://www.cnblogs.com/fangbo/archive/2009/08/13/1544883.html

總結

以上是生活随笔為你收集整理的Cisco 3550-EMI 交 换 机 配 置 教 程的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。