设为首页收藏本站language 语言切换
查看: 2256|回复: 12
收起左侧

[求助] 怎么远程telnet这个交换机的管理地址

[复制链接]
发表于 2020-3-27 18:06:29 | 显示全部楼层 |阅读模式
3鸿鹄币
说明:已实现两VLAN的通信,两路由已用静态路由连通,问题是这个红圈中的交换机怎么实现远程登录,我在VLAN1 中设置了192.168.1.2 255.255.255.0
,也设置了ip default-gateway 192.168.1.1 ,但是在各PC中telnet 192.168.1.2时连接不上,请大神指正.
965.jpg

最佳答案

查看完整内容

哦哦你是这个意思啊。 试试不要用Vlan1 interface Vlan2 ip address 192.168.1.2 255.255.255.0
发表于 2020-3-27 18:06:30 | 显示全部楼层
john7274 发表于 2020-3-30 16:32
去掉这两行VLAN2和VLAN3就不行通信了吧

哦哦你是这个意思啊。
试试不要用Vlan1

interface Vlan2
ip address 192.168.1.2 255.255.255.0
沙发 2020-3-27 18:06:30 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2020-3-27 18:07:27 | 显示全部楼层
配置如下

Switch#show run
Building configuration...

Current configuration : 1385 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname Switch
!
enable secret 5 $1$mERr$y1AMlBLbbUfQo1bYGRRnc0
!
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
!
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 mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
!
ip default-gateway 192.168.1.1
!
!
!
!
line con 0
password 7 087002
logging synchronous
login
exec-timeout 0 0
!
line vty 0
password 7 087302
login
line vty 1 4
login
line vty 5 15
login
!
!
!
end
板凳 2020-3-27 18:07:27 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2020-3-27 18:09:15 | 显示全部楼层
这个R0的配置

Router#show run
Building configuration...

Current configuration : 923 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
enable secret 5 $1$mERr$Ezep5NvcIDHh.kBToWLvP.
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.4.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.5.0 255.255.255.0 192.168.4.2
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
password 1.
logging synchronous
login
!
line aux 0
!
line vty 0
password 3.
login
line vty 1 4
login
!
!
!
end
地板 2020-3-27 18:09:15 回复 收起回复
回复

使用道具 举报

发表于 2020-3-27 20:53:27 | 显示全部楼层
1、R0的子接口封装错误
Router(config-subif)#encapsulation dot1Q ?
  <1-4094>  IEEE 802.1Q VLAN ID

Router(config-subif)#encapsulation dot1Q
2、R0,R1上的静态路由并不能使PC5与SW1的管理IP通信
3,以后搞feature其它的什么的,先把底层搞通先
5# 2020-3-27 20:53:27 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2020-3-29 10:58:07 | 显示全部楼层
areyoumywife 发表于 2020-3-27 20:53
1、R0的子接口封装错误
Router(config-subif)#encapsulation dot1Q ?
    IEEE 802.1Q VLAN ID

请问要怎么配置才能实现PC5可以远程telnet到  SW 1 上?
6# 2020-3-29 10:58:07 回复 收起回复
回复

使用道具 举报

发表于 2020-3-30 14:18:37 | 显示全部楼层
interface FastEthernet0/0.1
encapsulation dot1Q 2

把这个去掉不好吗,直接在Fa0/0 上设置

7# 2020-3-30 14:18:37 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2020-3-30 16:32:54 | 显示全部楼层
ucat1911 发表于 2020-3-30 14:18
interface FastEthernet0/0.1
encapsulation dot1Q 2

去掉这两行VLAN2和VLAN3就不行通信了吧
8# 2020-3-30 16:32:54 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2020-3-31 18:24:22 | 显示全部楼层
ucat1911 发表于 2020-3-30 20:24
哦哦你是这个意思啊。
试试不要用Vlan1

调通了,谢谢
9# 2020-3-31 18:24:22 回复 收起回复
回复

使用道具 举报

发表于 2020-4-1 07:53:37 | 显示全部楼层
膜拜大佬
10# 2020-4-1 07:53:37 回复 收起回复
回复

使用道具 举报

发表于 2020-4-16 16:28:03 | 显示全部楼层
看不懂,顶一下。
11# 2020-4-16 16:28:03 回复 收起回复
回复

使用道具 举报

发表于 2020-5-13 16:10:46 | 显示全部楼层
12# 2020-5-13 16:10:46 回复 收起回复
回复

使用道具 举报

发表于 2020-6-11 09:45:25 | 显示全部楼层
一起学习学习
13# 2020-6-11 09:45:25 回复 收起回复
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 04:01 , Processed in 0.062569 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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