目录
Telnet配置
FTP配置
路由IP配置
VLAN配置
Eth-trunk配置
STP配置
DHCP配置
帧中继配置
单臂路由配置
RIP配置
OSPF配置
VRRP配置
HDLC配置
PPP配置
以太网接口配置
防火墙配置
链路技术
其他配置
设备版本升级
Telnet配置
1、密码登录
[Huawei]user-interface console 0 //进入管理控制口
[Huawei-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):输入密码
[Huawei-ui-console0]user privilege level ? //设置特权等级
[Huawei-ui-console0]idle-timeout 20 0 //设置空闲超时时间为20分钟,默认为10分钟
2、用户和密码登录
[Huawei]user-interface console 0 //进入管理控制口
[Huawei-ui-console0]authentication-mode aaa
[Huawei-ui-console0]quit
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher hw(密码)
[Huawei-aaa]local-user huawei service-type terminal //从终端登录
3、PC通过以太网口远程登录配置
#AAA模式远程登录
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1]aaa //进入认证、授权、计费模式(简称AAA模式)
[R1-aaa]local-user admin password cipher 123456 //配置本地用户和密码
[R1-aaa]local-user admin service-type telnet //选择授权用户的服务类型
[R1-aaa]local-user admin privilege level 3 //设置管理员用户级别
#仅密码远程登录
[R2]user-interface vty 0 4 //虚拟用户终端接口
[R2-ui-vty0-4]authentication-mode password //配置用户终端的认证模式
[R2-ui-vty0-4]set authentication password simple 123456 //设置登录用户密码
[R2-ui-vty0-4]user privilege level 3 //设置用户等级
[R2-ui-vty0-4]user network-admin //设置登录用户的参数
4、设置超级密码
[Huawei]super password level 3 cipher 123456(作用?)
FTP配置
1、将路由器作为FTP服务器
[R1]ftp server enable
[R1]aaa
[R1-aaa]local-user winda password cipher aqx123456(字母与数字的组合)
[R1-aaa]local-user winda privilege level 15
[R1-aaa]local-user winda service-type ftp
[R1-aaa]local-user winda ftp-directory flash: //指定目录
2、登录FTP服务器,并传送文件
ftp 10.0.12.2
User(10.0.12.2:(none)):huawei
331 Password required for huawei.
Enter password:
230 User logged in.
[R1-ftp]put portalpage.zip //上传文件
[R1-ftp]get portalpage.zip portal.zip //下载文件并改名字
delete /unreserved portal.zip //彻底删除该文件
其它配置
配置登录标语
[R1]header shell information "Welcome to HuaWei"
指定下次启动装载的配置文件
startup saved-configuration iascfg.zip
指定下次启动装载的配置文件
factory-configuration reset
设置下次启动用的文件
startup saved-configuration 文件名
删除保存的配置文件
reset saved-configuration
reboot
Warning: All the configuration will be saved to the next startup configuration.
Continue ? [y/n]:n
关闭消息提示功能
[R1]undo info-center enable //关闭提示信息,提高配置时的视觉
或
undo terminal monitor //关闭日志提示消息(很烦人的一个东西)
路由IP配置
浮动静态路由
[Huawei]ip route-static 192.168.1.0 24(目标网络) 192.168.2.1(下一跳IP) preference 80