设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 2087|回复: 11
收起左侧

求助,交换机能ping通但是不能telnet

[复制链接]
发表于 2017-3-14 20:56:59 | 显示全部楼层 |阅读模式
交换机上启用了本征vlan 地址为192.168.156.1
ena sec跟line vty 都配置了,能ping通,但是telnet就会失败


                                                         在模拟器上面做的
  命令如下。。。

enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1

interface Vlan156
ip address 192.168.156.2 255.255.255.0
!
!
line con 0
password cisco
login
!
line vty 0 4
password cisco
login
line vty 5 15
login
!
!
end
 楼主| 发表于 2017-3-15 23:47:44 | 显示全部楼层
我看了一下,是ping不同VLAN的网段,能不能帮我看一下是哪里出了问题

核心交换机的配置
Current configuration : 1910 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname hexin
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
ip dhcp pool renshi
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
dns-server 192.168.10.254
ip dhcp pool IT

hexin#  show run
Building configuration...

Current configuration : 1910 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname hexin
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
ip dhcp pool renshi
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
dns-server 192.168.10.254
ip dhcp pool IT
network 192.168.20.0 255.255.255.0
default-router 192.168.20.254
dns-server 192.168.20.254
ip dhcp pool jiaohuanjidizhi
network 192.168.156.0 255.255.255.0
default-router 192.168.156.254
ip routing
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/1
switchport trunk native vlan 156
switchport trunk allowed vlan 1-100
!
interface FastEthernet0/2
no switchport
ip address 172.16.0.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 172.16.0.0 0.0.0.3 area 0
!
ip classless
!
!
!
!
!
!
!
line con 0
password cisco
login
!
line aux 0
!
line vty 0 4
login
!
!
!
end
来自 8# 2017-3-15 23:47:44 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-3-15 23:48:59 | 显示全部楼层
Building configuration...

Current configuration : 1392 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport trunk native vlan 156
switchport trunk allowed vlan 1-100
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport trunk allowed vlan 1-100
switchport mode trunk
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan156
ip address 192.168.156.1 255.255.255.0
!
ip default-gateway 192.168.156.254
!
!
line con 0
password cisco
login
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
end
  二层交换机的地址


主机地址为10网段的
来自 9# 2017-3-15 23:48:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-14 21:54:39 | 显示全部楼层
sh int vlan 156是双up么
沙发 2017-3-14 21:54:39 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-14 22:17:07 | 显示全部楼层
line vty 0 4
login local
板凳 2017-3-14 22:17:07 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-3-14 22:49:21 | 显示全部楼层
沉机 发表于 2017-3-14 22:17
line vty 0 4
login local

写了,还是不能telnet
地板 2017-3-14 22:49:21 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-15 00:53:35 | 显示全部楼层
菜鸟学者 发表于 2017-3-14 22:49
写了,还是不能telnet

你没建本地账户
user XXX password XXX
5# 2017-3-15 00:53:35 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-15 09:11:56 | 显示全部楼层
指定账号服务类型为telnet
6# 2017-3-15 09:11:56 回复 收起回复
回复 支持 1 反对 0

使用道具 举报

发表于 2017-3-15 15:24:34 | 显示全部楼层
lzq8663457 发表于 2017-3-15 09:11
指定账号服务类型为telnet

正解!
7# 2017-3-15 15:24:34 回复 收起回复
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2017-3-17 18:51:35 | 显示全部楼层
有没有人解答一下呀
10# 2017-3-17 18:51:35 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-3-20 19:56:13 | 显示全部楼层
ping交换机发现是找不到主机,在三层写了IP defa 192.168.156.254

二层上面也谢了IP defa 但是还是找不到   求解呀!!
11# 2017-3-20 19:56:13 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-5-5 16:45:09 | 显示全部楼层
菜鸟学者 发表于 2017-3-15 23:48
Building configuration...

Current configuration : 1392 bytes

你直接走三层看看能不能ping通
12# 2017-5-5 16:45:09 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-20 04:47 , Processed in 0.065219 second(s), 11 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表