【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《华为路由器配置实例详细备注讲解》,欢迎阅读!
华为路由器配置实例详细备注讲解
华为28-11路由器配置实例
1、进入系统(进入配置模式) system
System View: return to User View with Ctrl+Z. 2、为路由器取名与设置密码
[Quidway]local-user huawei New local user added.
[Quidway-luser-huawei]password cipher huawei #/为配置密码为huawei
3、设置服务类型、安全、访问列表
[Quidway-luser-huawei]service-type telnet #/可以执行远程登入 [Quidway-luser-huawei]level 3 #/设置安全级别 [Quidway-luser-huawei]acl number 2001 match-order auto [Quidway-acl-basic-2001]rule 0 permit source 192.168.1.0 0.0.0.255 [Quidway-acl-basic-2001]rule 1 deny
4、进入接口、并为接口添加IP地址
[Quidway-acl-basic-2001]int ethernet 0/0
[Quidway-Ethernet0/0]ip add XX.XX.158.58 255.255.255.252 /端口配置的IP地址为一个IP段 [Quidway-Ethernet0/0]nat outbound 2001 [Quidway-Ethernet0/0]int e 0/1
[Quidway-Ethernet0/1]ip add 192.168.1.1 255.255.255.0 /端口配置的IP地址为一个IP段 [Quidway-Ethernet0/1]ip route-static 0.0.0.0 0.0.0.0 XX.XX.158.57 /为内网的端口配置静态路由
5、配置DHCP服务器(用来为内网的PC机分配IP地址)
[Quidway]dhcp server forbidden-ip 192.168.1.1 [Quidway]dhcp server forbidden-ip 192.168.1.2 192.168.1.100
6、为DHCP服务器的地址池说明网络地址、子网隐码、网关、DNS [Quidway]dhcp server ip-pool 1
[Quidway-dhcp-pool-1]network 192.168.1.0 mask 255.255.255.0 [Quidway-dhcp-pool-1]gateway-list 192.168.1.1 [Quidway-dhcp-pool-1]dns-list 211.138.151.161 211.136.17.107 7、保存命令
[Quidway-dhcp-pool-1]save
The configuration will be written to the device. Are you sure?[Y/N]y
Now saving current configuration to the device. Saving configuration flash:/vrpcfg.cfg. Please wait...
本文来源:https://www.wddqxz.cn/a1a104081a2e453610661ed9ad51f01dc28157e1.html