CHGDHCPA
Modifier attributs DHCP
Change DHCP Attributes
En bref
(CHGDHCPA) Utilisez cette commande pour définir ou modifier les attributs du serveur DHCP : AUTOSTART et MODE (CHGDHCPA) Use this command to set or change the DHCP Server Attributes: AUTOSTART and MODE
CHGDHCPA se lit CHG
(Modifier) + DHCPA.
Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.
Syntaxe minimale
CHGDHCPA
Paramètres
-
AUTOSTARTDémarrage automatique du serveur Autostart server -
MODEMode -
IPVERSIONVersion IP IP version
Astuce : dans une session 5250, tapez CHGDHCPA puis F4 pour
l'invite de saisie, et F1 sur un paramètre pour son aide.
Aide IBM i de la commande
Texte du F1, IBM i 7.5 en français
(bibliothèque QSYS)
Où s'exécute : Tous les environnements (*ALL)
Compatible multitâche : Non
(CHGDHCPA) Utilisez cette commande pour définir ou modifier les attributs du serveur DHCP : AUTOSTART et MODE (CHGDHCPA) Use this command to set or change the DHCP Server Attributes: AUTOSTART and MODE
Les modifications prennent effet au prochain démarrage du serveur DHCP. The changes take effect the next time the DHCP server is started.
Restriction : Restriction:
Vous devez posséder le droit spécial *IOSYSCFG pour utiliser cette commande. You must have *IOSYSCFG special authority to use this command.
Démarrage automatique du serveur (AUTOSTART)Autostart server (AUTOSTART)
L'attribut AUTOSTART détermine si le serveur DHCP démarre automatiquement lorsque TCP/IP est démarré par la commande STRTCP, ou lorsque la commande STRTCPSVR SERVER(*AUTOSTART) est émise. The AUTOSTART attribute determines whether or not the DHCP server starts automatically when TCP/IP is started using the STRTCP command, or when the STRTCPSVR SERVER(*AUTOSTART) command is issued.
Cet attribut est utilisé par la commande STRTCPSVR si STRTCPSVR *AUTOSTART est indiqué. STRTCPSVR *DHCP ou STRTCPSVR *ALL démarre le serveur DHCP quelle que soit la valeur de l'attribut AUTOSTART. Il existe une exception : This attribute is used by the STRTCPSVR command if STRTCPSVR *AUTOSTART is specified. STRTCPSVR *DHCP or STRTCPSVR *ALL will start the DHCP server regardless of the value of the AUTOSTART attribute. There is an exception:
Remarque :Si la commande STRTCPSVR *ALL est émise, tous les serveurs TCP/IP configurés démarrent. Toutefois, un serveur BOOTP et un serveur DHCP ne peuvent pas s'exécuter simultanément sur la même machine. Si la commande STRTCPSVR *ALL est émise, le système vérifie d'abord si un travail de serveur BOOTP et un travail de serveur DHCP sont tous deux configurés. Si tel est le cas, le système vérifie l'attribut AUTOSTART de chaque serveur. Remarque :If the STRTCPSVR *ALL command is issued, all TCP/IP servers that have been configured will start. However, a BOOTP and DHCP server cannot both run on the same machine at the same time. If the STRTCPSVR *ALL command is issued, the system will first check to see if both a BOOTP and DHCP server job is configured. If both are configured the system will check the AUTOSTART attribute for each server.
Si l'un des attributs AUTOSTART des serveurs (BOOTP ou DHCP) est *YES et l'autre *NO, le serveur dont l'attribut AUTOSTART est *YES démarre. If one of the server (BOOTP or DHCP) AUTOSTART attributes is set to *YES and the other is set to *NO, the server with AUTOSTART attribute set to *YES will start.
Si les attributs AUTOSTART de BOOTP et de DHCP sont tous deux *NO, le serveur DHCP démarre. If both the BOOTP and DHCP AUTOSTART attributes are set to *NO, the DHCP server will start.
Vous ne pouvez pas donner la valeur *YES à l'attribut DHCP AUTOSTART si la valeur BOOTP AUTOSTART est *YES. Un serveur BOOTP et un serveur DHCP ne peuvent pas s'exécuter simultanément sur la même machine. Un message d'erreur est émis si vous tentez de donner la valeur *YES à la fois aux valeurs AUTOSTART de BOOTP et de DHCP. You cannot set the DHCP AUTOSTART attribute to *YES if the BOOTP AUTOSTART value is set to *YES. A BOOTP and DHCP server cannot run simultaneously on the same machine. You will get an error message if you attempt to set both the BOOTP and DHCP AUTOSTART values to *YES.
- *SAME
- Indiquez *SAME si vous ne souhaitez pas modifier la valeur AUTOSTART par rapport au paramétrage précédent. Si vous indiquez *SAME et que cette valeur n'avait pas été définie précédemment, la valeur *NO est utilisée. Specify *SAME if you do not want to change the AUTOSTART value from the previous setting. If you specify *SAME and this value was not previously set, the value *NO will be used.
- *YES
- Indiquez la valeur *YES si vous souhaitez que le serveur DHCP démarre automatiquement chaque fois que TCP/IP est démarré par la commande STRTCP, ou chaque fois que les serveurs TCP/IP sont démarrés par la commande STRTCPSVR *AUTOSTART. Specify a value of *YES if you want the DHCP server to start automatically each time TCP/IP is started by the STRTCP command, or each time the TCP/IP servers are started by the STRTCPSVR *AUTOSTART command.
- *NO
- Specify *NO if you do not want the DHCP server to start automatically each time TCP/IP is started by the STRTCP command, or each time the TCP/IP servers are started by the STRTCPSVR *AUTOSTART command.
Lorsque la valeur est *NO, seule la commande STRTCPSVR *DHCP ou la commande STRTCPSVR *ALL démarre le serveur DHCP. When the value is set to *NO, only the STRTCPSVR *DHCP command or the STRTCPSVR *ALL command will start the DHCP server.
Si vous n'avez pas l'intention d'utiliser le serveur DHCP, donnez la valeur *NO à AUTOSTART. If you do not intend to use the DHCP server, set AUTOSTART to *NO.
Mode (MODE)
L'attribut MODE détermine le fonctionnement du serveur DHCP. Il peut fonctionner en tant que serveur DHCP ou uniquement en tant qu'agent relais. Un agent relais transfère les paquets BOOTP ou DHCP des hôtes vers les serveurs BOOTP ou DHCP actifs, et des serveurs vers les hôtes. Il n'exécute aucune fonction de serveur BOOTP ou DHCP. The MODE attribute determines how the DHCP server will function. It can function as a DHCP server, or as a Relay agent only. A Relay Agent forwards BOOTP or DHCP packets from hosts to active BOOTP or DHCP servers and from the servers back to the hosts. It performs no BOOTP or DHCP server functions.
- *SAME
- Indiquez *SAME si vous ne souhaitez pas modifier la valeur MODE par rapport au paramétrage précédent. Si vous indiquez *SAME et que cette valeur n'avait pas été définie précédemment, la valeur *SERVER est utilisée. Specify *SAME if you do not want to change the MODE value from the previous setting. If you specify *SAME and this value was not previously set, the value *SERVER will be used.
- *SERVER
- Donnez cette valeur à *SERVER si vous souhaitez que le serveur DHCP attribue automatiquement des adresses IP réutilisables aux hôtes en réponse à leurs demandes. Set this value to *SERVER if you want the DHCP server to automatically assign reusable IP addresses to hosts in response to host requests.
- *RELAY
- Donnez cette valeur à *RELAY si vous souhaitez que le serveur DHCP fonctionne uniquement en tant qu'agent relais. Un agent relais transfère les paquets BOOTP ou DHCP des hôtes vers les serveurs BOOTP ou DHCP actifs, et des serveurs vers les hôtes. Il n'exécute aucune fonction de serveur BOOTP ou DHCP. Set this value to *RELAY if you want the DHCP server to function only as a Relay Agent. A Relay Agent forwards BOOTP or DHCP packets from hosts to active BOOTP or DHCP servers and from the servers back to the hosts. It performs no BOOTP or DHCP server functions.
Version IP (IPVERSION)IP version (IPVERSION)
L'attribut IPVERSION détermine les versions d'adresses IP que le serveur DHCP dessert. Il peut desservir uniquement IP version 4 (IPv4), uniquement IP version 6 (IPv6) ou toutes les versions IP. The IPVERSION attribute determines what IP address versions the DHCP server will service. It can service only IP version 4 (IPv4), only IP version 6 (IPv6) or all IP versions.
- *SAME
- Indiquez *SAME si vous ne souhaitez pas modifier la valeur IPVERSION par rapport au paramétrage précédent. Si vous indiquez *SAME et que cette valeur n'avait pas été définie précédemment, la valeur *ALL est utilisée. Specify *SAME if you do not want to change the IPVERSION value from the previous setting. If you specify *SAME and this value was not previously set, the value *ALL will be used.
- *IPV4
- Donnez cette valeur à *IPV4 si vous souhaitez que le serveur DHCP ne traite que les demandes DHCP des clients DHCP utilisant IP version 4. Set this value to *IPV4 if you want the DHCP server to only service DHCP requests from DHCP clients using IP version 4.
- *IPV6
- Donnez cette valeur à *IPV6 si vous souhaitez que le serveur DHCP ne traite que les demandes DHCP des clients DHCP utilisant IP version 6. Set this value to *IPV6 if you want the DHCP server to only service DHCP requests from DHCP clients using IP version 6.
- *ALL
- Donnez cette valeur à *ALL si vous souhaitez que le serveur DHCP traite les demandes DHCP des clients DHCP quelle que soit la version IP. Set this value to *ALL if you want the DHCP server to service DHCP requests from DHCP clients running any IP version.
Exemples
Exemple 1 : Démarrage automatique du serveur DHCP Example 1: Start the DHCP Server automatically
CHGDHCPA AUTOSTART(*YES)
Cette commande indique que la prochaine fois que la commande STRTCP sera émise pour démarrer TCP/IP et démarrer automatiquement les applications TCP/IP, le serveur DHCP sera démarré automatiquement. This command indicates that the next time the STRTCP command is issued to start up TCP/IP and to automatically start the TCP/IP applications, the DHCP Server will be started automatically.
Exemple 2 : Fonctionnement de DHCP en tant qu'agent relais BOOTP/DHCP Example 2: Have DHCP Function as a BOOTP/DHCP Relay Agent
CHGDHCPA AUTOSTART(*SAME) MODE(*RELAY)
Cette commande indique que lors du prochain démarrage du serveur DHCP, celui-ci doit fonctionner en tant qu'agent relais BOOTP/DHCP. Il ne tente plus de traiter les paquets DHCP sur le système local, mais les relaie. Si DHCP est en cours d'exécution, cette commande n'a aucun effet sur son mode d'exécution actuel, car les attributs CHGDHCPA ne prennent effet qu'au prochain démarrage du serveur. L'attribut de démarrage automatique n'est pas modifié. This command indicates that the next time the DHCP Server gets started, it should function as a BOOTP/DHCP Relay Agent. It will no longer attempt to process DHCP packets on the local system, but will instead relay them. If DHCP is currently running, this command has no affect on its current execution mode, since CHGDHCPA attributes do not take affect until the next time the server is started. The autostart attribute is not changed.
Exemple 3 : Autorisation du démarrage manuel uniquement du serveur DHCP Example 3: Only allow DHCP Server to be Started Manually
CHGDHCPA AUTOSTART(*NO) MODE(*SERVER)
Cette commande indique que le serveur DHCP ne doit pas être démarré automatiquement avec le reste de TCP/IP lorsque la commande STRTCP est émise. Il ne peut être démarré que manuellement, par la commande STRTCPSVR. Avec la valeur MODE *SERVER, cet exemple fait également en sorte que le serveur DHCP tente de traiter tous les paquets DHCP reçus sur ce système. This command indicates that the DHCP Server should not be started automatically with the rest of TCP/IP when the STRTCP command is issued. It can only be started manually via the STRTCPSVR command. Via the MODE setting of *SERVER, this example is also causing the DHCP server to attempt to process all DHCP packets received on this system.
Exemple 4 : Autorisation du démarrage du seul serveur DHCP pour IP version 4 Example 4: Only allow DHCP Server for IP version 4 to be Started
CHGDHCPA AUTOSTART(*SAME) MODE(*SAME) IPVERSION(*IPV4)
Cette commande indique que lors du prochain démarrage du serveur DHCP, celui-ci ne doit traiter que les paquets DHCP reçus sur IP version 4. This command indicates that the next time the DHCP Server gets started it should only process DHCP packets received on IP version 4.
Messages d'erreur
Aucun
© Copyright IBM Corp. Texte d'aide reproduit à des fins de formation.