Cisco PIX 525 Dokumentacja Strona 110

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 109
8-28
Cisco Security Appliance Command Line Configuration Guide
OL-6721-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
To enable DHCP relay, perform the following steps:
Step 1 To set the IP address of a DHCP server on a different interface from the DHCP client, enter the following
command:
hostname(config)# dhcprelay server
ip_address if_name
You can use this command up to 4 times to identify up to 4 servers.
Step 2 To enable DHCP relay on the interface connected to the clients, enter the following command:
hostname(config)# dhcprelay enable
interface
Step 3 (Optional) To set the number of seconds allowed for relay address negotiation, enter the following
command:
hostname(config)# dhcprelay timeout
seconds
Step 4 (Optional) To change the first default router address in the packet sent from the DHCP server to the
address of the security appliance interface, enter the following command:
hostname(config)# dhcprelay setroute
interface_name
This action allows the client to set its default route to point to the security appliance even if the DHCP
server specifies a different router.
If there is no default router option in the packet, the security appliance adds one containing the interface
address.
The following example enables the security appliance to forward DHCP requests from clients connected
to the inside interface to a DHCP server on the outside interface:
hostname(config)# dhcprelay server 201.168.200.4
hostname(config)# dhcprelay enable inside
hostname(config)# dhcprelay setroute inside
Configuring the DHCP Client
To configure the security appliance interface as a DHCP client, perform the following steps:
hostname(config-if)# ip address dhcp [retry
num
] [setroute]
The optional retry num argument specifies the number of times the interface will attempt to contact a
DHCP server. The default value is 4, the maximum value is 48. The setroute keyword causes the
security appliance to set the default route using the default gateway the DHCP server returns.
Note You cannot enable a DHCP server or DHCP Relay services on an interface that is configured as a DHCP
client.
Przeglądanie stron 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 603 604

Komentarze do niniejszej Instrukcji

Brak uwag