CLI Reference IP Address Configuration Commands
The following is the output of the show ip redirectes command:
Ruijie# show ip redirects
Default Gateway: 192.168.195.1
Configure the default gateway, which is
only supported on the Layer 2 switch.
This command is not supported on the Layer 2 switch.
Use this command to configure the default gateway on the Layer2 switch. Use the no
form of this command to remove the default gateway.
By default, no default gateway is configured.
Global configuration mode.
The packets will be sent to the default gateway if the destination address is unknown.
Use the show ip redirects command to view the default gateway.
The following is an example of setting the default gateway 192.168.1.1:
ip default-gateway 192.168.1.1
Show the default gateway, which is
supported on the Layer 2 switch only.
This command is supported on the Layer 2 switch only.