主页 > 经验 >
思科交换机的基本配置的方法 思科交换机的基本配置教程
思科交换机的基本配置的方法 思科交换机的基本配置教程 随着Internet的高速发展,网络规模不断膨胀,对于从事网络专业的学生熟练掌握路由器和交换机的配置已显得十分重要。接下来是小编为大家收集的思科交换机的基本配置方法,希望能帮到大家。
思科交换机的基本配置的方法
一、交换机的基本配置
下面开始附上实验过程:
实验环境:
Cisco 2950交换机1台,Console电缆1根,PC机一台,网线1根。连接如下图所示:
实验步骤:
一、 交换机的带外配置;
1、 在用户模式、特权模式、全局模式、接口模式之间转换;
Switch>enable
Switch#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#interface FastEthernet 0/1
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console byconsole
Switch#exit
Switch con0 is now available
Press RETURN to get started.
Switch>
2、将交换机的名称改为“student”;
Switch(config)#hostname student
student(config)#
3、 为交换机各个模式设置密码“cisco”;
特权模式下的密码保护
student#enable
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#enable password cisco
student(config)#enable secret cisco1
远程登录口令设置
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#line console 0
student(config-line)#line vty 0 4
student(config-line)#password cisco2
student(config-line)#login
student(config-line)#
student#
4、为交换机制定一个IP地址10.10.10.X/24;
student#config
Configuring from terminal, memory, ornetwork [terminal]?
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#interface vlan 1
student(config-if)#ip address 10.10.10.1255.0.0.0
5、开启交换机的Telnet服务功能,建立Telnet用户admin,口令cisco,并制定只能从10.10.10.y/24登录Telnet服务器;
student#
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#user admin password 0 cisco
student(config)#
6、 查看配置情况;
student>enable
Password:
student#show running-c
Building configuration...
hostname student
!
enable secret 5$1$mERr$q.MA2tj.WFptzvbifq/1i.
enable password cisco
!
!
username admin password 0 cisco
interface Vlan1
ipaddress 10.10.10.1 255.0.0.0
!
!
line con 0
!
line vty 0 4
password cisco2
login
line vty 5 15
login
!
!
End
二、交换机的端口配置:
1、 配置接口的描述、关闭借口、启动接口、配置接口的速度为100Mbps、配置接口工作模式为全双工、配置接口的流程控制;
student#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#interface FastEthernet0/1
student(config-if)#shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down
student(config-if)#
student(config-if)#exit
student(config)#interface FastEthernet0/1
student(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to up
student(config-if)#speed 100
student(config-if)#duplex full
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down
student(config-if)#
2、 配置接口FastEthernet0/10为Access口;
student#
student#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
思科交换机的基本配置的方法
一、交换机的基本配置
下面开始附上实验过程:
实验环境:
Cisco 2950交换机1台,Console电缆1根,PC机一台,网线1根。连接如下图所示:
实验步骤:
一、 交换机的带外配置;
1、 在用户模式、特权模式、全局模式、接口模式之间转换;
Switch>enable
Switch#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#interface FastEthernet 0/1
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console byconsole
Switch#exit
Switch con0 is now available
Press RETURN to get started.
Switch>
2、将交换机的名称改为“student”;
Switch(config)#hostname student
student(config)#
3、 为交换机各个模式设置密码“cisco”;
特权模式下的密码保护
student#enable
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#enable password cisco
student(config)#enable secret cisco1
远程登录口令设置
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#line console 0
student(config-line)#line vty 0 4
student(config-line)#password cisco2
student(config-line)#login
student(config-line)#
student#
4、为交换机制定一个IP地址10.10.10.X/24;
student#config
Configuring from terminal, memory, ornetwork [terminal]?
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#interface vlan 1
student(config-if)#ip address 10.10.10.1255.0.0.0
5、开启交换机的Telnet服务功能,建立Telnet用户admin,口令cisco,并制定只能从10.10.10.y/24登录Telnet服务器;
student#
student#configure t
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#user admin password 0 cisco
student(config)#
6、 查看配置情况;
student>enable
Password:
student#show running-c
Building configuration...
hostname student
!
enable secret 5$1$mERr$q.MA2tj.WFptzvbifq/1i.
enable password cisco
!
!
username admin password 0 cisco
interface Vlan1
ipaddress 10.10.10.1 255.0.0.0
!
!
line con 0
!
line vty 0 4
password cisco2
login
line vty 5 15
login
!
!
End
二、交换机的端口配置:
1、 配置接口的描述、关闭借口、启动接口、配置接口的速度为100Mbps、配置接口工作模式为全双工、配置接口的流程控制;
student#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
student(config)#interface FastEthernet0/1
student(config-if)#shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down
student(config-if)#
student(config-if)#exit
student(config)#interface FastEthernet0/1
student(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to up
student(config-if)#speed 100
student(config-if)#duplex full
%LINK-5-CHANGED: Interface FastEthernet0/1,changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down
student(config-if)#
2、 配置接口FastEthernet0/10为Access口;
student#
student#configure terminal
Enter configuration commands, one perline. End with CNTL/Z.
- 最近发表
- 赞助商链接