永发信息网

用H3C模拟器做交换机实验,但是终端总是PING不通交换机,求各位高手帮忙!

答案:2  悬赏:0  手机版
解决时间 2021-08-19 15:48
  • 提问者网友:川水往事
  • 2021-08-19 04:25

基本情况说明:H3C S3026 交换机,一共有8个口。其中HOST A 的IP地址为:10.65.1.1,其与交换机端口3连接;HOST B的IP地址为:

10.65.1.2,其与接口6相连。
交换机配置:
<Quidway>sys
Enter system view, return to user view with Ctrl+Z.
[Quidway]sysname s3026
[s3026]super password 111
[s3026]user-interface vty 0 4
[s3026-ui-vty0-4]authentication-mode password
[s3026-ui-vty0-4]set authentication-mode password
?simple 222
?
save
Save current configuration to flash memory successfully.

 


[s3026-ui-vty0-4]set authentication-mode password simple 222
[s3026-ui-vty0-4]user privilege 3
[s3026-ui-vty0-4]quit
[s3026]quit
<s3026>sys
Enter system view, return to user view with Ctrl+Z.
password:11
<s3026>111
?
<s3026>111
?
<s3026>111
?
<s3026>222
?
<s3026>
<Quidway>sys
Enter system view, return to user view with Ctrl+Z.
password:111
[s3026]display cur fid
#
hostname   s3026
super password 111
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain

domain system
radius-scheme system
access-limit disable
state active
idle-cut disable

domain default enable system
#
local-server nas-ip 127.0.0.1 key huawei
#
vlan 1
 ip address
 ip route-static (default gateway)
#
interface Aux0/0
#
interface Ethernet0/1
#
#
interface Ethernet0/2
#
#
interface Ethernet0/3
#
#
interface Ethernet0/4
#
#
interface Ethernet0/5
#
#
interface Ethernet0/6
#
#
interface Ethernet0/7
#
#
interface Ethernet0/8
#
#
interface NULL0
#
#
user-interface aux 0
password
user-interface vty 0 4
password 222
login
return

[s3026]user-interface vty 0  4
[s3026-ui-vty0-4]authentication-mode password
[s3026-ui-vty0-4]set authentication-mode password simple 222
[s3026-ui-vty0-4]user privilege lever 3
[s3026-ui-vty0-4]quit
[s3026]quit
<s3026>sys
Enter system view, return to user view with Ctrl+Z.
password:111
[s3026]dis curr conf
#
hostname   s3026
super password 111
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain

domain system
radius-scheme system
access-limit disable
state active
idle-cut disable

domain default enable system
#
local-server nas-ip 127.0.0.1 key huawei
#
vlan 1
 ip address
 ip route-static (default gateway)
#
interface Aux0/0
#
interface Ethernet0/1
#
#
interface Ethernet0/2
#
#
interface Ethernet0/3
#
#
interface Ethernet0/4
#
#
interface Ethernet0/5
#
#
interface Ethernet0/6
#
#
interface Ethernet0/7
#
#
interface Ethernet0/8
#
#
interface NULL0
#
#
user-interface aux 0
password
user-interface vty 0 4
password 222
login
return

[s3026]vlan 2
[s3026-vlan2]port e0/2
[s3026-vlan2]port e0/4 to e0/6
[s3026-vlan2]quit
[s3026]dis vlan

Vlan  Name Status  Ports
--------  --------  ----------  ------------------------
2      Vlan02  Active  F0/2, F0/4, F0/5, F0/6
1002  fddi-d  Active
1004  fnet-d  Active

VLAN Type  SAID        MTU
--------  -------  --------------  --------
1        enet  100001    1500
1002  fddi   101002    1500
1002  fnet   101003    1500

[s3026]int e0/3
[s3026-Ethernet0/3]port access vlan 2
[s3026-Ethernet0/3]quit
[s3026]quit
<s3026>sys
Enter system view, return to user view with Ctrl+Z.
password:111
[s3026]dis curr conf
#
hostname   s3026
super password 111
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain

domain system
radius-scheme system
access-limit disable
state active
idle-cut disable

domain default enable system
#
local-server nas-ip 127.0.0.1 key huawei
#
vlan 1
 ip address
 ip route-static (default gateway)
#
interface Aux0/0
#
interface Ethernet0/1
#
#
interface Ethernet0/2
vlan :2
#
interface Ethernet0/3
vlan :2
#
interface Ethernet0/4
vlan :2
#
interface Ethernet0/5
vlan :2
#
interface Ethernet0/6
vlan :2
#
interface Ethernet0/7
#
#
interface Ethernet0/8
#
#
interface NULL0
#
#
user-interface aux 0
password
user-interface vty 0 4
password 222
login
return

[s3026]interface vlan 1
[s3026-Vlan-interface1]ip add 10.65.1.8 255.255.0.0
[s3026-Vlan-interface1]quit
[s3026]ip route-static 0.0.0.0  0.0.0.0 10.65.1.2
[s3026]ip default-gateway 10.65.1.2
[s3026]dis curr
#
hostname   s3026
super password 111
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain

domain system
radius-scheme system
access-limit disable
state active
idle-cut disable

domain default enable system
#
local-server nas-ip 127.0.0.1 key huawei
#
vlan 1
 ip address 10.65.1.8 255.255.0.0
 ip route-static (default gateway) 10.65.1.2
#
interface Aux0/0
#
interface Ethernet0/1
#
#
interface Ethernet0/2
vlan :2
#
interface Ethernet0/3
vlan :2
#
interface Ethernet0/4
vlan :2
#
interface Ethernet0/5
vlan :2
#
interface Ethernet0/6
vlan :2
#
interface Ethernet0/7
#
#
interface Ethernet0/8
#
#
interface NULL0
#
#
user-interface aux 0
password
user-interface vty 0 4
password 222
login
return

[s3026]save
Save current configuration to flash memory successfully.

[s3026]
[s3026]
[s3026]
[s3026]
[s3026]
[s3026]quit
<s3026>quit
[s3026]quit
<s3026>
终端配置:
Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3 on an i686

PCA login: root
password: linux
[root@PCA root]# ifconfig etn 0 10.65.1.1 netmask 255.255.0.0
?
[root@PCA root]# ifconfig

 eth0      inet addr: 10.65.1.1   mask: 255.255.0.0

loopback inet addr: 127.0.0.1   mask: 255.0.0.0

[root@PCA root]# route add default gw 10.65.1.2
[root@PCA root]# route

default gateway: 10.65.1.2

[root@PCA root]# ping 10.65.1.2
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable

4packets transmitted, 0 received, 100% loss, time 2000ms

[root@PCA root]# ping 10.65.1.8
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable
From 10.65.1.1 icmp_seq=1 Destination Host Unreachable

4packets transmitted, 0 received, 100% loss, time 2000ms

[root@PCA root]# telnet 10.65.1.8if10.65.1.1
connect error!
[root@PCA root]#

最佳答案
  • 五星知识达人网友:山有枢
  • 2021-08-19 05:14
金手指代码但我看不懂
全部回答
  • 1楼网友:过活
  • 2021-08-19 06:51
终端有禁ping吗?
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯