AlcatelLucent交换机NTP配置手册0108Word下载.docx
《AlcatelLucent交换机NTP配置手册0108Word下载.docx》由会员分享,可在线阅读,更多相关《AlcatelLucent交换机NTP配置手册0108Word下载.docx(12页珍藏版)》请在冰豆网上搜索。
/etc#morentp.conf
#/etc/ntp.conf,configurationforntpd;
seentp.conf(5)forhelp
driftfile/var/lib/ntp/ntp.drift
#Enablethisifyouwantstatisticstobelogged.
statsdir/var/log/ntpstats/
statisticsloopstatspeerstatsclockstats
filegenloopstatsfileloopstatstypedayenable
filegenpeerstatsfilepeerstatstypedayenable
filegenclockstatsfileclockstatstypedayenable
#YoudoneedtotalktoanNTPserverortwo(orthree).
#server
server127.127.1.0
fudge127.127.1.0stratum2
#Accesscontrolconfiguration;
see/usr/share/doc/ntp-doc/html/accopt.htmlfor
#details.Thewebpage<
http:
//support.ntp.org/bin/view/Support/AccessRestrictions>
#mightalsobehelpful.
#
#Notethat"
restrict"
appliestobothserversandclients,soaconfiguration
#thatmightbeintendedtoblockrequestsfromcertainclientscouldalsoend
#upblockingrepliesfromyourownupstreamservers.
#Bydefault,exchangetimewitheverybody,butdon'
tallowconfiguration.
#restrict-4defaultkodnotrapnomodifynopeernoquery
#restrict-6defaultkodnotrapnomodifynopeernoquery
#Localusersmayinterrogatethentpservermoreclosely.
restrict127.0.0.1
restrict:
:
1
#Clientsfromthis(example!
)subnethaveunlimitedaccess,butonlyif
#cryptographicallyauthenticated.
restrictdefaultnomodify
#Ifyouwanttoprovidetimetoyourlocalsubnet,changethenextline.
#(Again,theaddressisanexampleonly.)
#broadcast192.168.123.255
#Ifyouwanttolistentotimebroadcastsonyourlocalsubnet,de-commentthe
#nextlines.Pleasedothisonlyifyoutrusteverybodyonthenetwork!
disableauth
broadcastclient
/etc#chkconfigntp
ntpon
/etc#date
SatJan801:
23:
56CST2011
/etc#date-u
FriJan717:
59UTC2011
/etc#
6850-1->
showconfigurationsnapshotntp
!
NTP:
ntpserver10.1.53.4minpoll4prefer
ntpbroadcast-clientenable
ntpbroadcast-delay4000
ntpclientenable
showntpstatus
Currenttime:
Fri,Jan7201117:
25:
57.463(UTC),
LastNTPupdate:
33.130(UTC),
Serverreference:
10.1.53.4,
Clientmode:
enabled,
Broadcastclientmode:
Broadcastdelay(microseconds):
4000,
Serverqualification:
synchronized,
Stratum:
16,
MaximumAssociationsAllowed:
32,
Authentication:
disabled,
SourceIPConfiguration:
default
showntpserverstatus
IPaddress=10.1.53.4,
Hostmode=client,
Peermode=server,
Prefer=yes,
Version=4,
Key=0,
Stratum=3,
Minpoll=4(16seconds),
Maxpoll=10(1024seconds),
Delay=0.016seconds,
Offset=0.066seconds,
Dispersion=0.017seconds
Rootdistance=0.000,
Precision=-20,
ReferenceIP=127.127.1.0,
Status=configured:
reachable:
synchronizationpeer,
Uptimecount=10986seconds,
Reachability=ff,
Unreachablecount=0,
Statsresetcount=7367seconds,
Packetssent=162,
Packetsreceived=162,
Duplicatepackets=5,
Bogusorigin=0,
Badauthentication=0,
Baddispersion=0,
LastEvent=peerchangedtoreachable,
showntpclient
Fri,Jan7201117:
26:
20.813(UTC),
synchronized
showntpclientserver-list
Legends:
+activepeer,-passivepeer,=client,*currentsystempeer,
^broadcastserver,'
broadcastclient
ModeIPAddressVerKeyStDelayOffsetDisp
----+-----------------+---+-------+----+----------+-----------------+----------
*10.1.53.44030.0160.0660.017
systemtime13:
22:
30
Fri,Jan7201119:
34.366(UTC),
29:
53.130(UTC),
大概十分钟后交换机系统时间自动进行同步:
39:
23.308(UTC),
14.224(UTC),
PC上的时间同步
两台交换机详细配置
showconfigurationsnapshotall
StackManager:
Chassis:
systemnamevxTarget
Configuration:
VLAN:
vlan1enablename"
VLAN1"
vlan2enablename"
VLAN2"
vlan2portdefault1/2
vlan100enablename"
VLAN100"
vlan100portdefault1/1
VLANSL:
IP:
ipserviceall
ipinterfacedhcp-clientvlan1ifindex1
ipinterface"
vlan2"
address10.1.53.254mask255.255.255.0vlan2ifindex2
vlan100"
address172.16.1.1mask255.255.255.252vlan100ifindex3
IPX:
IPMS:
AAA:
aaaauthenticationdefault"
local"
aaaauthenticationconsole"
PARTM:
AVLAN:
802.1x:
QOS:
Policymanager:
Sessionmanager:
sessionpromptdefault"
"
SNMP:
RIP:
iploadrip
ipripinterface"
statusenable
ipripstatusenable
OSPF:
BFD-STD:
ISIS:
IPv6:
IPSec:
IPmulticast:
iproute-map"
local2rip"
sequence-number50actionpermit
ipredistlocalintoriproute-map"
RIPng:
OSPF3:
BGP:
Healthmonitor:
Interface:
Udld:
Netsec:
LinkAggregate:
PortMapping:
VLANAGG:
802.1Q:
Spanningtree:
bridgemode1x1
Bridging:
Portmirroring:
UDPRelay:
Serverloadbalance:
Systemservice:
swlogconsolelevelinfo
SSH:
VRRP:
Web:
AMAP:
LLDP:
LanPower:
RDP:
VLANSTACKING:
Ethernet-OAM:
EFM-OAM:
ERP:
SAA:
DHCPServer:
6850-2->
showconfigurationsnapshotall
vlan6enablename"
VLAN6"
vlan6portdefault1/2
vlan6"
address10.1.51.254mask255.255.255.0vlan6ifindex2
address172.16.1.2mask255.255.255.252vlan100ifindex3
Loopback0"
address1.1.1.1
ipmanaged-interfaceLoopback0applicationntp
sessiontimeoutcli10000
dhcp-serverenable