比如h3c-msr/sr/ar系列路由器的基本配置命令如下:
#
aclnumber3000
rule1permitipsource192.168.1.00.255.255.255
rule10denyip
#
dhcpserverip-pool1
network192.168.1.0mask255.255.255.0
gateway-list192.168.1.1
dns-list202.96.64.68//自己改成本地dns
expiredunlimited
#
interfaceethernet0/0
portlink-moderoute
natoutbound3000
descriptionto_waiwang-wan
ipaddress10.82.2.97255.0.0.0
#
interfaceethernet0/1
portlink-moderoute
descriptionto_neiwang-lan
ipaddress192.168.1.1255.255.255.0
#
iproute-static0.0.0.00.0.0.010.82.2.x//修改成外网的网关
#
dhcpserverforbidden-ip192.168.1.1
#
dhcpenable
#