首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >两个交换机,一个上行链路--连接它们的最佳方式?

两个交换机,一个上行链路--连接它们的最佳方式?
EN

Network Engineering用户
提问于 2019-08-15 13:55:43
回答 2查看 599关注 0票数 0

概述

我有两个Arista 7050 two开关。他们不支持堆叠。但实际上,我将把它们作为一个堆叠的对,尽管如此(仅仅意味着管理两个单独的开关)。

它们目前通过两个qsfp链路的端口通道连接在一起。没有lacp。中继端口,本机vlan 10

交换机2通过/30 on et1 (可路由端口)连接到路由器。已启用路由。默认路由集。Vlan10有一个/26上的IP (.2),可以从网络的其他地方到达(路由工作,我的静态路由已经启动)。运行配置:

代码语言:javascript
复制
rj-sw02#show run
! Command: show running-config
! device: rj-sw02 (DCS-7050SX-64, EOS-4.19.3F)
!
! boot system flash:/EOS-4.19.3F.swi
!
transceiver qsfp default-mode 4x10G
!
hostname rj-sw02
!
spanning-tree mode mstp
!
no aaa root
!
clock timezone US/Eastern
!
vlan 10
   name phys-mgt
!
interface Port-Channel10
   description Switch Interconnect
   switchport trunk native vlan 10
   switchport trunk allowed vlan 1,10
   switchport mode trunk
!
interface Ethernet1
   no switchport
   ip address 172.16.64.2/30
!
interface Ethernet2
!
interface Ethernet3
!

...

interface Ethernet46
!
interface Ethernet47
!
interface Ethernet48
!
interface Ethernet49/1
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/2
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/3
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/4
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet50/1
!
interface Ethernet50/2
!
interface Ethernet50/3
!
interface Ethernet50/4
!
interface Ethernet51/1
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/2
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/3
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/4
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet52/1
!
interface Ethernet52/2
!
interface Ethernet52/3
!
interface Ethernet52/4
!
interface Management1
   ip address 192.168.1.1/24
!
interface Vlan10
   ip address 10.3.104.3/26
!
ip route 0.0.0.0/0 172.16.64.1
!
ip routing
!

交换机1与路由器没有直接连接。Vlan10在上面的/26上有一个IP,并且是.3。还启用了路由。默认gw是/30中的下一跳(并且需要遍历互连)。在我的网络中,我不能从其他地方切换(无法联系到)。开关可以彼此切换,我可以从sw2到sw1*运行配置:

代码语言:javascript
复制
rj-sw01#show run
! Command: show running-config
! device: rj-sw01 (DCS-7050SX-64, EOS-4.19.3F)
!
! boot system flash:/EOS-4.19.3F.swi
!
transceiver qsfp default-mode 4x10G
!
hostname rj-sw01
!
spanning-tree mode mstp
!
no aaa root
!
vlan 10
   name phys_mgt
!
interface Port-Channel10
   description Switch Interconnect
   switchport trunk native vlan 10
   switchport trunk allowed vlan 1,10
   switchport mode trunk
!
interface Ethernet1
!
interface Ethernet2
!

...

interface Ethernet47
!
interface Ethernet48
!
interface Ethernet49/1
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/2
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/3
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet49/4
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet50/1
!
interface Ethernet50/2
!
interface Ethernet50/3
!
interface Ethernet50/4
!
interface Ethernet51/1
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/2
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/3
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet51/4
   description Switches Interconnect
   channel-group 10 mode active
!
interface Ethernet52/1
!
interface Ethernet52/2
!
interface Ethernet52/3
!
interface Ethernet52/4
!
interface Management1
   ip address 192.168.1.1/24
!
interface Vlan10
   ip address 10.3.104.2/26
!
ip route 0.0.0.0/0 Port-Channel10 172.16.64.1
!
ip routing
!

目标

我在一个交换机上用完了端口,因此增加了第二个端口。我有一堆主机需要在交换机之间相互通信。理论上,我创建的PG将实现这一点(假设我的所有VLAN都是该主干的一部分)(如果不是这样的话,请告诉我)。我还需要对两个交换机的SSH访问,这就是我被困在这里的地方。

问题1:考虑到上述信息和信息,我做错了什么?为什么我不能达到第二个开关?

问题2:这是最好的方法,还是我应该使用不同的配置策略来达到我想要的目标(基本上是堆叠的一对)?

*我注意到当我重启没有直接连接到路由器的sw2时,当它关闭时,我无法连接到sw1

EN

回答 2

Network Engineering用户

回答已采纳

发布于 2019-08-15 17:04:55

您在交换机1上有问题。您的默认路径是到交换机不知道如何到达的地址。默认的路由应该是ip route 0.0.0.0/0 10.3.104.3。交换机2知道如何到达172.16.64.1,因为它位于一个直接连接的网络上,但是交换机1不知道如何到达该网络,所以下一个跳是交换机2,而不是路由器。

票数 1
EN

Network Engineering用户

发布于 2020-11-26 06:57:49

The.best通过端口-channel或以太-channel将两个交换机连接到一个上行链路的方法。将两根电缆绑定到单个实例中,并将每条电缆连接到每个交换机的interfàce,并将其配置为上行链路中断。我

您可以通过管理ip地址到达辅助交换机。创建管理Vlan,并在主交换机和辅助交换机中配置管理VLAN。并尝试通过分配给交换机的管理ip地址来访问两个交换机。

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

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

复制
相关文章

相似问题

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