Building configuration...
!
!
ip dhcp enable(开启DHCP功能)
ip dhcp server dns 211.138.106.2 211.138.106.7(设置分配给客户的DNS地址)
ip dhcp server leasetime 18000
ip dhcp server update arp
!
ip dhcp-client disable
!
urpf log off
!
ip local pool conflict-ip 254
ip local pool dhcp 10.10.10.2 10.10.10.254 255.255.255.0(配置地址池,地址池名字为DHCP,等下在接口下引用这个名字)
!
mac-filter permit all
!
blacklist disable
!
!
interface null1
!
interface fei_0/1(连接公网的接口)
ip address 192.168.11.2 255.255.255.192
negotiation auto
ip nat outside(做为nat的outside口)
!
interface fei_0/2(连接内网的接口)
ip address 10.10.10.1 255.255.255.0(配置内网接口ip地址)
peer default ip pool dhcp(确定内网pc机使用哪个地址池,地址名字为dhcp)
negotiation auto
ip dhcp mode server(在接口下使能dhcp功能)
ip dhcp server gateway 10.10.10.1(配置分配的默认网关地址)
ip nat inside(作为nat的inside接口)
!
interface fei_0/3
negotiation auto
!
!
reference clock local
!
ip nat max-entry-number 64
ip nat start(启用nat功能)
ip nat inside source list 1 interface fei_0/1 (配置允许内网地址进行nat转换,并且转换后的地址为外网接口fei——0/1地址)
ip nat translation timeout class a 20
ip nat translation timeout class b 60
ip nat translation timeout class c 150
ip nat translation timeout class d 300
ip nat translation timeout class e 1200
ip nat translation timeout protocol icmp a
ip nat translation timeout protocol ip d
ip nat translation timeout protocol tcp port 80 a
ip nat translation timeout protocol tcp d
ip nat translation timeout protocol udp port 4000 d
ip nat translation timeout protocol udp port 4001 d
ip nat translation timeout protocol udp port 4002 d
ip nat translation timeout protocol udp port 4003 d
ip nat translation timeout protocol udp port 8000 d
ip nat translation timeout protocol udp port 8001 d
ip nat translation timeout protocol udp c
ip nat translation maximal default 65535
!
ip route 0.0.0.0 0.0.0.0 192.168.11.1(添加一条默认出口路由)
!
voice class service
!
!
ip prefix-list 1 seq 5 permit 10.10.10.0 24
!
!
no ipv6 nat enable
!
!
!
acl standard number 1(配置访问列表,用于允许哪些地址进行nat转换,在上面被引用)
rule 1 permit 10.10.10.0 0.0.0.255
!
!
!
ip tcp intercept mode intercept
ip tcp intercept drop-mode oldest
ip tcp intercept watch-timeout 30
ip tcp intercept finrst-timeout 5
ip tcp intercept connection-timeout 86400
ip tcp intercept max-incomplete high 1100
ip tcp intercept max-incomplete low 900
ip tcp intercept one-minute high 1100
ip tcp intercept one-minute low 900
!
nas
!
version V4.8.01.B.01
!
nvram mng-ip-address 10.40.89.8 255.255.0.0
!
nvram boot-username mmba
!
nvram boot-password mmba
!
nvram boot-server 10.40.89.78
!
nvram default-gateway 1.1.1.1
!
nvram imgfile-location local
!
hostname DX_liHuaDaJiuDian
!
forward re-fragment time 6
!
enable secret level 15 5 Y0j79VrXYsLC0nOkCXFmaA==
!
username zxr10 password zsr
username lhdjd password lhdjd
!
user-authentication-type local
user-authorization-type local
!
line console 0
no login authentication
!
banner incoming @
*****************************************************
Welcome to ZXR10 ZSR Serial Router of ZTE Corporation
*****************************************************
@
!
!
lfap disable
lfap max-send-fun-size 100
lfap update-interval 60
lfap server-retry-interval 60
lfap message-response-interval 60
lfap ka-interval 60
lfap flow-expired-time 600
!
!
!
snmp-server location No.68 Zijinghua Rd. Yuhuatai District, Nanjing, China
snmp-server contact +86-25-52870000
snmp-server packetsize 1400
snmp-server engine-id 830900020300010289d64401
snmp-server view AllView internet included
snmp-server view DefaultView system included
!
!
logging on
logging buffer 200
logging mode fullcycle
logging console notifications
logging level notifications
logging cmdlog-interval 2880
logging timestamps datetime localtime
alarm cpuload-on
alarm cpuload-interval 30
alarm cpuload-threshold high-grade 95 middle-grade 85 low-grade 75
syslog-server facility local0
!
line console idle-timeout 120
line console absolute-timeout 1440
line telnet idle-timeout 120
line telnet absolute-timeout 1440
!
ssh server authentication ispgroup 1
ssh server authentication mode local
ssh server authentication type chap
no ssh server only
ssh server version 2
!
!
radius auto-change off
!
!
tacacs disable
tacacs-server timeout 5
tacacs-server packet 1024
!
!
amat disable
!
end
DX_liHuaDaJiuDian#
DX_liHuaDaJiuDian#
二、中兴路由器怎么设置图解中兴路由器设置方法:
【家庭网络环境布线】:
1、有猫(modem):猫(modem)----路由器wan口;路由器lan口----电脑。
2、没有猫(modem):网线----路由器wan口;路由器lan口----电脑。
【电脑进入路由器】:
1、电脑ip、dns设置自动获取。
2、打开浏览器,在地址栏输入192.168.1.1(一般路由器地址是这个或者查看路由器背面的登录信息)进路由-输入用户名,密码 ,(默认一般是admin)。
【设置路由器拨号】:
1、在【设置向导】里,选择【PPPoE拨号】(有些是ADSL拨号)这一项,按提示步骤输入上网的用户名和密码,保存。
2、在【网络参数】--【WAN设置】里,选【正常模式】,在【连接】的三个选项,选择【PPPoE拨号】这一项。
下面就是选择【自动连接】,保存,退出。