CISCO 2950 配置

来源:百度知道 编辑:UC知道 时间:2024/07/07 07:19:14
有台CISCO 2950 带光口的24口交换机 要把1~22口放在一个VLAN1里 23和24口放在另一个VLAN2里 机器的IP是192.168.0.10 255.255.255.0 VLAN1的IP是192.168.1.* 255.255.255.0 VLAN2的IP是172.16.5.* 255.255.255.0
请教各位 要怎么配置 最好有具体步骤
本交换机的IP192.168.0.10 255.255.255.0 不需要设置吗? 如果要 怎么设?

所有接口默认都再VLAN1里

2950(switch)>en
2950(switch)#vlan database
2950(switch)-vlan)#vlan 2
2950(switch-vlan)#exit

2950(switch)#configure terminal
2950(switch-config)#interface range Gig0/23 - 24
2950(switch-range)#switchport access vlan 2
2950(switch-range)#exit
2950(switch)#configure terminal
2950(switch-config)#interface vlan 1
2950(switch-vlan)#ip address 192.168.1.23 255.255.255.0
2950(switch-vlan)#no shut
2950(switch-vlan)#interface vlan 2
2950(switch-vlan)#ip address 172.16.5.23 255.255.255.0
2950(switch-vlan)#no shut