您的位置:首页 > 其它

实验二:交换机基本配置

2013-04-16 23:19 197 查看
交换机基本配置
[b]1、实验目的[/b]
[b](1)掌握使用交换机基本登陆方式

(2)掌握基本操作命令

[/b]2、实验内容
(2)(超级终端)控制台、Telnet、WEB方式访问交换机

(3)交换机的CLI(命令行接口)基本操作


3、实验环境

    PC机、交换机各一台,线路若干。
4、实验拓扑




5、实验步骤

(1)认知交换机的基本物理参数
(2)基本物理连接方法

(3) 采用超级终端登录交换机








还原默认值确保每秒位数为:9600




[b](4)交换机基本配置
[/b]
Switch>enable

Switch#configure terminal

Switch(config)#hostname Switch_A //给交换机起名;Switch_A

Switch_A(config)#enable password cisco//配置进入特权模式的密码为cisco

Switch_A(config)#line con 0(进入控制台口)

Switch_A(config-line)#password cisco

Switch_A(config-line)#login

Switch_A(config-line)#line vty 0 15(进入虚拟终端)允许16个虚拟终端同时在线

Switch_A(config-line)#password cisco

Switch_A(config-line)#login   login命令启用

Switch_A(config-line)#exit

Switch#show run (查看配置信息)

  (#copy running-config startup-config)

[b](5)配置管理地址
[/b]
[b]配置管理地址和默认网关

switch(config)# interface Vlan 1

switch(config-if)# ip address 192.168.1.2 255.255.255.0

switch(config-if)# no shutdown

switch(config-if)# exit

ip default-gateway 192.168.1.1

   ( Ip http server)

end  

Switch#show run (查看配置信息)
[/b]
(6)Web 方式访问交换机

   浏览器地址栏输入:192.168.1.2

(7)Telnet方式访问交换机
[b][b]1.主机IP地址设置为和交换机管理地址在同一网段

2. 命令提示符下输入:telnet 192.168.1.2
[/b]

(8)其他操作命令

Show ?(flash/version/run/start/….)[/b]

 

[b]基础知识:[/b]

switch>

  这种提示符表示是在用户命令模式,只能使用一些查看命令。

  switch#

 这种提示符表示是在特权命令模式。

  switch(config)# 这种提示符表示是全局配置模式

  switch(config-if)# 端口配置命令模式
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息