创新路
我们一直在努力

华为路由器外网配置

华为路由器外网配置

一、组网需求

华为路由器联通外网,AR1配置固定IP来访问外网。

1584687323111194.png


二、路由器配置

[Huawei]info-center enable

Info: Information center is enabled.

[Huawei]interface giga 0/0/0

[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.3 24

[Huawei]interface giga 0/0/1

[Huawei-GigabitEthernet0/0/1]ip address 192.168.0.1 24

[Huawei-GigabitEthernet0/0/1]q

[Huawei]acl number 2000

[Huawei-acl-basic-2000]rule 5 permit source 192.168.0.0 0.0.0.255

[Huawei-acl-basic-2000]q

[Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

[Huawei]q

<Huawei>save

  The current configuration will be written to the device. 

  Are you sure to continue? (y/n)[n]:y

  It will take several minutes to save configuration file, please wait……..

  Configuration file had been saved successfully

  Note: The configuration file will take effect after being activated

<Huawei>

三、测试

打开Client1的命令行

ping 192.168.0.1,没有问题,连接正常

ping 192.168.1.3,没有问题,连接正常。

未经允许不得转载:天府数据港官方信息博客 » 华为路由器外网配置

客官点个赞呗! (0)
分享到:

评论 抢沙发

评论前必须登录!

天府云博 - 做有态度的开发&运维&设计学习分享平台!

联系我们百度云主机