本文共 4045 字,大约阅读时间需要 13 分钟。
2.Topology:
3.Configuration on ASA:!interface GigabitEthernet0/0nameif dmzsecurity-level 95ip address 198.51.100.1 255.255.255.0!interface GigabitEthernet0/1nameif insidesecurity-level 90ip address 192.0.2.1 255.255.255.0dhcprelay server 198.51.100.2!dhcprelay server 198.51.100.2 dmzdhcprelay enable insidedhcprelay setroute insidedhcprelay timeout 60!Configuration on DHCP Server:!
interface Ethernet0/0ip address 198.51.100.2 255.255.255.0!ip route 192.0.2.0 255.255.255.0 198.51.100.1!
ip dhcp excluded-address 192.0.2.1 192.0.2.2ip dhcp excluded-address 192.0.2.10 192.0.2.254!ip dhcp pool POOL1import allnetwork 192.0.2.0 255.255.255.0dns-server 192.0.2.10 192.0.2.11domain-name cisco.comdefault-router 198.51.100.2!4.Debugging
on DHCP server: # debug ip dhcp server packet# clear ip dhcp binding * # show ip dhcp server statics
on ASA relay-agent: # debug dhcprelay event
DHCP SERVER debugging output:
DHCPserver#Jul 15 01:41:45.067: DHCPD: client's ××× is .Jul 15 01:41:45.067: DHCPD: No option 125Jul 15 01:41:45.067: DHCPD: DHCPDISCOVER received from client 0100.5079.6668.01 through relay 192.0.2.1.Jul 15 01:41:45.067: DHCPD: Sending DHCPOFFER to client 0100.5079.6668.01 (192.0.2.3).Jul 15 01:41:45.067: DHCPD: no option 125Jul 15 01:41:45.067: DHCPD: unicasting BOOTREPLY for client 0050.7966.6801 to relay 192.0.2.1.Jul 15 01:41:46.061: DHCPD: client's ××× is .Jul 15 01:41:46.061: DHCPD: No option 125Jul 15 01:41:46.061: DHCPD: DHCPREQUEST received from client 0100.5079.6668.01.Jul 15 01:41:46.061: DHCPD: Appending default domain from poolJul 15 01:41:46.061: DHCPD: Using hostname 'PC-21.cisco.com.' for dynamic update (from hostname option)Jul 15 01:41:46.061: DHCPD: Sending DHCPACK to client 0100.5079.6668.01 (192.0.2.3).DHCPD: Setting only requested parametersJul 15 01:41:46.061: DHCPD: no option 125Jul 15 01:41:46.061: DHCPD: unicasting BOOTREPLY for client 0050.7966.6801 to relay 192.0.2.1.
DHCPserver#Reference and Further reading:
转载于:https://blog.51cto.com/blade20/2142636