switch and router

一、
1.用户模式
2.系统模式
3.主机名sysname
4.设备管理方式
本地管理(console线路)
远程管理(vty线路)
vty线路可以同时允许多个用户登录,console线路只能运行一个用户登录
二、配置方式
A.console线路配置(password认证)
1) user-interface console 0
2) authentication-mode password
提示输入密码
注:password认证无需输入用户名,只需输入密码。aaa认证需输入用户名和密码
B.console线路配置(aaa认证)
1) user-interface console 0
2) authentication-mode aaa
3) quit
4) aaa
5) local-user xj password cipher ********(新增用户)
6) local-user xj(用户名) privilege level 0/1/2(赋权)
C.远程管理(vty线路)----》》telnet协议(明文协议)和ssh协议(密文协议)
1.Telnet
1)system-view进入系统视图
2)user-interface vty 0 4
3)authentication-mode aaa
4)quit
5)aaa
6)local-user xj password cipher ********
7)local-user xj(用户名) privilege level 0/1/2(赋权)
8)local_user xj service-type telnet
9)quit
2.SSH
1)system-view进入系统视图
2)stelnet server enable
3)rsa local_key_pair create
(建议密钥长度1024)
4) local-user xj password cipher ********(新增用户)
5) local-user xj(用户名) privilege level 0/1/2(赋权)
6) local_user xj service-type ssh
7) quit
8) user-interface vty 0 4
9) authentication-mode aaa
10) protocol inbound ssh
11) quit
12) ssh user xj authentication-type all
注意:如果是第一次使用ssh登录其他设备,客户端首先使用ssh client first-time enable
三、接口IP地址配置
a)规划ip
b)system-view进入系统视图
c)进入接口int g0/0/0
d)ip add 192.168.1.2 255.255.255.0
e)quit

转载于:https://www.cnblogs.com/xj2638795202/p/10830096.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值