华为_S5700_基础配置命令

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

华为 S5700 基础配置命令

以下配置中,红色字体是需要自定义的.

#清除设备配置

reset saved-configuration

Warning: The action will delete the saved configuration in the device.

The configuration will be erased to reconfigure. Continue? [Y/N]:

Y

reboot

Warning: All the configuration will be saved to the configuration file for the ne

xt startup:flash:/vrpcfg.zip, Continue?[Y/N]:

N

System will reboot! Continue?[Y/N]:

Y

# 设置设备的名称为GSH-FZ-Front

system-view

[Quidway] sysname Quidway

# 设置查看设备的时区,时间

clock timezone BJ add 8

clock datetime 18:20:30 2012-02-08

display clock

#telnet 远程登录

system-view

[Quidway] aaa

//////[Quidway-aaa] local-user ccssoft password cipher p@ssw0rd privilege level 15 [Quidway-aaa] local-user ccssoft password simple ccssoft

[Quidway-aaa] local-user ccssoft service-type telnet

[Quidway-aaa] local-user ccssoft privilege level 15 //特权等级设置

[Quidway-aaa] quit

[Quidway]user-interface vty 0 4 //设置5个虚拟终端,也就是说最多有5个终端同时连接[Quidway - vty0-4]authentication-mode aaa //验证方式设置

[Quidway -ui-vty0-4]quit

#ssh 远程登录

步骤 1 在服务器端生成本地密钥对

system-view

[Quidway] sysname SSH Server

[SSH Server] rsa local-key-pair create

The key name will be: Quidway_Host

The range of public key size is (512 ~ 2048).

NOTES: If the key modulus is greater than 512,

It will take a few minutes.

Input the bits in the modulus[default = 512]: 768

Generating keys...

.......++++++++++++

..........++++++++++++ ...................................++++++++

......++++++++

步骤 2 在服务器端配置VTY 用户界面

[SSH Server] user-interface vty 0 4

[SSH Server-ui-vty0-4] authentication-mode aaa

[SSH Server-ui-vty0-4] protocol inbound ssh

[SSH Server-ui-vty0-4] quit

说明

若配置登录协议为SSH,则S5700 设备将自动禁止Telnet 功能。步骤 3 在服务器端配置SSH 用户的用户名和密码

[SSH Server] aaa

[SSH Server-aaa] local-user client001 password cipher huawei

[SSH Server-aaa] local-user client001 privilege level 3

[SSH Server-aaa] local-user client001 service-type ssh

[SSH Server-aaa] quit

步骤 4 使能STelent 功能,并配置用户的服务类型为STelnet [SSH Server] stelnet server enable

[SSH Server] ssh authentication-type default password

#添加VLAN

system-view

[Quidway] vlan 10

[Quidway-vlan10] quit

#改Vlan1 IP:

system-view

[Quidway]interface vlanif 1

[Quidway]ip address 192.168.1.200 255.255.255.0

#设定端口模式

system-view

[Quidway] int gigabitethernet 0/0/1

[Quidway-GigabitEthernet0/0/1] port link-type access

[Quidway-GigabitEthernet0/0/1]quit

#将端口加入Vlan

system-view

[Quidway] vlan 131

[Quidway-vlan131] port gigabitethernet 0/0/21 to 0/0/22 [Quidway-Vlan131] quit

#设置Trunk

system-view

[Quidway] interface GigabitEthernet 0/0/23

[Quidway-GigabitEthernet0/0/23] port link-type trunk

[Quidway-GigabitEthernet0/0/23] port trunk allow-pass vlan 128 131

#设置STP|RSTP|MSTP

system-view

[Quidway] stp mode {stp | rstp | mstp}

相关文档
最新文档