3-2
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter VLAN interface view
interface vlan-interface
vlan-id
—
Configure the VLAN interface
to obtain IP address through
DHCP or BOOTP
ip address
{
bootp-alloc
|
dhcp-alloc
}
Required
By default, no IP address is
configured for the VLAN
interface.
Currently, an S4200G Ethernet switch functioning as the DHCP client can use an IP address for 24
days at most. That is, the DHCP client can obtain an address lease for no more than 24 days even
though the DHCP server offers a longer lease period.
To improve security and avoid malicious attack to the unused SOCKETs, S4200G Ethernet switches
provide the following functions:
z
UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.
z
UDP 67 and UDP 68 ports are disabled when DHCP is disabled.
The specific implementation is:
z
Using the
ip address dhcp-alloc
command enables the DHCP client, and UDP port 68.
z
Using the
undo
ip address dhcp-alloc
command disables the DHCP client, and UDP port 68.
Displaying DHCP/BOOTP Client Configuration
To do…
Use the command…
Remarks
Display related information on a
DHCP client
display dhcp client
[
verbose
]
Display related information on a
BOOTP client
display bootp client
[
interface
Vlan-interface
vlan-id
]
Optional
Available in any
view
DHCP/BOOTP Client Configuration Example
DHCP Client Configuration Example
Network requirements
Using DHCP, VLAN-interface 1 of Switch A is connected to the LAN to obtain an IP address from the
DHCP server.
Содержание Switch 4800G PWR 24-Port
Страница 165: ...1 8 4 mac address es found on port GigabitEthernet1 0 2 ...
Страница 214: ...ii Displaying and Maintaining System Guard 4 1 ...
Страница 445: ...ii ...
Страница 727: ...i Table of Contents Appendix A Acronyms A 1 ...
Страница 730: ...A 3 VOD Video On Demand W WRR Weighted Round Robin X XID eXchange Identification XRN eXpandable Resilient Networking ...