C122-E003-02EN 8-45
GSWB
8.2 Configuration Definition Commands
Action: Specify the consistent ip default-gateway setting.
• Input parameter error.
Cause: An invalid parameter was specified.
Action: Specify the consistent ip default-gateway setting.
8.2.6.2 ip default-gateway
This command specifies the IP address of the default gateway. Before the command
is executed, the IP address of the host must be specified with the ip host command.
If bootp/dhcp is selected in the ip host command, the setting with this command does
not become effective.
(1) Synopsis
• Specifies the IP address of the default gateway
• Resets the default-gateway setting to the default value
(2) Options
z <ip-address>: Specifies the IP address of the default gateway.
(3) Command mode
Global
(4) See also
None
(5) Examples
• Sets the default gateway of the device to 10.10.10.10
• Resets the default-gateway setting of the device to the default value
ip default-gateway <ip-address>
no ip default-gateway
Switch# configure
Switch(config)# ip default-gateway 10.10.10.10
Switch(config)#