Today came across configurationDHCP relayThe problem,Suddenly I found that I had actually not noticed,Even sometimes do not know how to engage,And later I had to Google it very awkward ......,Now recorded as follows:
I was not on the map topology,Simple words to describe:
R1(f0/1)————-(f0/1)R2(f0/0)——S1——PC0
192.168.1.0/24 172.16.0.0/16
For convenience,I do avery simpleTopology,Requirements:
- pc0 use DHCP to obtain an ip address and other information
- Use R1 as a DHCP server to provide DHCP to pc0
Current configuration is as follows (Write-onlyImportant step):
R1
1 2 3 4 5 6 7 8 9 |
ip dhcp pool dcp network 172.16.0.0 255.255.0.0 default-router 172.16.0.1 dns-server 8.8.8.8 interface FastEthernet0/1 ip address 192.168.1.1 255.255.255.0 ip route 172.16.0.0 255.255.0.0 192.168.1.2 |
R2
1 2 3 4 5 6 |
interface FastEthernet0/0 ip address 172.16.0.1 255.255.0.0 ip helper-address 192.168.1.1 interface FastEthernet0/1 ip address 192.168.1.2 255.255.255.0 |
Original article written by LogStudio:R0uter's Blog » A simple example Cisco routers DHCP and DHCP relay configuration
Reproduced Please keep the source and description link:https://www.logcg.com/archives/224.html
Comments