Be a DHCP server a few days ago, you need to enable relay to assign IP to unused subnets. After searching the relevant information, I found some problems. Now I will organize my own test process. The environment is fedora 6, installed dhcp-3.0.5-5.fc6.i386.rpm.IP The distribution is like this: machine A with two network cards, eth0: 192.168.10.1 eth1: 192.168.20.1, for DHCP Relay uses a network card machine B, eth0: 192.168.20.254, gw: 192.168.20.1 as a DHCP server. Both machines are installed with dhcp-3.0.5, and on the machine A, DHCP RELAYdhcrelay -i eth0 -i eth1 192.168.20.254 The specific dhcrelay usage can be viewed using man dhcrelay. Note that many materials on the Internet have some problems here, less -i eth1, less this parameter A will not receive the response. B sent as a DHCP SERVER only need to configure eth0 IP: 192.168.20.254 and dhcp. The conf. connection is of course A eth1---B eth0, A eth0---the dhcpd.conf for the client to do the client configuration is as follows:
1. ddns-update-style interim; 2. ignore client -updates; 3. 4. #shared-network mynet { 5. option subnet-mask 255.255.255.0; 6. option domain-name "vvv"; 7. option domain-name-servers 192.168.123.247 8. option broadcast- Address 192.168.20.255; 9. default-lease-time 86400; 10. max-lease-time 172800; 11. 12. subnet 192.168.20.0 netmask 255.255.255.0 { 13. range 192.168.20.11 192.168.20.100; 14. option routers 192.168.20.1; 15. } 16. 17. subnet 192.168.10.0 netmask 255.255.255.0 { 18. range 192.168.10.10 192.168.10.100; 19. option routers 192.168.10.1; 20. } 21. 22. subnet 192.168.182.0 netmask 255.255.255.0 { 23. range 192.168.182.10 192.168.182.100; 24. option routers 192.168.1 82.1; 25. } 26. #} Such a configuration notebook should get 192.168.10.*, if you change A's eth0 to 192.168.182.1, the notebook should get 192.168.182.* experiment, you can connect multiple subnets Add the corresponding IP segment to dhcpd.conf.
A bit of doubt, what is the meaning of shared-network in dhcpd.conf? I have checked a lot of information and have not found it. I only know that if I add this, I will capture 192.168.20 on the capture package on B. The address of .*, dhcrelay could not receive this response, and eventually the DHCP request failed.
tcpdump is a commonly used capture tool under the Linux command line, record the usual way, the test
Layer 2 Tunneling Protocol (L2TP) is an industry standard Internet tunneling protocol that uses UDP
The wait queue in the Linux kernel has many uses for interrupt handling, process synchronization, a
KVM: Kernel-based Virtual Machine is an open source virtualization solution based on the Linux kerne
Linux system optimization ideas
Restore deleted files under Ext3
CentOS PPTP VPN Server (32-bit) installation basic tutorial
Linux available disk capacity adjustment reserved space
Redis several misunderstandings
Establish trust relationships between Linux machines
Linux operating system sound card driver installation and configuration
Some best practices for server backups
Let Win7 perform network download in sleep mode. The network
Windows XP operating system memory performance optimization
Win10 "Power surge on USB port" prompts how to do
Microsoft takes hundreds of measures to reduce Win 8 memory footprint
XP/Win7 operating system theme installation problems and solutions summary
Media creation tool x64 runtime prompts some solutions to the problem phenomenon diagram
How to switch input Pharaoh in Win7 system with a sound
Deep technical users develop a Web hosting Win10 application official graphic tutorial