
506
IP Addressing Commands
User Guidelines
This command only applies to routing interfaces. When DHCP is enabled on
a routing interface, the system automatically deletes all manually configured
IPv4 addresses on the interface.
• The command
no ip address dhcp
removes the interface’s primary address
(Manual/DHCP) including the secondary addresses, if configured, and sets
the Interface method to
None
.
• The command
no ip address
removes the interface’s primary address only
if configured through DHCP and sets the interface method to
None
. It
does not remove a manually configured address.
In addition to leasing an IP address and subnet mask, the DHCP client may
learn the following parameters from a DHCP server:
• The IPv4 address of a default gateway. If the device learns different default
gateways on different interfaces, the system uses the first default gateway
learned. The system installs a default route in the routing table, with the
default gateway’s address as the next hop address. This default route has a
preference of 254.
• The IPv4 address of a DNS server. The DNS client stores each DNS server
address in its server list.
• A domain name. The DNS client stores each domain name in its domain
name list.
Examples
To enable DHCPv4 on vlan 2:
console#config
console(config)#interface vlan 2
console(config-if-vlan2)#ip address dhcp
ip default-gateway
Use the
ip default-gateway
command in Global Configuration mode to
configure a default gateway (router).
2CSPC4.XCT-SWUM2XX1.book Page 506 Monday, October 3, 2011 11:05 AM
Summary of Contents for PowerConnect 7000 Series
Page 74: ...74 Contents 2CSPC4 XCT SWUM2XX1 book Page 74 Monday October 3 2011 11 05 AM ...
Page 164: ...164 Command Groups 2CSPC4 XCT SWUM2XX1 book Page 164 Monday October 3 2011 11 05 AM ...
Page 266: ...266 AAA Commands 2CSPC4 XCT SWUM2XX1 book Page 266 Monday October 3 2011 11 05 AM ...
Page 316: ...316 Auto VoIP Commands 2CSPC4 XCT SWUM2XX1 book Page 316 Monday October 3 2011 11 05 AM ...
Page 368: ...368 DHCP Snooping Commands 2CSPC4 XCT SWUM2XX1 book Page 368 Monday October 3 2011 11 05 AM ...
Page 454: ...454 Ethernet CFM Commands 2CSPC4 XCT SWUM2XX1 book Page 454 Monday October 3 2011 11 05 AM ...
Page 468: ...468 Green Ethernet Commands 2CSPC4 XCT SWUM2XX1 book Page 468 Monday October 3 2011 11 05 AM ...
Page 558: ...558 IP Source Guard Commands 2CSPC4 XCT SWUM2XX1 book Page 558 Monday October 3 2011 11 05 AM ...
Page 578: ...578 Link Dependency Commands 2CSPC4 XCT SWUM2XX1 book Page 578 Monday October 3 2011 11 05 AM ...
Page 606: ...606 LLDP Commands 2CSPC4 XCT SWUM2XX1 book Page 606 Monday October 3 2011 11 05 AM ...
Page 700: ...700 QoS Commands 2CSPC4 XCT SWUM2XX1 book Page 700 Monday October 3 2011 11 05 AM ...
Page 728: ...728 RADIUS Commands 2CSPC4 XCT SWUM2XX1 book Page 728 Monday October 3 2011 11 05 AM ...
Page 808: ...808 VLAN Commands 2CSPC4 XCT SWUM2XX1 book Page 808 Monday October 3 2011 11 05 AM ...
Page 814: ...814 Voice VLAN Commands 2CSPC4 XCT SWUM2XX1 book Page 814 Monday October 3 2011 11 05 AM ...
Page 848: ...848 802 1x Commands 2CSPC4 XCT SWUM2XX1 book Page 848 Monday October 3 2011 11 05 AM ...
Page 850: ...850 Layer 3 Commands 2CSPC4 XCT SWUM2XX1 book Page 850 Monday October 3 2011 11 05 AM ...
Page 912: ...912 DHCPv6 Commands 2CSPC4 XCT SWUM2XX1 book Page 912 Monday October 3 2011 11 05 AM ...
Page 920: ...920 DVMRP Commands 2CSPC4 XCT SWUM2XX1 book Page 920 Monday October 3 2011 11 05 AM ...
Page 946: ...946 IGMP Proxy Commands 2CSPC4 XCT SWUM2XX1 book Page 946 Monday October 3 2011 11 05 AM ...
Page 1062: ...1062 IPv6 Routing Commands 2CSPC4 XCT SWUM2XX1 book Page 1062 Monday October 3 2011 11 05 AM ...
Page 1174: ...1174 OSPF Commands 2CSPC4 XCT SWUM2XX1 book Page 1174 Monday October 3 2011 11 05 AM ...
Page 1234: ...1234 OSPFv3 Commands 2CSPC4 XCT SWUM2XX1 book Page 1234 Monday October 3 2011 11 05 AM ...
Page 1294: ...1294 Utility Commands 2CSPC4 XCT SWUM2XX1 book Page 1294 Monday October 3 2011 11 05 AM ...
Page 1304: ...1304 Auto Install Commands 2CSPC4 XCT SWUM2XX1 book Page 1304 Monday October 3 2011 11 05 AM ...
Page 1348: ...1348 CLI Macro Commands 2CSPC4 XCT SWUM2XX1 book Page 1348 Monday October 3 2011 11 05 AM ...
Page 1366: ...1366 Clock Commands 2CSPC4 XCT SWUM2XX1 book Page 1366 Monday October 3 2011 11 05 AM ...
Page 1478: ...1478 RMON Commands 2CSPC4 XCT SWUM2XX1 book Page 1478 Monday October 3 2011 11 05 AM ...
Page 1518: ...1518 Sflow Commands 2CSPC4 XCT SWUM2XX1 book Page 1518 Monday October 3 2011 11 05 AM ...
Page 1578: ...1578 Syslog Commands 2CSPC4 XCT SWUM2XX1 book Page 1578 Monday October 3 2011 11 05 AM ...
Page 1646: ...1646 Telnet Server Commands 2CSPC4 XCT SWUM2XX1 book Page 1646 Monday October 3 2011 11 05 AM ...
Page 1686: ...1686 Web Server Commands 2CSPC4 XCT SWUM2XX1 book Page 1686 Monday October 3 2011 11 05 AM ...
Page 1729: ...2CSPC4 XCT SWUM2XX1 book Page 1 Monday October 3 2011 11 05 AM ...