9 ip default-gateway, 9 ip default-gateway -9 – PLANET WGSW-52040 User Manual
Page 398
23-9
indicates that the IP address is configured as secondary IP address.
Command Mode:
VLAN interface configuration mode
Default:
The system default is no IP address configuration.
Usage Guide:
This command configures IP address on VLAN interface manually. If optional parameter secondary is not
configured, then it is configured as the primary IP address of VLAN interface; if optional parameter secondary is
configured, then that means the IP address is the secondary IP address of VLAN. One VLAN interface can only have
one primary IP address and more than one secondary IP addresses. Primary IP and Secondary IP all can be used
on SNMP/Web/Telnet management. Furthermore, the switch also provides BOOTP/DHCP manner to get IP address.
Example:
The IP address of switch VLAN1 interface is set to 192.168.1.10/24.
Switch(Config-if-Vlan1)#ip address 192.168.1.10 255.255.255.0
23.2.9 ip default-gateway
Command:
ip default-gateway
no ip default-gateway
Function:
Configure the default gateway of the router. The no command cancels the configuration.
Parameter:
Command mode:
Global mode.
Default:
There is no default gateway.