資源描述:
《Cisco交換機的基本配置及啟動命令》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、Cisco交換機的基本配置及啟動命令sw1924_b#enablesecretcisco???設置加密密碼???sw1924_b#enablepasswordlevel1cisco1???設置等級密碼(1最低)???sw1924_b#enablepasswordlevel15cisco15???設置等級密碼(15最高)???sw1924_b#ipaddress192.168.14.1255.255.255.0???設置交換機的管理IP地址???sw1924_b#ipdefault-gateway192.168.198.2???設置交換機的網(wǎng)關地址???sw1924_
2、b#ipdomain-namepctc.com.cn???設置交換機所連域的域名???sw1924_b#ipname-server218.87.18.230???設置交換機所連域的域名服務器IP???sw1924_b#showip???查看上述設置環(huán)境???sw1924_b#showversion???查看交換機的版本等信息???sw1924_b#showrunning-config???查看交換機的當前運行配置等全部信息???sw1924_b#showinte0/1???查看交換機的第1個端口信息??2912交換機上配置???sw2912_a#erasenvram
3、???全部清除交換機的所有配置???sw2912_a#reload???重新啟動交換機(初始提示符為switch>)???sw2912_a#intvlan1???進入vlan1特殊接口配置模式???sw2912_a#ipaddress192.168.15.1255.255.255.0???設置交換機的管理IP地址???sw2912_a#ipdefault-gateway192.168.198.2???設置交換機的網(wǎng)關地址???sw2912_a#ipdomain-namepctc.com.cn???設置交換機所連域的域名???sw2912_a#ipname-serve
4、r218.87.18.230???設置交換機所連域的域名服務器IP???sw2912_a#showintvlan1???查看交換機的VLAN1特殊接口配置信息???sw2912_a#showrun???查看交換機的當前運行配置等全部信息??交換機的端口和MAC地址表的設置??1924交換機配置端口屬性???sw1924_b#conft???sw1924_b#interfaceethernet0/1???進入第1個端口???sw1924_b#descriptionsw1924_b-e0/1-pc1???給端口寫入注釋信息???sw1924_b#duplexauto/f
5、ull/full-flow-control/half???設置端口的工作模式???sw1924_b#portsecure???啟用端口安全性???sw1924_b#portsecuremax-mac-count1???設置該端口允許對應的MAC地址數(shù)(默認132個)???sw1924_b#shmac-address-tablesecurity???查看端口安全性??2912交換機配置端口屬性???sw1912_a#conft???進入全局配置模式???sw1912_a#interfacefastethernet0/1???進入第1個端口???sw1912_a#des
6、criptionsw2912_a-f0/1-pc1???給端口寫入注釋信息???sw1912_a#duplexauto/full/half???設置端口的工作模式???sw1912_a#portsecurity???啟用端口安全性???sw1912_a#portsecuritymax-mac-count1???設置該端口允許對應的MAC地址數(shù)(默認132個)???sw1912_a#end???返回特權模式???sw1912_a#shportsecurity???查看端口安全性??配置和查看MAC地址表??1924交換機配置MAC地址表???sw1924_b#mac-
7、address-tableaging-time600???設置動態(tài)地址超時時間???sw1924_b#mac-address-tablepermanent0000.0cdd.5a4de0/3???定義永久MAC地址(綁定MAC地址)???sw1924_b#mac-address-tablerestrictedstatic0000.0cdd.aaede0/6e0/7???定義受限MAC地址???sw1924_b#address-violationdisable/ignore/suspend???定義地址安全違規(guī)???sw1924_b#showmac-address