是否可以将 IP 分配给标记的双模端口(Brocade)

网络工程 路由 转变 路由器 交换 锦缎
2022-02-20 21:57:41

我有一个路由器(无处不在的 USG)和一个 Brocade FCX648 第 3 层交换机。(我在堆栈中有第二个,但这无关紧要)。最终目标是能够将交换机连接到我的路由器,为 VLAN 上的其他端口提供 IP,并能够管理交换机,所有这些都来自一个物理端口。

我已经通过 eth 1/1/2 将路由器连接到交换机,并将跨越所有端口的 VLAN 2 设置为未标记,但 1/1/2 是双模式。然后仅 1/1/2 的 VLAN 3 被标记。据我了解,这让它可以标记和未标记。

当此端口仅未标记时,它会被分配一个 IP 地址,并且从该 IP,我可以访问 SSH、Web 门户等。但是,当标记时(我需要,因此其他端口可以从路由器获取 IP) ,它不再被分配一个IP,并且当试图手动分配一个时,接口说你不能将IP分配给一个标记的端口。

我觉得我可能会以错误的方式解决这个问题,所以我想就如何做到这一点征求意见,或者是否可以在一根电缆上进行这样的事情。

配置转储:

!
ver 08.0.30sT7f3
!
stack unit 1
  module 1 fcx-48-4x-port-management-module
  module 2 fcx-sfp-plus-4-port-10g-module
  priority 128
  stack-port 1/2/1 1/2/2
stack unit 2
  module 1 fcx-48-4x-port-management-module
  module 2 fcx-sfp-plus-4-port-10g-module
  stack-port 2/2/1 2/2/2
stack enable
stack mac 748e.f89a.af80
!
!
!
!
vlan 1 name DEFAULT-VLAN by port
!
vlan 2 name KTN by port
 tagged ethe 1/1/2
 untagged ethe 1/1/3 to 1/1/48 ethe 2/1/1 to 2/1/48
!
vlan 3 name KTN-Tagged by port
 tagged ethe 1/1/2
!
vlan 4 by port
!
!
!
!
!
aaa authentication web-server default local
aaa authentication login default local
boot sys fl sec
enable super-user-password .....
enable port-config-password .....
enable read-only-password .....
ip dhcp-server server-identifier 192.168.1.1
ip dns domain-list localdomain
ip dns server-address 192.168.1.1
ip forward-protocol udp bootpc
ip forward-protocol udp bootps
ip forward-protocol udp 1
ip router-id 192.168.1.1
!
username netadmin password .....
bootp-relay-max-hops 10
!
!
web-management https
ssh access-group 10
hitless-failover enable
!
!
!
!
!
!
!
interface ethernet 1/1/1
 ip address 192.168.1.129 255.255.255.0 dynamic
 ip bootp-gateway 192.168.1.1
!
interface ethernet 1/1/2
 dual-mode  2
 ip helper-address 1 192.168.1.1 unicast
!
!
!
access-list 10 permit host 192.168.1.128
access-list 10 permit 192.168.1.0 0.0.0.255
!
!
!
!
!
!
!
!
local-userdb userdb1
 username name password pass
!
end

如果需要更多信息,我很乐意提供。

1个回答

这是 L2 和 L3 端口的混合。将 L2 和 L3 视为不同的示意图。

当您将 IP 放在 1/1/2 上时 - 您将此 IP 连接到通过此端口的本机(未标记)VLAN。要将 IP 连接到 vlan2 或 vlan3,您不应将 IP 放置在硬件接口(可以承载许多 VLAN)上,而应放置在虚拟 VLAN 接口上。

试试这个:

device(config)# vlan 2
device(config-vlan-2)#  tagged ethe 1/1/2
device(config-vlan-2)# router-interface ve 1
device(config-vlan-2)# interface ve 1
device(config-vif-1)# ip address 10.1.2.1/24

这是文件但请注意路由 - L3 交换机能够路由(这是它的最大好处),因此您可能希望阻止接口之间的路由。