1. First, log into the switch you wish to configure.
2. Next, escalate up to Configure Terminal and then type the following:
a. #conf t
b. #ip default-gateway 172.16.X.X
c. #end
d. #write
3. Next you can direct your traffic through this route if you wish, as a gateway of last resort:
a. #ip route 0.0.0.0 0.0.0.0 172.16.X.X
b. #end
c. #write
4. Verify by typing in the following:
a. #show ip route
b. Then verify you see a gateway of last resort listed.
Reference:
https://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/16448-default.html
2. Next, escalate up to Configure Terminal and then type the following:
a. #conf t
b. #ip default-gateway 172.16.X.X
c. #end
d. #write
3. Next you can direct your traffic through this route if you wish, as a gateway of last resort:
a. #ip route 0.0.0.0 0.0.0.0 172.16.X.X
b. #end
c. #write
4. Verify by typing in the following:
a. #show ip route
b. Then verify you see a gateway of last resort listed.
Reference:
https://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/16448-default.html