Zyxel XS3700-24 [70/371] Command examples

Zyxel XS3700-24 [70/371] Command examples
Chapter 15 DHCP Commands
Ethernet Switch CLI Reference Guide
70
15.2 Command Examples
In this example, the Switch relays DHCP requests for the VLAN1 and VLAN2 domains.
There is only one DHCP server for DHCP clients in both domains.
dhcp smart-relay interface port-
channel <port-list> option
profile <name>
Specifies a pre-defined DHCP option 82 profile that the
Switch applies to the specified port(s).
Note: The profile you specify here has priority over
the one you set using the dhcp smart-
relay option profile <name>
command.
C13
dhcp smart-relay option Allows the Switch to add DHCP relay agent information. C 13
dhcp smart-relay option profile
<name>
Specifies a pre-defined DHCPv4 option 82 profile that the
Switch applies to all ports. The Switch adds the Circuit ID
sub-option and/or Remote ID sub-option specified in the
profile to DHCP requests that it relays to a DHCP server.
C13
no dhcp smart-relay interface
port-channel <port-list>
Sets the Switch to not apply a DHCP option 82 profile to the
specified port(s).
C13
no dhcp smart-relay option Disables the relay agent information option 82 for global dhcp
settings.
C13
Table 54 dhcp server Command Summary
COMMAND DESCRIPTION M P
dhcp server <vlan-id> starting-
address <ip-addr> <subnet-mask>
size-of-client-ip-pool <1-253>
Enables DHCP server for the specified VLAN and specifies
the TCP/IP configuration details to send to DHCP clients.
C13
dhcp server <vlan-id> starting-
address <ip-addr> <subnet-mask>
size-of-client-ip-pool <1-253>
[default-gateway <ip-addr>]
[primary-dns <ip-addr>]
[secondary-dns <ip-addr>]
Enables DHCP server for the specified VLAN and specifies
the TCP/IP configuration details to send to DHCP clients.
Including default gateway IP address and DNS server
information.
C13
no dhcp server <vlan-id> Disables DHCP server for the specified VLAN. C 13
no dhcp server <vlan-id>
default-gateway
Disables DHCP server default gateway settings. C 13
no dhcp server <vlan-id>
primary-dns
Disables DHCP primary DNS server settings. C 13
no dhcp server <vlan-id>
secondary-dns
Disables DHCP server secondary DNS settings. C 13
show dhcp server Displays DHCP server settings. E 13
show dhcp server <vlan-id> Displays DHCP server settings in a specified VLAN. E 13
Table 53 dhcp smart-relay Command Summary (continued)
COMMAND DESCRIPTION M P

Содержание

Скачать