I'm having problems accessing remote switches. Example: In site A, I have three switches--switch1, switch2, switch3--and all are setup with a management interface and a default route. Switch1 has a mgt interface of 10.255.102.1 and the default route is 10.20.102.10, which belongs to the local router. I have a similar setup on switch2 and switch3--10.255.102.2 & 10.255.102.3 are the mgt interfaces with the same default route setup. The router is plugged into switch1. I can access these switches through the first switch only, but I need to access them directly to make changes/update software through mgt software. Below is the code I use to setup the default route. Any thoughts would be appreciated.
I've tried both of the following:
ip default-gateway 10.20.102.1
ip route 0.0.0.0 0.0.0.0 10.20.102.1