交换机ip地址配置.doc
文本预览下载声明
S21系列交换机IP地址的配置方法
交换机IP地址的配置方法
我们将从以下几个方面阐述配置交换机的初始配置:
交换机出厂的默认配置
配置交换机的IP地址及网关
使setup命令
通过CLI界面配置IP
交换机出厂的默认配置
IP地址与子网俺码 无 默认网关 无 Enable管理密码 未定义 交换机名 Switch Telnet密码 无
配置交换机的IP地址及网关
由于在交换机的出厂默认配置中,没有定义IP地址与子网掩码以及默认网关,对于一台新出厂的交换机,用户不能直接通过网络管理它。
用户必须对新出厂的交换机进行一系列配置,才能正常使用及管理交换机。
配置交换机的步骤如下:
1 、 先把交换机通过带外连接到PC上,打开超级终端,并把速率设置为9600bps,如图:
然后把交换机上电,按如下配置例子完成初始化配置过程:
--- System Configuration Dialog ---
At any point you may enter a question mark ? for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets [].
Continue with configuration dialog? [yes/no]:y
!是否继续对话模式。输入Y
Enter IP address:8
!输入IP地址
Enter IP netmask:
!输入子网俺码
Enter host name [Switch]:song
!输入主机名
The enable secret is a one-way cryptographic secret use
instead of the enable password when it exists.
Enter enable secret:123456
!输入登录交换机密码
Would you like to configure a Telnet password? [yes/no]:y
!是否使用TELNET方式。选择N则无法使用网络方式TELNET登录到交换机进行管理。选择Y则需可以使用网络方式TELNET来管理此交换机。这里选择Y(根据实际情况,也可选N)
Enter Telnet password:123456
!输入TELNET登录使用的密码
Would you like to disable web service?[yes/no]:y
!是否使用WEB方式。选择N则无法使用网络方式WEB登录到交换机进行管理。选择Y则需可以使用网络方式WEB登录管理此交换机。这里选择Y(根据实际情况,也可选N)
The following configuration command script was created:
interface VLAN 1
ip address 8
!
hostname song
enable secret 5 tH.Y*TquC,tZ[VrvD+S(\Ws=G1X)sv
enable secret level 1 5 ttj9=G1qu7R:H.rvu_;C,ts8U0D+S
no enable services web-server
!
end
Use this configuration? [yes/no]:y
!是否使用这个配置。如果你想保存应用此配置,输入Y。否则输入N
Building configuration...
OK
配置完成后,交换机会根据用户输入的配置自动创建一个配置文件,下次起机后便使用该配置文件,而无须用户再干预。
注意:
(1)、允许用户不为交换机配置IP地址以及地址掩码。
(2)、在配置过程中默认将WEB服务关闭,用户如果需要通过WEB管理交换机,则配置WEB服务时需要选择N以打开WEB服务。
使用SETUP命令
当用户需要删除现有的配置并重新配置交换机时。可以通过CLI界面,在特权模式下输入SETUP命令。使用该命令时会重复上述的操作步骤,提示用户输入新的IP地址和掩码等设置,如同配置一台新出厂交换机。如:
song# setup
--- System Configuration Dialog ---
At any point you may enter a question mark ? for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in
显示全部