11 ip address, 12 ipv6 address, 11 ip address -178 – PLANET XGS3-24042 User Manual

Page 332: 12 ipv6 address -178

Advertising
background image

19-178

19.2.11 ip address

Command:

ip address <ip-address> <mask> [secondary]

no ip address [<ip-address> <mask>] [secondary]

Function:

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

command deletes the IP address configuration.

Parameter:

<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.

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

19.2.12 ipv6 address

Command:

ipv6 address <ipv6-address|prefix-length> [eui-64]

no ipv6 address <ipv6-address|prefix-length> [eui-64]

Function:

Configure aggregately global unicast address, site-local address and link-local address for the

interface.

Parameter:

Parameter <ipv6-address> is the prefix of IPv6 address, parameter <prefix-length> is the prefix

Advertising
This manual is related to the following products: