AAA服务器配置

1、配置cloud云的出端口和入端口(外网)

1)创建环回网卡win + r 打开运行框 , 在里面输入hdwwiz


创建环回接口

2)查看环回网卡是否创建成功


创建成功

3)共享网络
共享网络

4)查看IP地址与子网掩码


如果ip不是192.168.137.1,可能是因为使用了其他网络共享的,把无关的网络禁用即可。

5)配置cloud


创建端口1

创建外网端口2,如果查找不到刚刚创建的环回接口,重启计算机即可

端口映射

6)连接拓扑


拓扑图

7)查看连通性


如果出现Request time out,关闭电脑的防火墙即可

2、配置winradius服务器

1)启动winradius.exe,winradius的下载链接链接:https://pan.baidu.com/s/1jsU4IdUJC1mb5SO0Soh3NQ
提取码:7224

启动winradius

2)配置密钥

配置多重密钥

配置客户端IP,此处的IP地址是AR2 G0/0/1口的ip地址

3)添加账号user1和user2


添加账号user1,密码user111

添加账号user,密码user222

4)查看端口


认证端口号1812

3、客户端配置命令

1)在AR2上更改AAA方案,使用radius服务器进行认证

[AR2]aaa
[AR2-aaa]authentication-scheme default
[AR2-aaa-authen-default]authentication-mode radius

2)在AR2上配置radius服务器模版

[AR2]radius-server template myradius
Info: Create a new server template.
[AR2-radius-myradius]radius-server authentication 192.168.137.1 1812
[AR2-radius-myradius]radius-server shared-key 123456

3)在AR1的default_admin域中配置radius服务器模板

[AR2]aaa
[AR2-aaa]domain default_admin
[AR2-aaa-domain-default_admin]radius-server myradius

4)在AR2上使用命令测试radius用户user1和user2

[AR2]test-aaa user1 user111 radius-template myradius
[AR2]
Info: Account test succeed.
[AR2]test-aaa user2 user222 radius-template myradius
[AR2]
Info: Account test succeed.

4、设置VTY线路的认证模式

[AR2]user-interface vty 0 4
[AR2-ui-vty0-4]authentication-mode aaa

5、从AR1向AR2发起telnet连接,并使用AR2进行radius服务器认证

认证通过,但是无法执行system-view命令。因为user1的默认级别为0,管理员可以使用super命令修改级别

6、在AR2上配置修改级别的认证方式

[AR2]aaa
[AR2-aaa]authentication-scheme default  
[AR2-aaa-authen-default]authentication-super super
[AR2-aaa-authen-default]q
[AR2-aaa]q  
[AR2]super password level 15 cipher 123456
<AR1>telnet 192.168.1.2
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.2 ...
  Connected to 192.168.1.2 ...

Login authentication

Username:user2
Password:
<AR2>super 15
  Password: 
  Now user privilege is level 15, and only those commands whose level is
  equal to or less than this level can be used.
  Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
<AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]dis    
[AR2]osp    
[AR2]ospf 1
[AR2-ospf-1]area 0
[AR2-ospf-1-area-0.0.0.0]
查看AR2上的radius服务器模板配置

在AR2上查看default_admin的配置
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容