AR1 配置:
更名R1配置GE0/0/0的IP地址为200.1.1.1/24
sysname R1
interface GigabitEthernet0/0/0
ip address 200.1.1.1 255.255.255.0
AR2配置:
进入系统视图,更名R2并配置GE0/0/0的IP地址为200.1.1.2/24并设置默认路由
sysname R2
interface GigabitEthernet0/0/0
ip address 200.1.1.2 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 200.1.1.1
开启ftp,telnet,ssh服务的功能并设置用户默认工作目录
telnet server enable
ftp server enable
set default ftp-directory flash:
stelnet server enable
设置3A认证授权
aaa
authentication-scheme test1
authorization-scheme test2
domain ftp
authentication-scheme test1
authorization-scheme test2
domain telnet
authentication-scheme test1
authorization-scheme test2
domain ssh
authentication-scheme test1
authorization-scheme test2
local-user ftp1@ftp password cipher 123456
local-user ftp1@ftp privilege level 15
#设置权限为15
local-user ftp1@ftp ftp-directory flash:
local-user ftp1@ftp service-type ftp
local-user ssh1@ssh password cipher 123456
local-user ssh1@ssh privilege level 15
local-user ssh1@ssh service-type ssh
local-user telnet1@telnet password cipher 123456
local-user telnet1@telnet privilege level 3
local-user telnet1@telnet service-type telnet
开启vtp协议:
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
测试telnet
原文地址:https://blog.csdn.net/m0_59113926/article/details/120256474
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。