首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在3650交换机上将多个VLAN集群到单个中继端口

在3650交换机上将多个VLAN集群到单个中继端口
EN

Network Engineering用户
提问于 2020-07-02 09:28:40
回答 1查看 387关注 0票数 0

早上:

我是思科包追踪器世界的新手,我正在为一个uni项目创建一个网络。到目前为止,我得到的是:

5个VLAN(细分为192.168.2.0/26、192.168.3.0/36等)

它们都连接到3650交换机上的端口Gig 1/0/2 - 1/0/6。

终端设备能够相应地与所有各自的VLANs通信。

VLAN都在交换机上终止,(我相信)中继到端口1/0/24,端口IP为192.168.40.1/30。端口1/0/24然后用IP 192.168.40.2连接到端口9/0上的通用PT路由器上的端口,这也是默认的IP路由器(最后一个度假村的网关)。

从那里,路由器连接到另一个路由器,这两个路由器都位于192.168.50.0/30的子网中,然后该路由器连接到子网192.168.60.0/30上的另一个3650交换机。

路由器和交换机可以在没有问题的情况下互相切换。我使用EIGRP建立了路由。

我似乎遇到的问题是,无论我尝试什么,我都不能让终端设备的数据包比集群端口更远。例ping的结果如下:

敲击开关:

C:>ping 192.168.40.1用32个字节的数据ping192.168.40.1:

192.168.40.1: bytes=32 time=11ms TTL=255回复192.168.40.1: bytes=32 time=35ms TTL=255回复192.168.40.1: bytes=32 time=30ms TTL=255回复192.168.40.1: bytes=32 time=36ms TTL=255

敲击路由器

C:>ping 192.168.40.2

用32个字节的数据ping192.168.40.2:

请求超时。请求超时。请求超时。请求超时。

代码语言:javascript
复制
Switch#show protocols

Global values:

  Internet Protocol routing is enabled

GigabitEthernet1/0/2 is up, line protocol is up

GigabitEthernet1/0/3 is up, line protocol is up

GigabitEthernet1/0/4 is up, line protocol is up

GigabitEthernet1/0/5 is up, line protocol is up

GigabitEthernet1/0/6 is up, line protocol is up

GigabitEthernet1/0/24 is up, line protocol is up

  Internet address is 192.168.40.1/30

Vlan2 is up, line protocol is up

  Internet address is 192.168.2.62/26

Vlan3 is up, line protocol is up

  Internet address is 192.168.3.62/26

Vlan4 is up, line protocol is up

  Internet address is 192.168.4.62/26

Vlan5 is up, line protocol is up

  Internet address is 192.168.5.62/26

Vlan6 is up, line protocol is up

  Internet address is 192.168.6.62/26

运行Config (消毒-ish)

代码语言:javascript
复制
Switch#show running-config
Building configuration...

Current configuration : 2815 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch!
!
ip dhcp excluded-address 192.168.2.1 192.168.2.10
ip dhcp excluded-address 192.168.3.1 192.168.3.10
ip dhcp excluded-address 192.168.4.1 192.168.4.10
ip dhcp excluded-address 192.168.5.1 192.168.5.10
ip dhcp excluded-address 192.168.6.1 192.168.6.10
!
ip dhcp pool vlan2
 network 192.168.2.0 255.255.255.192
 default-router 192.168.2.62
 dns-server 8.8.8.8
ip dhcp pool vlan3
 network 192.168.3.0 255.255.255.192
 default-router 192.168.3.62
 dns-server 8.8.8.8
ip dhcp pool vlan4
 network 192.168.4.0 255.255.255.192
 default-router 192.168.4.62
 dns-server 8.8.8.8
ip dhcp pool vlan5
 network 192.168.5.0 255.255.255.192
 default-router 192.168.5.62
 dns-server 8.8.8.8
ip dhcp pool vlan6
 network 192.168.6.0 255.255.255.192
 default-router 192.168.6.62
 dns-server 8.8.8.8!
!
ip cef
ip routing
!
no ipv6 cef!
!
spanning-tree mode pvst!
!
interface GigabitEthernet1/0/2
 switchport access vlan 2
!
interface GigabitEthernet1/0/3
 switchport access vlan 3
!
interface GigabitEthernet1/0/4
 switchport access vlan 4
!
interface GigabitEthernet1/0/5
 switchport access vlan 5
!
interface GigabitEthernet1/0/6
 switchport access vlan 6
!
interface GigabitEthernet1/0/24
 no switchport
 ip address 192.168.40.1 255.255.255.252
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan2
 mac-address 0004.9aa1.d701
 ip address 192.168.2.62 255.255.255.192
!
interface Vlan3
 mac-address 0004.9aa1.d702
 ip address 192.168.3.62 255.255.255.192
!
interface Vlan4
 mac-address 0004.9aa1.d703
 ip address 192.168.4.62 255.255.255.192
!
interface Vlan5
 mac-address 0004.9aa1.d704
 ip address 192.168.5.62 255.255.255.192
!
interface Vlan6
 mac-address 0004.9aa1.d705
 ip address 192.168.6.62 255.255.255.192
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.40.2 
!
ip flow-export version 9

!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
end

路由器1配置(净化)

代码语言:javascript
复制
Router#show running-config 
Building configuration...

Current configuration : 707 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
no ip cef
no ipv6 cef

!
interface GigabitEthernet8/0
 ip address 192.168.50.1 255.255.255.252
!
interface GigabitEthernet9/0
 ip address 192.168.40.2 255.255.255.252
 duplex auto
 speed auto
!
router eigrp 10
 network 192.168.40.0 0.0.0.3
 network 192.168.50.0 0.0.0.3
 auto-summary
!
router ospf 1
 log-adjacency-changes
 network 192.168.40.0 0.0.0.3 area 0
 network 192.168.50.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9!
!
line con 0
!
line aux 0
!
line vty 0 4
 login!
!
end

IP路由

代码语言:javascript
复制
Switch#show ip rout
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 192.168.40.2 to network 0.0.0.0

     192.168.2.0/26 is subnetted, 1 subnets
C       192.168.2.0 is directly connected, Vlan2
     192.168.3.0/26 is subnetted, 1 subnets
C       192.168.3.0 is directly connected, Vlan3
     192.168.4.0/26 is subnetted, 1 subnets
C       192.168.4.0 is directly connected, Vlan4
     192.168.5.0/26 is subnetted, 1 subnets
C       192.168.5.0 is directly connected, Vlan5
     192.168.6.0/26 is subnetted, 1 subnets
C       192.168.6.0 is directly connected, Vlan6
     192.168.40.0/30 is subnetted, 1 subnets
C       192.168.40.0 is directly connected, GigabitEthernet1/0/24
D    192.168.50.0/24 [90/3072] via 192.168.40.2, 00:13:12, GigabitEthernet1/0/24
D    192.168.60.0/24 [90/3328] via 192.168.40.2, 00:13:12, GigabitEthernet1/0/24
S*   0.0.0.0/0 [1/0] via 192.168.40.2

根据进一步的研究,我做了以下工作:

代码语言:javascript
复制
Switch>show interfaces gigabitEthernet 1/0/23 switchport 
Name: Gig1/0/23
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 100 (Inactive)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: 2-6
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
代码语言:javascript
复制
Router#show running-config 
Building configuration...

Current configuration : 978 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
no ip cef
no ipv6 cef
!
interface GigabitEthernet8/0
 ip address 192.168.50.1 255.255.255.252
!
interface GigabitEthernet9/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet9/0.1
 encapsulation dot1Q 1 native
 ip address 192.168.2.62 255.255.255.192
!
interface GigabitEthernet9/0.2
 encapsulation dot1Q 2
 ip address 192.168.3.62 255.255.255.192
!
interface GigabitEthernet9/0.3
 encapsulation dot1Q 3
 ip address 192.168.4.62 255.255.255.192
!
interface GigabitEthernet9/0.4
 encapsulation dot1Q 4
 ip address 192.168.5.62 255.255.255.192
!
interface GigabitEthernet9/0.5
 encapsulation dot1Q 5
 ip address 192.168.6.62 255.255.255.192
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

我觉得我已经快破解了,但是从1/0/23到9/0之间的链接还在下降,我不知道如何把它拿出来测试。

EN

回答 1

Network Engineering用户

回答已采纳

发布于 2020-07-02 12:12:10

您在(第3层)交换机上没有启用EIGRP,因此路由器和其他设备不知道如何到达交换机上的网络。

和BTW,你不是在中继VLAN。VLAN在交换机上终止。端口1/0/24是一个路由接口,而不是主干端口。

票数 1
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/68761

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档