#
sysname AR28-31(配置路由器名称)
#
cpu-usage cycle 1min
#
DNS resolve(打开域名解析)
DNS server 202.106.46.151(第一DNS服务器)
DNS server 202.106.0.20(第二DNS服务器)
#
radius scheme system
#
domain system
#
local-user admin
password ******
service-type telnet terminal
level 3
service-type ftp
#
acl number 2000(添加一个ACL)
rule 0 permit source 192.168.11.0 0.0.0.255(允许内网用户地址)
rule 1 deny(拒绝其他)
#
interface Aux0
async mode flow
#
interface Ethernet0/0
ip address 124.124.85.126 255.255.255.252(配置外网IP)
nat outbound 2000(NAT配ACL)
nat server protocol tcp global 124.124.85.126 any inside 192.168.11.248 any(内外网IP转换)
#
interface Ethernet0/1
ip address 192.168.11.248 255.255.255.0(配置内网IP)
#
interface NULL0
#
FTP server enable
#
ip route-static 0.0.0.0 0.0.0.0 124.124.85.126 preference 60(配置一条静态路由,注意这里不能用ethernet0/0,必须输入IP地址,我原来用ethernet0/0,但一直DNS解析不出来,郁闷,后来改成IP后就OK了)
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
authentication-mode scheme
#
return
Domain-server IpAddress
0 202.106.46.151
1 202.106.0.20
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
0.0.0.0/0 STATIC 60 0 124.65.185.25 Ethernet0/0
124.124.85.124/30 DIRECT 0 0 124.124.85.126 Ethernet0/0
124.124.85.126/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
192.168.11.0/24 DIRECT 0 0 192.168.11.248 Ethernet0/1
192.168.11.248/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Trying DNS server (202.106.46.151)
Name: www.a.shifen.com
Address: 202.108.22.5