当 VLAN 没有 IPv6 地址时 Cisco 3560G 不通过 IPv6 RA

网络工程 思科 路由 转变 局域网 IPv6
2022-02-13 23:54:11

问题:

当启用 L3 的交换机上有没有 IPv6 地址的 VLAN 时,除非有分配给 VLAN 的 IPv6 地址,否则没有 RA 通过 VLAN。然而,静态分配是可以达到的。

Switch(config)#interface Vlan 3
  no ipv6 address autoconfig # RA from mikrotik not working
  ipv6 address autoconfig # RA from mikrotik suddenly starts working
  no ipv6 address autoconfig # IPMI immediately losts SLAAC IPv6 address and become unresponsive

拓扑:

-> 上行链路 -> 思科(L3 路由到 VLAN)-> 服务器

我在上行链路(vlan 1)上收到通过单个 /64 路由的非路由 /27 IPv4 和 /48 IPv6。因此,Cisco 将 IPv6 路由到 VLAN,其中每个 VLAN 都被分配了唯一的 /64 范围并启用了 RA。每个需要 IPv4 的人都被分配了第二个端口(模式访问 + vlan 1)。

然而,VLAN 3 是特殊的,因为它通过 mikrotik(防火墙)进行委派,然后将相同的 cisco 用作 L2 交换机(访问 vlan 3)。在这种情况下,流量通过 cisco 两次。

-> 上行链路 -> Cisco -> (Gi0/2 VLAN 2 -> ether1) Mikrotik (ether2 -> Gi0/3 VLAN 3) -> Cisco -> IPMI

IPMI 然后连接到 VLAN 3,委托的 IPv6 预计将通过 mikrotik 进行管理。

当我们将 IPMI 直接连接到 mikrotik 时,它可以正常工作。

显示版本

Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 52    WS-C3560G-48TS     15.0(2)SE4            C3560-IPSERVICESK9-M

显示运行配置

version 15.0
ipv6 unicast-routing
interface GigabitEthernet0/1  # uplink port
!
interface GigabitEthernet0/2  # ether1 to mikrotik
 switchport access vlan 2
 switchport mode access
!
interface GigabitEthernet0/3  # ether2 from mikrotik, which manages IPv6 RA
 switchport access vlan 3
 switchport mode access
!
....
interface GigabitEthernet0/27 # Example of server uplink
 switchport access vlan 10
 switchport mode access
!
interface GigabitEthernet0/28 # Example of IPMI uplink
 switchport access vlan 3
 switchport mode access
!
interface GigabitEthernet0/41 # Example of port with IPv4
 switchport access vlan 1
 switchport mode access
!
...
interface Vlan1 # Uplink VLAN
 no ip address
 ipv6 address 2001:db8:0:ffff::1/64
 ipv6 nd ra suppress all
!
interface Vlan2 # Mikrotik prefix delegation network
 no ip address
 ipv6 address 2001:db8:0:1::1/64
 ipv6 nd ra suppress all
!
interface Vlan3 # IPMI VLAN - IP addresses are managed by mikrotik
 no ip address
!
interface Vlan10 # VLAN for servers
 no ip address
 ipv6 address 2001:db8:0:10::1/64
 ipv6 nd managed-config-flag
 ipv6 nd other-config-flag
 ipv6 dhcp relay destination .......
!
...
ipv6 route 2001:db8:0:3::/64 2001:db8:0:1::2 # Prefix delegation to mikrotik
ipv6 route ::/0 2001:db8:0:ffff::2

ipv6 address autoconfig

显示 sdm 喜欢

The current template is "desktop IPv4 and IPv6 routing" template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.

 number of unicast mac addresses:                  1.5K
 number of IPv4 IGMP groups + multicast routes:    1K
 number of IPv4 unicast routes:                    2.75K
   number of directly-connected IPv4 hosts:        1.5K
   number of indirect IPv4 routes:                 1.25K
 number of IPv6 multicast groups:                  1.125k
 number of directly-connected IPv6 addresses:      1.5K
 number of indirect IPv6 unicast routes:           1.25K
 number of IPv4 policy based routing aces:         0.25K
 number of IPv4/MAC qos aces:                      0.5K
 number of IPv4/MAC security aces:                 0.5K
 number of IPv6 policy based routing aces:         0.25K
 number of IPv6 qos aces:                          0.625k
 number of IPv6 security aces:                     0.5K
1个回答

通过升级到 IOS 15.0(2)SE10 (c3560-ipservicesk9-mz.150-2.SE4) 修复。地狱,花了一整天的时间来调试这个问题。