Multiple choice technology

how to configure Ip default gateway in switch?

  1. default gateway x.x.x.x

  2. ip-default-gateway x.x.x.x

  3. ip default_gateway x.x.x.x

  4. ip default-gateway x.x.x.x

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

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.