路由器网络地址转换的配置 网络结构图 外网->AR28-11->交换机->PC sys
======配置DNS======
[Quidway] DNS resolve
[Quidway] DNS server 202.96.209.5
[Quidway] DNS server 202.96.209.133
======配置内网DHCP 地址池======
[Quidway] dhcp enable 开启DHCP服务
[Quidway] dhcp server forbidden-ip 10.10.10.1 保留网关IP
[Quidway] dhcp server ip-pool 1
[Quidway-dhcp-pool-1] network 10.10.10.0 mask 255.255.255.0
[Quidway-dhcp-pool-1] gateway-list 10.10.10.1
[Quidway-dhcp-pool-1] dns-list 10.10.10.1 或(202.96.209.5 202.96.209.133)
[Quidway-dhcp-pool-1] domain-name pc-mservices.com
======配置访问规则======
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule 0 permit source 10.10.10.0 0.0.0.255
[Quidway-acl-basic-2000] rule 1 deny 拒绝其他
======配置WAN 外网======
[Quidway] interface Ethernet0/0
[Quidway-Ethernet0/0] ip address 192.168.0.185 255.255.252.0
[Quidway-Ethernet0/0] nat outbound 2000
[Quidway-Ethernet0/0] nat server protocol tcp global 192.168.0.185 any inside 10.10.10.1 any
======配置LAN内网======
[Quidway] interface Ethernet0/1
[Quidway-Ethernet0/0] ip address 10.10.10.1 255.255.255.0
======配置一条静态路由=====
[Quidway] ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 preference 60
保存配置重启路由
|