said by dru06 :
i have a question that i would like to know the answer to and why. if i have a router connected to a layer3 switch that is doing routing and from that switch i go to a computer. on that computer what would the gateway be? the router or the switch? if this is answered else where please let me know. thank you
It depends on the switch configuration, but generally you would use the next hop as your gateway IP. (On the computer, you would want to know what subnet you should be in, and that would dictate the gateway IP, not the equipment connected).
If this is a class question, it's horribly worded, unless you have a diagram that clears it up.