H3C云實驗室
SW1同時開啟了Telnet和ssh,現在在SW2上用Telnet可以正常登陸SW1,用ssh登陸時提示Unknown host or wrong IP address,小白一枚,望大佬指點。


SW1主要配置如下:
<SW1>sys
System View: return to User View with Ctrl+Z.
[SW1]dis current-config
#
version 7.1.059, Alpha 7159
#
sysname SW1
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
lldp global enable
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
description jifang
#
vlan 2
description dongyuan
#
vlan 3
description xiyuan
#
stp global enable
#
interface NULL0
#
interface Vlan-interface1
description jifang
ip address 10.176.8.1 255.255.255.0
#
interface Vlan-interface2
description dongyuan
ip address 10.176.20.1 255.255.255.0
#
interface Vlan-interface3
description xiyuan
ip address 10.176.10.1 255.255.255.0
#
#
interface GigabitEthernet1/0/1
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
description dongyuan
port access vlan 2
combo enable fiber
#
interface GigabitEthernet1/0/3
port link-mode bridge
description xiyuan
port access vlan 3
combo enable fiber
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 4
authentication-mode scheme
user-role network-admin
set authentication password hash $h$6$P93UbdqAu67+4Fbu$gC2dLt01SIvdMeEwpj/GSXyQRqS2tNLeZVjapnRujQGF7718VA9AvXBflFJOSIaz/u1MG1bS3kemMChrN5W+HA==
#
line vty 5 63
user-role network-operator
#
ip route-static 0.0.0.0 0 10.176.8.2
#
ssh server enable
ssh user admin service-type all authentication-type password
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
#
#
user-group system
#
local-user admin class manage
password hash $h$6$IMxAfDapoYUses6i$SayBKSPGvt7HhYLCUQeJUAyOt4cbTZcdTTCmtIArUw0WtrlvuFxOLjWuhCsjYhK4/85OKLN46+X4ZZp6j8m5mA==
service-type ssh telnet
authorization-attribute user-role level-15
#
local-user amin class manage
service-type ssh telnet
authorization-attribute user-role level-15
SW2配置如下:
[SW2]dis current-config
#
version 7.1.059, Alpha 7159
#
sysname SW2
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
lldp global enable
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
description jifang2
#
vlan 2
description dongyuan2
#
vlan 3
description xiyuan2
#
stp global enable
#
interface NULL0
#
interface Vlan-interface1
description jifang2
ip address 10.176.8.2 255.255.255.0
#
interface Vlan-interface2
description dongyuan2
ip address 10.176.20.2 255.255.255.0
#
interface Vlan-interface3
description xiyuan2
ip address 10.176.10.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
description jifang2
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
description dongyuan2
port access vlan 2
combo enable fiber
#
interface GigabitEthernet1/0/3
port link-mode bridge
description xiyuan2
port access vlan 3
combo enable fiber
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 4
authentication-mode scheme
user-role level-15
protocol inbound ssh
#
line vty 5 63
user-role network-operator
#
ip route-static 0.0.0.0 0 10.176.8.1
#
ssh server enable
ssh user admin2 service-type all authentication-type password
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
#
user-group system
#
local-user admin2 class manage
password hash $h$6$twacT54TRpVDX3Kb$VPSANlcKCq1QdWxRm5FD34bPGtFGxz1DJGI2aQG1njrXic+SMErLG/txgkpCaz79d81Sk9WO2NlAozfcd/PXDQ==
service-type ssh
authorization-attribute user-role level-15
uj5u.com熱心網友回復:
有沒有大神回復一下uj5u.com熱心網友回復:
telnet 一下ssh的埠是否通uj5u.com熱心網友回復:
檢查一下設備的ip地址是否正確uj5u.com熱心網友回復:
請問具體命令是什么轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/30336.html
標籤:交換及路由技術
上一篇:OSPF的七種狀態機
下一篇:VOIP基本原理與技術下載
