Dell PowerConnect 3324/3348 Switch CLI Guide
Use the ip address interface configuration command to set an IP address. To remove an IP address, use the no form of this command.
ip address ip-address {mask | prefix-length}
no ip address [ip-address]
This command has no default configuration.
Interface Configuration (VLAN) Mode
An IP address cannot be configured for a range of interfaces (interface range ethernet command).
The following example configures VLAN 1 with the 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 |
Use the ip address-dhcp interface configuration command to acquire an IP address on an interface from the Dynamic Host Configuration Protocol (DHCP) server. To deconfigure any acquired address, use the no form of this command.
The no ip address-dhcp command deconfigures any IP address that was acquired, thus sending a DHCPRELEASE message.
ip address-dhcp [hostname host-name]
no ip address-dhcp
This command has no default configuration.
Interface Configuration (VLAN)
The ip address-dhcp command allows any interface to dynamically learn its IP address by using the DHCP protocol.
Some DHCP servers require that the DHCPDISCOVER message have a specific host name. The most typical usage of the ip address-dhcp hostname host-name command is when host-name is the host name provided by the system administrator.
If a device is configured to obtain its IP address from a DHCP server, it sends a DHCPDISCOVER message to provide information about itself to the DHCP server on the network.
If the ip address-dhcp command is used with or without the optional keyword, the DHCP option 12 field (host name option) is included in the DISCOVER message. By default, the specified DHCP host name is the device globally configured host name.
The following example acquires an IP address on an ethernet interface from DHCP.
Console (config)# interface ethernet 1/e8 Console (config-if)# ip address-dhcp |
Use the ip default-gateway global configuration command to define default gateways. To remove a default gateway, use the no form of this command.
ip default-gateway ip-address1 [ip-address2...]
no ip default-gateway [ip-address]
No default gateway is defined.
Global Configuration Mode
Multiple gateways can be configured, but only one can be active.
The following example defines a default gateway with the IP address 196.210.10.1.
Console (config)# ip default-gateway 196.210.10.1 |
Use the show ip interface privileged EXEC command to display a list of IP interfaces configured on the device.
show ip interface [ethernet interface-number | vlan vlan-id | port-channel number]
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays VLAN 1 configuration.
Console# show ip interface vlan 1 Internet address is 10.7.1.192/24 Directed broadcast forwarding is disabled Proxy ARP is disabled (Global configuration) |
Use the arp global configuration command to add a static entry in the Address Resolution Protocol (ARP) cache. To remove an entry from the ARP cache, use the no form of this command.
arp ip_addr hw_addr {ethernet interface-number | vlan vlan-id | port-channel number}
no arp ip_addr {ethernet interface-number | vlan vlan-id | port-channel number}
This command has no default configuration.
Global Configuration Mode
The software uses ARP cache entries to translate 32-bit IP addresses into 48-bit hardware addresses. Because most hosts support dynamic resolution, static ARP cache entries do not need to be specified.
The following example adds an IP address and MAC address to the ARP table.
Console (config)# arp 198.133.219.232 00-00-0c-40-0f-bc |
Use the arp timeout global configuration command to configure how long an entry remains in the ARP cache. To restore the default value, use the no form of this command.
Note: The ARP entry is deleted between the period of the "timeout value" and twice the "timeout value". For example, if the timeout value is 20 seconds, the ARP value is deleted during the period of 20 to 40 seconds.
arp timeout seconds
no arp timeout seconds
The default timeout is 60000 seconds.
Global Configuration Mode
There are no user guidelines for this command.
The following example configures ARP timeout to 12000 seconds.
Console# arp timeout 12000 |
Use the clear arp-cache privileged EXEC command to delete all dynamic entries from the ARP cache.
clear arp-cache
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example deletes all dynamic entries from the ARP cache.
Console# clear arp-cache |
Use the show arp privileged EXEC command to display entries in the ARP table.
show arp
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays entries in the ARP table.
Console# show arp Interface IP address HW address Status ---- ---------- ----------------- ------- 1/1 10.7.1.102 00:10:B5:04:DB:4B Dynamic 2/2 10.7.1.135 00:50:22:00:2A:A4 Static |