T2700G-28TQ
JetStream 28-Port Gigabit Stackable L2+ Managed Switch CLI Guide
148
ip address
Description
This
ip address
command is used to configure the IP address and IP subnet
mask for the specified interface manually. The interface type includes: routed
port, loopback interface and VLAN interface.
Syntax
ip address
{
ip-addr
} {
mask
}
no ip address
Parameter
ip-addr
—— The IP address of the Layer 3 interface.
mask
—— The subnet mask of the Layer 3 interface.
Command Mode
Interface Configuration Mode
Example
Create the VLAN interface 2 with the IP address as 192.168.1.1 and subnet
mask as 255.255.255.0:
T2700G-28TQ(config)# interface vlan
2
T2700G-28TQ(config-if)# ip address
192.168.1.1 255.255.255.0
ip address-alloc
Description
The
IP address-alloc dhcp
command is used to enable the DHCP Client
function or the BOOTP Protocol. When this function is enabled, the specified
interface will obtain IP from DHCP Server or BOOTP server. To disable the IP
obtaining function on the specified interface, please use the
no ip address
command. This command applies to the routed port and the VLAN interface.
Syntax
ip address-alloc
{ dhcp | bootp }
no ip address