Cisco2950配置
1.主机名,密码和时钟配置
#hostname name
#colck timezone GMT 8
#clock set hh:mm:ss
#line vty 0 4
#password xxxxxx
#login
#exit
#username name password xxxxxx
#login local(telnet 显示是用户名和密码)
#enable password xxxxxx(明文显示)
#enable secret xxxxxx(密文显示)
2.ip 地址配置
#int vlan 1
#ip address 192.168.1.254 255.255.255.0(管理IP)
3.vlan 配置
#vlan database
#vlan 100 name test100
#end
4.把端口加入到VLAN中
#int fa0/x
#switchport mode access
#switchport access vlan 100
#end
5.把FA0/1 加入到TRUNK
#int fa0/1
#switchport mode trunk
#end
6.组端口配置
#int rang fa0/10 - 24
#switchport mode access
switchport access vlan 100
end
7.端口安全(绑定MAC)
#int fa0/10
#switchport port-security mac-address xxx.xxx.xxxx
阅读(1953) | 评论(0) | 转发(0) |