思科交换机基本配置命令
2010-08-14 12:02
246 查看
进入特权模式:Switch>enable
进入全局模式:Switch#config terminal
交换机上设置主机名: switch(config)# hostname
设置特权加密口令:switch(config)#enable secret xxx
设置特权非密口令:switch(config)#enable password xxx
进入虚拟终端(远程登录):switch(config-line)#line vty 0 4
允许登录:switch(config-line)#login
设置登录口令:switch(config-line)#password xxx
返回:exit
创建vlan:Switch#vlan database
Switch(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
删除vlan:Switch(vlan)#no vlan 2
进入端口1:Switch(config)#int f0/1
将当前端口加入vlan2:Switch(config-if)#switchport access vlan 2
设置为干线:Switch(config-if)#switchport mode trunk
配置CISCO 3560 Trunk时需注意:
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport mode trunk
进入vlan1:Switch(config)#int vlan 1
配置ip:Switch(config-if)#ip address 192.168.1.1 255.255.255.0
开启vlan:Switch(config-if)#no shutdown
设置交换机网关:Switch(config-if)#ip default-gateway 192.168.1.254
保存信息:Switch#write
显示配置信息:Switch#show run
显示vlan:Switch#show vlan
进入全局模式:Switch#config terminal
交换机上设置主机名: switch(config)# hostname
设置特权加密口令:switch(config)#enable secret xxx
设置特权非密口令:switch(config)#enable password xxx
进入虚拟终端(远程登录):switch(config-line)#line vty 0 4
允许登录:switch(config-line)#login
设置登录口令:switch(config-line)#password xxx
返回:exit
创建vlan:Switch#vlan database
Switch(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
删除vlan:Switch(vlan)#no vlan 2
进入端口1:Switch(config)#int f0/1
将当前端口加入vlan2:Switch(config-if)#switchport access vlan 2
设置为干线:Switch(config-if)#switchport mode trunk
配置CISCO 3560 Trunk时需注意:
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport mode trunk
进入vlan1:Switch(config)#int vlan 1
配置ip:Switch(config-if)#ip address 192.168.1.1 255.255.255.0
开启vlan:Switch(config-if)#no shutdown
设置交换机网关:Switch(config-if)#ip default-gateway 192.168.1.254
保存信息:Switch#write
显示配置信息:Switch#show run
显示vlan:Switch#show vlan
相关文章推荐
- 思科交换机基本配置命令
- 思科交换机基本配置命令
- Apache Sqoop数据转换安装配置与基本操作命令
- memcached的基本命令(安装、卸载、启动、配置相关)
- linux基本命令(九)配置网络地址和ssh访问
- 思科交换机MST配置命令步骤-实例讲解
- Cisco 基本检验和配置命令集
- H3C交换机配置基本命令
- Github 本地配置及基本命令
- 交换机的基本配置命令
- Linux基本配置和管理 2 ---- Linux多命令协作----管道及重定向
- mongodb 3.0下载安装、配置及mongodb最新特性、基本命令教程详细介绍
- Cisco.ASA硬件防火墙的基本配置命令介绍
- Cisco 交换机配置的基本命令
- 02_Nginx基本配置与参数说明 + 辅助命令
- 思科路由器基本配置命令大全
- SVN的基本配置和常用命令
- 思科交换机MST配置命令步骤-实例讲解
- Cisco基本命令配置
- Cisco PIX防火墙基本配置命令使用