DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
23
5.
Basic IPv4 Commands
5-1
ip address
This command is used to IPv4 address for an interface, or acquire an IP address on an interface from the
DHCP. Use the
no
form of this command to remove the configuration of an IP address or disable DHCP on the
interface.
ip address {
IP-ADDRESS SUBNET-MASK
| dhcp}
no ip address
Parameters
IP-ADDRESS
Specifies the IP address.
SUBNET-MASK
Specifies the subnet mask for the associated IP address.
dhcp
Specifies to acquire an IP address configuration on an interface
from the DHCP protocol.
Default
None.
Command Mode
Time-range Configuration Mode.
Command Default Level
Level: 15
Usage Guideline
The IPv4 address of an interface can be either manually assigned by the user or dynamically assigned by the
DHCP server. Use the no ip address command to delete the configured IP address entry.
Example
This example shows how to set 10.90.90.91 is the ip address for VLAN 1.
Switch# config terminal
Switch(config)# interface vlan 1
Switch(config-if-vlan)# ip address 10.90.90.91 255.255.255.0
Switch(config-if-vlan)#
5-2
ip route
This command is used to configure static route that destination is default gateway.
ip route
NETWORK-PREFIX NETWORK-MASK IP-ADDRESS
no ip address
NETWORK-PREFIX NETWORK-MASK IP-ADDRESS
Parameters