交换机远程连接(eNsp)

交换机远程连接(eNsp)

1.配置交换机
sys
[Huawei]sysname sw1
2.关闭华为交换机信息提示中心
[sw1]undo info-center enable或undo terminal moniter
3.永不超时
[sw1]user-interface console 0
[sw1-ui-console0]idle-timeout 0 0
4.配置双工及速率
[sw1-Ethernet0/0/1]undo negotiation auto
[sw1-Ethernet0/0/1]speed 100
[sw1-Ethernet0/0/1]duplex full
full:full-duplex(全双工) half:half-duplex(半双工)

5.配置信息保存
[sw1-Ethernet0/0/1]return
save
6.设置远程登入密码
vty 0 4 vty是telnet协议 0是初始值 4是结束值 表示可以同时打开5个会话窗口进入交换机配置命令
level 3配置权限等级

  • 0 参观级 网络诊断命令
  • 1 监控级 系统维护,业务故障诊断
  • 2 配置级 业务配置
  • 3-15 管理级 管理命令
    [sw1]user-interface vty 0 4
    [sw1-ui-vty0-4]authentication-mode password
    [sw1-ui-vty0-4]set authentication password simple 111
    [sw1-ui-vty0-4]user privilege level 3
    simple 明文密码
    cipher 密文密码
    7.开启端口配置地址
    [sw1]interface vlanif 1
    [sw1-Vlanif1]ip add 192.168.1.10 255.255.255.0
    [sw1-Vlanif1]undo shutdown
    8.配置完成sw1的相关信息
    sysname sw1

undo info-center enable

cluster enable
ntdp enable
ndp enable

drop illegal-mac alarm

diffserv domain default

drop-profile default

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http

interface Vlanif1
ip address 192.168.1.10 255.255.255.0

interface MEth0/0/1

interface Ethernet0/0/1
undo negotiation auto

interface Ethernet0/0/2

interface Ethernet0/0/3

interface Ethernet0/0/4

interface Ethernet0/0/5

interface Ethernet0/0/6

interface Ethernet0/0/7

interface Ethernet0/0/8

interface Ethernet0/0/9

interface Ethernet0/0/10

interface Ethernet0/0/11

interface Ethernet0/0/12

interface Ethernet0/0/13

interface Ethernet0/0/14

interface Ethernet0/0/15

interface Ethernet0/0/16

interface Ethernet0/0/17

interface Ethernet0/0/18

interface Ethernet0/0/19

interface Ethernet0/0/20

interface Ethernet0/0/21

interface Ethernet0/0/22

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

user-interface con 0
idle-timeout 0 0
user-interface vty 0 4
user privilege level 3
set authentication password simple 111

return
[sw1-Vlanif1]
9.sw2配置完成相关信息

sysname sw2

undo info-center enable

cluster enable
ntdp enable
ndp enable

drop illegal-mac alarm

diffserv domain default

drop-profile default

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http

interface Vlanif1
ip address 192.168.1.20 255.255.255.0

interface MEth0/0/1

interface Ethernet0/0/1
undo negotiation auto

interface Ethernet0/0/2

interface Ethernet0/0/3

interface Ethernet0/0/4

interface Ethernet0/0/5

interface Ethernet0/0/6

interface Ethernet0/0/7

interface Ethernet0/0/8

interface Ethernet0/0/9

interface Ethernet0/0/10

interface Ethernet0/0/11

interface Ethernet0/0/12

interface Ethernet0/0/13

interface Ethernet0/0/14

interface Ethernet0/0/15

interface Ethernet0/0/16

interface Ethernet0/0/17

interface Ethernet0/0/18

interface Ethernet0/0/19

interface Ethernet0/0/20

interface Ethernet0/0/21

interface Ethernet0/0/22

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

user-interface con 0
idle-timeout 0 0
user-interface vty 0 4
user privilege level 3
set authentication password simple 222

return

11.telnet 192.168.1.20
Password:
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2020-12-21 11:14:53.
在这里插入图片描述

10.配置cloud
在这里插入图片描述

创建UDP端口和以太网端口
端口映射设置 端口类型:Ethernet 入端口编号:1 出端口编号:2 双向通道
在这里插入图片描述
11.xshell创建会话
协议:TELNET 主机号:192.168.1.10(交换机vlan1配置的地址)
在这里插入图片描述
确定连接,输入密码可以显示连接在这里插入图片描述

  • 1
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要使用Xshell远程连接交换机,可以按照以下步骤进行操作: 1. 首先,确保你已经安装了Xshell,并且已经配置好你要连接的交换机的IP地址和端口号。 2. 打开Xshell,并点击"文件"->"新建",然后在弹出的对话框输入你要连接的交换机的IP地址和端口号,点击"确定"。 3. 接下来,在弹出的对话框选择连接类型为SSH,并填写用户名和密码,点击"确定"。 4. Xshell会自动连接到交换机,并在命令行界面上显示出交换机的登录提示符。 5. 现在你可以在Xshell的命令行界面上输入命令来管理和配置交换机了。 需要注意的是,为了能够成功远程连接交换机,你需要确保交换机已经正确配置了SSH服务,并且在Xshell正确填写了连接信息。另外,你还需要输入正确的用户名和密码才能登录到交换机上。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [xshell远程连接linux系统](https://download.csdn.net/download/yimianzhen/12653776)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Xshell远程连接ESXI主机](https://blog.csdn.net/Kammingo/article/details/107033721)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [物理机用Xshell连接eNSP交换机/路由器](https://blog.csdn.net/Virgo626249038/article/details/130061068)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值