From 10f86a0bdef00164bf137719e7591a42b841a69e Mon Sep 17 00:00:00 2001 From: ZRK Date: Mon, 31 Mar 2025 19:57:58 +0800 Subject: [PATCH 1/2] Console,Telnet,SSH --- .../20250331.md" | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 "43 \345\221\250\347\221\236\345\207\257/20250331.md" diff --git "a/43 \345\221\250\347\221\236\345\207\257/20250331.md" "b/43 \345\221\250\347\221\236\345\207\257/20250331.md" new file mode 100644 index 0000000..4bde999 --- /dev/null +++ "b/43 \345\221\250\347\221\236\345\207\257/20250331.md" @@ -0,0 +1,43 @@ +# 一、Console密码设置: +- 1.进特权:enable +- 2.进全局:conf t +- 3.进线路:line console 0 +- 4.设密码:password ~~~(明文) +- 5.启用密码登入:login +- 6.返回特权:end +- 7.查看配置:show running-config(特权) +- 8.保存:write +- **全局加密:service password-encryption(弱加密,全局)** + +# 二、Telnet +- 1.进特权:enable +- 2.进全局:conf t +- 3.设置特权密码:enable password ~~ **(加密:enable secret ~)** +- 4.进虚拟:line vty 0 4 +- 5.设密码:password ~~~(明文) +- 6.启用密码登入:login +- 7.指定登入方式:transprot input telnet +- 8.返回上一级:exit +- 9.配置VLAN1:interface vlan 1 +- 10.为交换机设ip:ip address ~ ~ +- 11.激活虚拟接口:no shutdown +- 12.返回特权:end +- 13.保存:write + +# 三、SSH +- 1.进特权:enable +- 2.进全局:conf t +- 3.设置特权密码:enable password ~~ **(加密:enable secret ~)** +- 4.修改主机名:hostname~ +- 5.域名:ip domain-name ~.com +- 6.生成RSA密钥:crypto key generate ras (可直接回车) +- 7.创建用户/密码:username~secret~ +- 8.进虚拟:line vty 0 4 +- 9.指定登录方式:transprot input ssh +- 10.启用用户登入:login local +- 11.返回上一级:exit +- 12.配置VLAN1:interface vlan 1 +- 13.为交换机设ip:ip address ~ ~ +- 14.激活虚拟接口:no shutdown +- 15.返回特权:end +- 16.保存:write \ No newline at end of file -- Gitee From ab8eaa3d2899c96f949427d359f867d0574aba5d Mon Sep 17 00:00:00 2001 From: ZRK Date: Wed, 2 Apr 2025 19:20:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=92=E5=88=86=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E5=B1=80=E5=9F=9F=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "43 \345\221\250\347\221\236\345\207\257/20250401.md" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "43 \345\221\250\347\221\236\345\207\257/20250401.md" diff --git "a/43 \345\221\250\347\221\236\345\207\257/20250401.md" "b/43 \345\221\250\347\221\236\345\207\257/20250401.md" new file mode 100644 index 0000000..19e22d8 --- /dev/null +++ "b/43 \345\221\250\347\221\236\345\207\257/20250401.md" @@ -0,0 +1,11 @@ +# 划分虚拟局域网: +- 1.创建vlan:vlan ~ (vlan 1 为默认vlan) +- 2.修改vlan名称:name ~ +- 3.查看vlan信息:show vlan / show vlan brief(查看简要内容) +- 4.将对应接口划分入对应vlan: + 1.interface f0/? (选择接口) + 2.switchport access vlan ~ (将接口划入VLAN~ ,access模式用来连接网络设) +- 5.多接口划分(连续): + 1.interface f0/?-?(选择接口) + 2.switchport access vlan ~ (将接口划入VLAN~ ,access模式用来连接网络设) +- 6.多交换机划分vlan:将交换机间相连的接口改为中继模式trunk:switchport mode trunk -- Gitee