D-Link CLI Reference Guide
Page 144
Section 10. IP Addressing Commands
ip address
The
ip address
Interface Configuration (Ethernet, VLAN, port-channel) mode command sets an IP address. To
remove an IP address, use the
no
form of this command.
Syntax
ip address ip-address
{
mask
|
prefix-length
}
no ip address
[
ip-address
]
Parameters
•
ip-address
—Valid IP address
•
mask
— Valid network mask of the IP address.
•
prefix-length
— Specifies the number of bits that comprise the IP address prefix. The prefix length must be
preceded by a forward slash (/). (Range: 8 -30)
Default Configuration
No IP address is defined for interfaces.
Command Mode
Interface Configuration (Ethernet, VLAN, port-channel) mode
User Guidelines
An IP address cannot be configured for a range of interfaces (range context).
Example
The following example configures VLAN 1 with IP address 131.108.1.27 and subnet mask 255.255.255.0.
Console(config)#
interface vlan
1
Console(config-if)#
ip address
131.108.1.27 255.255.255.0
Summary of Contents for DXS-3250 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...