The correct command to configure the default gateway on a switch is 'ip default-gateway x.x.x.x' with a hyphen between default and gateway. Options A and B are missing the hyphen or using incorrect syntax, C uses an underscore instead of a hyphen which is incorrect.