接线方式:
☛ 必接:门禁NC接锁+,锁-接电源GND,电源12v接门禁COM,如下图所示

☛ 可接:如需反馈门当前开门/关门的状态,则需将门禁的门磁端子S接锁NC,门禁的GND接锁COM,如下图所示,没有此需求,可以不接。

接线方式:
☛ 必接:门禁NC接锁+,锁-接电源GND,电源12v接门禁COM,如下图所示

☛ 可接:如需反馈门当前开门/关门的状态,则需将门禁的门磁端子S接锁NC,门禁的GND接锁COM,如下图所示,没有此需求,可以不接。

接线说明:
(1)第一个磁力锁的电源+接第二个磁力锁的电源+,电源-接电源-
(2)门禁设备的COM接外接电源+,门禁设备的NC接第一个磁力锁的电源+,外接电源-接第一个磁力锁的电源-

接线说明:
(1)锁的V+和门禁设备的COM,都接到外接电源的12V
(2)锁的L-和GND接外接电源的GND;
(3)锁的L+接门禁设备的NO
注:需要将门禁设备的门锁动作时间设为1s(门禁设备通过4200客户端调整门锁动作时间)

接线说明:
门禁设备的NO接电源-,电源+接锁+,锁-接门禁设备的COM,如需反馈门当前开门/关门的状态,则需将门禁的门磁端子S接锁NC,门禁的GND接锁COM

DS-K260xE系列门禁主机接磁力锁/阳极锁/电插锁(NC,COM常闭型)
接线方式:
必接:门禁设备的NC接外接电源-,外接电源+接锁+,锁-接门禁设备的COM,

可接:如需反馈门当前开门/关门的状态,则需将门禁的门磁端子S接锁NC,门禁的GND接锁COM,没有此需求,可以不接。

首先要将继电器(跳冒)状态切换NO,(DS-K260x系列门禁主机,门锁(NO,NC)跳冒切换)
方法一
外部金属端子(带电)接线,首先将继电器状态选为NO,将电锁正负极分别对应接锁1+和锁1﹣,如需反馈门当前开门/关门的状态,则需将门禁的门磁接锁NC,门禁的GND接锁COM
注意:无需给锁外接电源,但是电锁正负极和门禁主机接线端子正负极一定要对应。

方法二
裸板(不带电)接线,首先将继电器状态选为NO,锁正极接门禁主机裸板D1+ ,锁负极接锁电源负极,锁电源正极接门禁主机裸板上的D1-。
注意:电锁需要外接12V的电源

方法一
外部金属端子(带电)接线,首先要将继电器状态选择为NC,(DS-K260x系列门禁主机,门锁(NO,NC)跳冒切换)
注意:无需给锁外接电源,但是电锁正负极和门禁主机接线端子正负极一定要对应。
☛ 必接:磁力锁V+和V-分别对应接门禁端子锁1+和锁1-,参考下图接线:

☛ 可接:如现场还需反馈门当前开门/关门的状态,则需将门禁的门磁接锁NC,门禁的GND接锁COM,参考下图接线,没有此需求,可以不接。

方法二
裸板(不带电)接线,首先要将继电器状态选择为NC,磁力锁正极接门禁主机裸板D1+ ,锁负极接锁电源负极,锁电源正极接门禁主机裸板上的D1-,注意:电锁需要外接12V的电源

一、 组网需求
Device A和Device B使用RIP路由协议互联,为提高安全性,Device A和Device B之间配置使用MD5加密算法来对RIP报文进行加密。
Device B与172.168.1.1/24通过静态路由访问。
二、组网图

三、 配置要点
● 在所有路由设备上配置密钥。
● 在所有路由设备上配置RIP。
● 在所有路由设备上启用RIP认证。
四、 配置步骤
(1) 配置接口IP。
# Device A的配置。
Device A> enable
Device A# configure terminal
Device A(config)# interface gigabitEthernet 0/1
Device A(config-if)# ip address 192.168.27.1 255.255.255.0
Device A(config-if)# exit
# Device B的配置。
Device B> enable
Device B# configure terminal
Device B(config)# interface gigabitEthernet 0/1
Device B(config-if-GigabitEthernet 0/1)# ip address 192.168.27.2 255.255.255.0
Device B(config-if-GigabitEthernet 0/1)# exit
(2) 配置密钥和密钥生存时间。
# Device A的配置。
Device A# configure terminal
Device A(config)# key chain ripchain
Device A(config-keychain)# key 1
Device A(config-keychain-key)# key-string Hello
Device A(config-keychain-key)# accept-lifetime 16:30:00 Oct 1 2013 duration 43200
Device A(config-keychain-key)# send-lifetime 16:30:00 Oct 1 2013 duration 43200
Device A(config-keychain-key)# exit
Device A(config-keychain)# key 2
Device A(config-keychain-key)# key-string World
Device A(config-keychain-key)# accept-lifetime 04:00:00 Oct 2 2013 infinite
Device A(config-keychain-key)# send-lifetime 04:00:00 Oct 2 2013 infinite
Device A(config-keychain-key)# exit
# Device B的配置。
Device B# configure terminal
Device B(config)# key chain ripchain
Device B(config-keychain)# key 1
Device B(config-keychain-key)# key-string Hello
Device B(config-keychain-key)# accept-lifetime 16:30:00 Oct 1 2013 duration 43200
Device B(config-keychain-key)# send-lifetime 16:30:00 Oct 1 2013 duration 43200
Device B(config-keychain-key)# exit
Device B(config-keychain)# key 2
Device B(config-keychain-key)# key-string World
Device B(config-keychain-key)# accept-lifetime 04:00:00 Oct 2 2013 infinite
Device B(config-keychain-key)# send-lifetime 04:00:00 Oct 2 2013 infinite
Device B(config-keychain-key)# exit
(3) RIP基础配置。
# Device A的配置。
Device A(config)# router rip
Device A(config-router)# version 2
Device A(config-router)# network 192.168.27.0
Device A(config-router)# exit
# Device B的配置。
Device B(config)# router rip
Device B(config-router)# version 2
Device B(config-router)# network 192.168.27.0
Device B(config-router)# redistribute static
Device B(config-router)# exit
(4) 接口配置认证模式为MD5,指定认证密钥链。
# Device A的配置。
Device A(config)# interface gigabitEthernet 0/1
Device A(config-if-GigabitEthernet 0/1)# ip rip authentication key-chain ripchain
Device A(config-if)# ip rip authentication mode md5
# Device B的配置。
Device B(config)# interface gigabitEthernet 0/1
Device B(config-if-GigabitEthernet 0/1)# ip address 192.168.27.2 255.255.255.0
Device B(config-if-GigabitEthernet 0/1)# ip rip authentication key-chain ripchain
Device B(config-if-GigabitEthernet 0/1)# ip rip authentication mode md5
五、验证配置结果
# 检查Device A是否能收到Router B发出的路由。
Device A# show ip route rip
R 172.168.0.0/16 [120/1] via 192.168.27.2, 00:05:16, GigabitEthernet 0/1
六、 配置文件
● Device A的配置文件。
!
key chain ripchain
key 1
key-string Hello
accept-lifetime 16:30:00 Oct 1 2013 duration 43200
send-lifetime 16:30:00 Oct 1 2013 duration 43200
key 2
key-string World
accept-lifetime 04:00:00 Oct 2 2013 infinite
send-lifetime 04:00:00 Oct 2 2013 infinite
!
interface gigabitEthernet 0/1
ip address 192.168.27.1 255.255.255.0
ip rip authentication key-chain ripchain
ip rip authentication mode md5
!
router rip
version 2
network 192.168.27.0
!
● DeviceB的配置文件。
!
key chain ripchain
key 1
key-string Hello
accept-lifetime 16:30:00 Oct 1 2013 duration 43200
send-lifetime 16:30:00 Oct 1 2013 duration 43200
key 2
key-string World
accept-lifetime 04:00:00 Oct 2 2013 infinite
send-lifetime 04:00:00 Oct 2 2013 infinite
!
interface gigabitEthernet 0/1
ip address 192.168.27.2 255.255.255.0
ip rip authentication key-chain ripchain
ip rip authentication mode md5
!
router rip
version 2
network 192.168.27.0
redistribute static
!
七、常见错误
● 密钥未正确关联到路由协议,导致认证不生效。
● 多台设备上配置的密钥不一致,导致认证失败。