hostname>;用戶模式hostname#;特權模式hostname(config)#;全局配置模式hostname(config-if)#;接口狀態(tài)交換機口令設置:用戶名密碼switch>enable;進入特權 " />

Cisco交換機配置命令
1.交換包粽子的步驟 機支持的命令:
交換機基本狀態(tài):
switch:;ROM狀態(tài),路由器是rommon>
hostname>;用戶模式
hostname#;特權模式
hostname(config)#;全局配置模式
hostname(config-if)#;接口狀態(tài)
交換玉米淀粉的用途 機口令設置:用戶名密碼
switch>enable;進入特權模式
switch#configterminal;進入全局配置模式
switch(config)#hostname;設置交換機的主機名
switch(config)#enablecretxxx;設置特權加密口令
switch(config)#enablepasswordxxa;設置特權非密口令
switch(config)#lineconsole0;進入控制臺口
switch(config-line)#linevty04;進入虛擬終端
switch(config-line)#login;允許登錄
switch(config-line)#passwordxx;設置登錄口令xx
switch#exit;返回命令
交換機VLAN設置:創(chuàng)建Vlan
switch#vlandataba;進入VLAN設置
switch(vlan)#vlan2;建VLAN2
switch(vlan)#novlan2;刪vlan2
switch(config)#intf0/1;進入端口1
switch(config-if)#switchportaccessvlan2;當前端口加入vlan2
switch(config-if)#switchportmodetrunk;設置為干線
switch(config-if)#switchporttrunkallowedvlan1,2;設置允許的vlan
switch(config-if)#switchporttrunkencapdot1q;設置vlan中繼
switch(conf鹵肉怎么鹵 ig)#vtpdomain;設置發(fā)vtp域名
switch(config)#vtppassword;設置發(fā)vtp密碼
switch(config)#vtpmoderver;設置發(fā)vtp模式
switch(config)#vtpmodeclient;設置發(fā)vtp模式
交換機設置IP地址:管理地址
switch(config)#interfacevlan1;進入vlan1
switch(config-if)#ipaddress;設置IP地址
switch(我已經(jīng)敢想你 config)#ipdefault-gateway;設置默認網(wǎng)關
switch#dirflash:;查看閃存
交換機顯示命令:
switch#write;保存配置信息
switch#showvtp;查看vtp配置信息
switch#showrun;查看當前配置信息
switch#showvlan;查看vlan配置信息
switch#showinterface;查看端口信息
switch#showintf0漢服歷史 /0;查看指定端口信息
補充:
3層交換機多出的就是路由能力,體現(xiàn)在vlan的互相通信功能和端口的路由
能力,下面介紹:
開啟路由功能:iprouting
進入vlan配置網(wǎng)段網(wǎng)關與路由配置接口相同
interfacevlan1
ip192.168.1.1255.255.255.0
路由配置與路由器配置相同只是把接立冬節(jié)氣的古詩 口換為VLAN+VLAN號,開啟接口路
由功能,進入接口配置:noswichport
Cisco交換機配置命令
本文發(fā)布于:2023-03-18 05:31:34,感謝您對本站的認可!
本文鏈接:http://m.newhan.cn/zhishi/a/1679088695147250.html
版權聲明:本站內(nèi)容均來自互聯(lián)網(wǎng),僅供演示用,請勿用于商業(yè)和其他非法用途。如果侵犯了您的權益請與我們聯(lián)系,我們將在24小時內(nèi)刪除。
本文word下載地址:思科交換機配置.doc
本文 PDF 下載地址:思科交換機配置.pdf
| 留言與評論(共有 0 條評論) |