我有一个路由器(无处不在的USG)和一个博科FCX648第3层交换机。(我有一个堆栈中的第二个,但这是不相关的)。最终目标是能够将交换机连接到我的路由器,向VLAN上的其他端口提供IP,并能够管理交换机,所有这些都来自一个物理端口。
我已经通过eth 1/1/2将路由器连接到交换机,并设置VLAN 2,除1/1/2为双模式外,所有端口都是无标记的。然后VLAN 3只对1/1/2进行标记。据我所知,这让它以标记和未标记的方式工作。
当该端口仅被取消标记时,它将得到一个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如果需要更多的信息,我很乐意提供它。
发布于 2020-11-18 09:28:48
这是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交换机能够进行路由(这是它最大的好处),因此您可能希望阻止接口之间的路由。
https://networkengineering.stackexchange.com/questions/70976
复制相似问题