在 ISR 4451 和 EtherSwitch 子模块之间建立内部连接

网络工程 思科 思科-ios cisco催化剂 cisco 命令 cisco-isr
2021-07-13 23:32:43

在 Cisco ISR 4451 中,我们安装了一个 EtherSwitch 48 端口模块。ISR 正在工作,EtherSwitch 模块也在工作。现在我想创建一条从 ISR 到 EtherSwitch 的路由,并阅读一些手册和论坛主题如何做到这一点。

简单的方法是将电缆从 ISR 插入以太网交换机,另一种方法是在 ISR 上创建 BDI 接口并通过 VLAN 连接到以太网内部端口。但我无法创建论坛线程中所示的配置。

在 Cisco ISR 上,我应该创建此配置:

interface Ethernet-Internal 1/0/0
  service instance 1 ethernet
    encapsulation dot1q 50
    rewrite ingress tag pop 1
  !
end

interface BDI 1
  ip address 10.0.0.1 255.255.255.0
end

这是我的 ISR 4451 的配置

Building configuration...

Current configuration : 146 bytes
!
interface Ethernet-Internal1/0/0
 no negotiation auto
 service instance 1 ethernet
  encapsulation dot1q 50
  rewrite ingress tag pop 1
 !
end

interface BDI1
 ip address 10.1.20.4 255.255.255.0
end

此配置适用于 Catalyst 模块:

Building configuration...

Current configuration : 154 bytes
!
interface GigabitEthernet0/52
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 50
 switchport mode trunk
 switchport protected
end
interface Vlan50
 ip address 10.1.20.3 255.255.255.0
end

但是 BDI 接口仍然关闭。我的配置有什么问题?任何想法如何做到这一点?

1个回答

根据 OP 的评论,这是oleg.bogdanovCisco 支持论坛上帖子的副本,结果证明这是一个更好的解决方案。

这是从思科支持论坛严格复制/粘贴的,不是我制作的。这只是给别人一个解决方案的提示。

oleg.bogdanov 写道:

请注意,我的平台是带有 SM-X-ES3-24-P 的 4451,但在您的情况下应该是相同的。4000 系列从最近的代码开始支持 SVI。您可以像这样启用 SVI 支持:

ethernet-internal subslot 1/0
platform switchport svi

然后你必须重新启动,你可以像在任何第 3 层交换机上一样将 VLAN 中继到交换机模块:

Vlan 11
name some_vlan

Vlan 13
name other_vlan

interface Vlan11
description some vlan
ip address 10.10.10.2 255.255.255.0
standby 1 ip 10.10.10.1
standby 1 priority 105
standby 1 preempt
no shut

interface Vlan13
description some other vlan
ip address 10.20.20.2 255.255.255.0
standby 1 ip 10.20.20.1
standby 1 priority 105
standby 1 preempt
no shut

interface Ethernet-Internal1/0/0
description Trunk to internal switch module
switchport mode trunk
switchport trunk allowed vlan 11, 13

请注意,一旦您登录到交换机模块(命令已更改为“ hw-module session 1/0”),请不要尝试限制上行链路端口上的 VLAN。只是让他们所有其他你得到更多愚蠢的错误。

interface GigabitEthernet0/26
description Trunk to host router
switchport trunk encapsulation dot1q
switchport mode trunk
switchport protected

Vlan 11
name some_vlan

Vlan 13
name other_vlan

例如

Switch#sh int trunk

Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1
Gi0/26 on 802.1q trunking 1

Port Vlans allowed on trunk
Gi0/1 11,13
Gi0/26 1-4094

Port Vlans allowed and active in management domain
Gi0/1 11,13
Gi0/26 1,11,13

Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 11,13
Gi0/26 1,11,13
Switch#

希望这可以帮助人们节省一些时间。思科关于这些交换机模块的正确配置的文档非常差,所以我对 TAC 给出“使用外部电缆”的无意义回答并不感到惊讶。

来源:

https://supportforums.cisco.com/t5/lan-switching-and-routing/configuring-a-sm-x-layer-2-3-etherswitch-service-module-on-a/td-p/2660930