菜鸟学者 发表于 2017-3-14 20:56:59

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

交换机上启用了本征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

菜鸟学者 发表于 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网段的

Admln 发表于 2017-3-14 21:54:39

sh int vlan 156是双up么{:6_269:}

沉机 发表于 2017-3-14 22:17:07

line vty 0 4
login local

菜鸟学者 发表于 2017-3-14 22:49:21

沉机 发表于 2017-3-14 22:17
line vty 0 4
login local

写了,还是不能telnet

沉机 发表于 2017-3-15 00:53:35

菜鸟学者 发表于 2017-3-14 22:49
写了,还是不能telnet

你没建本地账户:lol
user XXX password XXX

lzq8663457 发表于 2017-3-15 09:11:56

指定账号服务类型为telnet

liu879263303 发表于 2017-3-15 15:24:34

lzq8663457 发表于 2017-3-15 09:11
指定账号服务类型为telnet

正解!

菜鸟学者 发表于 2017-3-17 18:51:35

有没有人解答一下呀

菜鸟学者 发表于 2017-3-20 19:56:13

ping交换机发现是找不到主机,在三层写了IP defa 192.168.156.254

二层上面也谢了IP defa 但是还是找不到   求解呀!!

15222364899 发表于 2017-5-5 16:45:09

菜鸟学者 发表于 2017-3-15 23:48
Building configuration...

Current configuration : 1392 bytes


你直接走三层看看能不能ping通
页: [1]
查看完整版本: 求助,交换机能ping通但是不能telnet