在思科的接入交换机中如何设置交换的IP

如题所述

思科官方客服电话
400-668-0680
400-810-0110
S系列服务热线 请拨打 800-888-8168 或 400-628-2616
switch> enable
switch#configure terminal
switch(conf)#hostnameaptch2950
aptech2950(conf)#interfacevlan1
aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip 和子网掩
码
aptech2950(conf-if)#noshut 是配置处于运行中
aptech2950(conf-if)#exit
aptech2950(conf)#ipdefault-gateway 192.168.254 设置网关地址
**************************
interface Vlan1
ip address 192.168.1.11 255.255.255.0
!
ip default-gateway 192.168.*.*
温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2016-10-25
是啊,不太明确呀。如果不启用三层接口的话,只有设置VLAN的IP了,如果不是三层的,一般还只能设置管理VLAN地址,一般是VLAN1。
int vlan1
ip add 地址 掩码本回答被提问者采纳
第2个回答  2011-03-12
题目不是很明确啊。你是问如何设置交换机的IP吗?你可以通过VLAN1设置管理地址。
conf t
int vlan 1
ip add [ip address] [subnet mask]
no shut
第3个回答  2011-03-12
interface Vlan1
ip address 192.168.1.11 255.255.255.0

ip default-gateway 192.168.1.1
相似回答