Dlink交換機switch配置命令
Dlink交換機switch配置命令
telnet 模式 telnet 【交換機IP】
2、進(jìn)入后提示輸入用戶(hù)名、密碼,默認為空。按兩下回車(chē)進(jìn)入命令模式
3、配置Vlan命令:
創(chuàng )建: create vlan [Vname] tag [VID] {1-101}
刪除: config vlan [Vname] delete [Ports]{1-26}
給Vlan配置端口: config vlan [Vname] add untagged [Ports]{1-26}
保存:Save
給個(gè)別端口劃定 Vlan: config gvrp [Ports] pvid [VID]
查看交換機 PVID:Show gvrp
查看當前交換機基本設置: Show switch
查看Vlan配置: Show Vlan
交換機重啟恢復默認配置狀態(tài):reset system
四、禁止或啟用端口:
1、啟用第七個(gè)端口
config ports 7 state enable
2、禁用第七個(gè)端口
config ports 7 state disable
五、配置端口模式:
1、配置第7個(gè)端口的模式為自適應
config ports 7 speed auto
2、配置第7個(gè)端口的模式為
config ports 7 speed 10_half
3、配置第7個(gè)端口的模式為
config ports 7 speed 100_half
4、配置第7個(gè)端口的模式為
config ports 7 speed 10_full
5、配置第7個(gè)端口的模式為
config ports 7 speed 100_fu
六、配置帶寬限制:
1、配置第7個(gè)端口的收發(fā)速率均為
config bandwidth_control 7 rx_rate 1 tx_rate 1
2、配置第7個(gè)端口的收發(fā)速率均無(wú)限制
config bandwidth_control 7 rx_rate no_limit tx_rate no_limit
七、創(chuàng )建交換機的用戶(hù)名和密碼
1、創(chuàng )建一個(gè)角色為管理員,用戶(hù)名為admin的用戶(hù)
create account admin(用戶(hù)角色) admin(用戶(hù)名)
會(huì )提示輸入密碼
2、修改用戶(hù)名為admin的密碼
config account admin(用戶(hù)名)
會(huì )提示輸入舊密碼和新密碼
3、刪除用戶(hù)名為admin的用戶(hù)
delete account admin(用戶(hù)名)
八、配置SNMP服務(wù)
1、創(chuàng )建訪(fǎng)問(wèn)此交換機snmp服務(wù)的密碼
create snmp community colorme(密碼) view CommunityView read_only
九、禁止或啟用一些服務(wù)
1、啟用web服務(wù)
enable web
2、禁用web服務(wù)
disable web
3、啟用telnet服務(wù)
enable telnet
4、禁用telnet服務(wù)
disable telnet
十、修改系統默認的Ip地址
config ipif System ipaddress 192.168.1.242/24 vlan default
十一、修改交換機Default Gateway
Create iproute default 192.168.0.1
聯(lián)系客服