R1与R3的双向CHAP验证
时间: 2023-08-22 13:10:15 浏览: 21
假设R1的用户名为"r1user",密码为"r1password",R3的用户名为"r3user",密码为"r3password",以下是R1与R3之间进行双向CHAP验证的配置步骤:
1. 在R1上创建本地用户并配置密码:
```
[R1] aaa
[R1-aaa] local-user r3user password irreversible-cipher r3password
```
2. 在R1的接口上启用CHAP认证,并配置远程认证服务器地址和密钥:
```
[R1] interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0] authentication-mode chap
[R1-GigabitEthernet0/0/0] chap user r3user password cipher r3password
[R1-GigabitEthernet0/0/0] quit
[R1] radius scheme r3radius
[R1-radius-r3radius] radius-server user-name-format without-domain
[R1-radius-r3radius] radius-server host 10.0.0.3 key cipher r3key
[R1-radius-r3radius] quit
[R1] domain system
[R1-domain-system] authentication login radius-scheme r3radius
```
3. 在R3上创建本地用户并配置密码:
```
[R3] aaa
[R3-aaa] local-user r1user password irreversible-cipher r1password
```
4. 在R3的接口上启用CHAP认证,并配置远程认证服务器地址和密钥:
```
[R3] interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0] authentication-mode chap
[R3-GigabitEthernet0/0/0] chap user r1user password cipher r1password
[R3-GigabitEthernet0/0/0] quit
[R3] radius scheme r1radius
[R3-radius-r1radius] radius-server user-name-format without-domain
[R3-radius-r1radius] radius-server host 10.0.0.1 key cipher r1key
[R3-radius-r1radius] quit
[R3] domain system
[R3-domain-system] authentication login radius-scheme r1radius
```
以上是R1与R3之间进行双向CHAP验证的配置步骤,需要注意的是,双向CHAP认证需要在两台设备上都进行配置,并且配置的用户名和密码需要一致。
相关推荐














