比如H3C-MSR/SR/AR系列路由器的基本配置命令如下:
#
acl number 3000
rule 1 permit ip source 192.168.1.0 0.255.255.255
rule 10 deny ip
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
dns-list 202.96.64.68 //自己改成本地DNS
expired unlimited
interface Ethernet0/0
port link-mode route
nat outbound 3000
description TO_waiwang-WAN
ip address 10.82.2.97 255.0.0.0
interface Ethernet0/1
description TO_neiwang-LAN
ip address 192.168.1.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 10.82.2.x //修改成網路的閘道器
dhcp server forbidden-ip 192.168.1.1
dhcp enable
比如H3C-MSR/SR/AR系列路由器的基本配置命令如下:
#
acl number 3000
rule 1 permit ip source 192.168.1.0 0.255.255.255
rule 10 deny ip
#
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
dns-list 202.96.64.68 //自己改成本地DNS
expired unlimited
#
interface Ethernet0/0
port link-mode route
nat outbound 3000
description TO_waiwang-WAN
ip address 10.82.2.97 255.0.0.0
#
interface Ethernet0/1
port link-mode route
description TO_neiwang-LAN
ip address 192.168.1.1 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 10.82.2.x //修改成網路的閘道器
#
dhcp server forbidden-ip 192.168.1.1
#
dhcp enable
#