3 ip default-gatway – PLANET WGSW-50040 User Manual

Page 205

Advertising
background image

Set IP address and net mask of switch; the “no ip address [<ip-address> <mask>] [secondary]

command deletes the IP address configuration.

Parameters:

<ip-address> is IP address, dotted decimal notation;

<mask> is subnet mask, dotted decimal notation;

[secondary] indicates that the IP address is configured as secondary IP address.

Default:

The system default is no IP address configuration.

Command mode:

VLAN interface configuration mode

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

12.1.3 ip default-gatway

Command:

ip default-gateway <ip-address>

no ip default-gateway <ip-address>

Function:

Set the default-gateway address of switch; the no command will delete the default-gateway

address.

Parameters:

<ip-address> is default-gateway IP address, dotted decimal notation.

Default:

The system default is no IP address configuration.

Command mode:

Global configuration mode

Usage Guide:

The IP address of default-gateway and the IP address of layer 3 interface in the same segment to

Advertising