I am seeing this behavior on our 2950 access switches.
2950-05#
2950-05#sh run | in gateway
gateway 172.22.0.1
2950-05#
2950-05#trace 10.177.15.18
Tracing the route to 10.177.15.18
1 172.22.0.6 0 msec 0 msec 4 msec
2 172.22.0.6 !H * !H
yki-access-2950-05#
The default-gateway points to 172.22.0.1, but the switch forwards the traffic to 172.22.0.6.
At the same time, It works fine for other IPs in the same subnet.
2950-05#trace 10.177.15.19
Tracing the route to 10.177.15.19
1 172.22.0.1 4 msec 4 msec 4 msec
Can anybody explain this?