Case 4 配置路由器为DHCP服务器.定义域名为Nara.com;要给客户机分配的IP地址段为1.1.16.0/24;指定DNS服务器地址为202.100.192.68和202.100.192.69;指定默认网关的地址为1.1.16.1;并且IP租约时间为永不释放:4 \# E4 I) o5 w0 N
!
+ S! P5 c# S2 \6 X no ip dhcp conflict logging( Q) m! |" v8 x( q |4 b
ip dhcp excluded-address 1.1.16.1( a- W# r _5 x( z/ D8 ~$ [
ip dhcp excluded-address 1.1.16.255
" t3 M6 j1 p6 a% L; R; v% g* n0 ` !, {3 O8 n% k% z' Z3 F9 x* R
ip dhcp pool Aiko
8 k$ K0 h9 W3 {9 K network 1.1.16.0 /24- H8 i! X1 j Z& B
domain-name Nara.com6 Q0 N" i) ^& o; A) G4 x
dns-server 202.100.192.68 202.100.192.692 ?* ]& z) X) v! i4 i4 l2 _
default-router 1.1.16.17 M; R( R: z, t) X
lease infinite$ t' J5 x* T8 {3 `, ]; n: o
!# R1 w V, u" q2 n S( O
Configuring NTP& Q9 O; S2 S x4 u' _
配置网络时间协议(NTP)的步骤如下:
4 B, m4 X+ a ]' `# M 1.定义NTP服务器以及精度:/ c, B0 d0 b3 t& T
Aiko(config)#ntp master [stratum]
7 @0 w/ g3 P$ _ 2.定义NTP客户机和NTP服务器之间的关联:
; U" S( v- f8 `0 Y Aiko(config)#ntp server {ip-address} [key key-id] [source interface]0 d/ C( O7 ?; x, f O4 Z+ X( {
3.定义NTP信息的源IP地址:1 B: N! G! z5 _" Y" X
Aiko(config)#ntp source {interface}+ X4 O0 \# a9 Q# `! V) i1 ?/ a# O
4.启用NTP的认证.可选:
5 t$ b" b4 s3 Z) S5 |) P Aiko(config)#ntp authenticate
( O% M3 L9 Z4 s 5.定义密码.可选:2 c# G+ |/ S8 p; R* N* `+ m
Aiko(config)#ntp authentication-key {key-id} md5 {password}
2 G4 k2 J( E" C8 { 6.定义被信任的钥匙.可选:
- ~. Z. j+ b. x c7 G" x Written by Aiko ft. Asuqa
/ {1 I1 [% M O5 @8 P ntp trusted-key {key-id} |