xxxxxxxxxx
-- Enter global configuration mode.
S1# configure terminal
-- Configure the switch default gateway.
S1(config)# ip default-gateway 172.17.99.1
-- Return to privileged EXEC mode.
S1(config)# end
-- Save the running config to the startup config.
S1# copy running-config startup-config