hi! I'm setting up the connection below, with the switch(2900) using the same vlan and subnet that's use in the switch(6509).
In this caes, do i need to set any default gateway for the switch(2900)? Will the vlan work in switch(2900) as it's not connected to another switch or directly to switch(6509) which is used for routing? should i use another subnet for the switch(2900) in this case?
If you wanted to connect to the switch by telnet, or if you want to use SNMP to get information from the switch, or if you want the switch to send syslog messages to a syslog server then you would use the management VLAN on the switch to make those connections.
If the management address of the switch wants to communicate only with devices within its own subnet (I think that is not likely) then you do not need ip default-gateway on the switch. But if the management address of the switch needs to communicate with things in other subnets then it does need the ip default-gateway configured.
Note that the ip default-gateway we are talking about is only for traffic originating from the switch. It has nothing to do with traffic from end stations passing through the switch.