when configuring active-gateway on a VLAN, does each switch need its own IP ?

Hello. I am somewhat confused by this one.

I have two-tier design, two CX10k switches as core and 4 cx8100 access switches (probably will have more soon). all configured as VSX pairs, and with uplinks from 8100 to cx10k, MCLAG used.

so that is:

  • two cx10k configured as VSX pair,
  • two 8100 configured as VSX pair, connected to cx10k,
  • and 2 more 8100 configured as vsx pair, connected to cx10k

My understanding is that I need to configure VLANs for my subnets, and I have few so this is great. And I want to use switches as gateways as well, because I will be doing the firewalling on the cx10k. VLANs will be randomly distributed across all switches.

Below config allows me to create such option, but I am wondering, does each VLAN interface needs IP assigned too?

here is from one of the core switches:

interface vlan 119
    description DMZ
    ip mtu 9198
    ip address 192.168.119.2/24
    active-gateway ip mac a2:01:00:00:00:01
    active-gateway ip 192.168.119.1
    ip ospf 1 area 0.0.0.0
    ip igmp enable
    ip pim-sparse enable

Do I need to assign IP address to remaining switches from the range 192.168.119.3-192.168.119.7, and keep range 192.168.119.8-11 in case I add two more pairs of 8100? That is rather wasteful.

Please help.

Much appreciated.