Here is how to configure DHCP forwarding across VLans on JunOS Juniper devices.
1 2 |
set forwarding-options helpers bootp server <DHCP_SERVER_IP> set forwarding-options helpers bootp interface vlan.<VLAN_ID> |
Example : Assuming your DHCP server IP is “192.168.1.1” and the VLans you want DHCP forwarding enabled are “1” and “2” :
1 2 3 |
set forwarding-options helpers bootp server 192.168.1.1 set forwarding-options helpers bootp interface vlan.1 set forwarding-options helpers bootp interface vlan.2 |
Then commit the changes.
To see the relay agent statistics, imply do :
1 |
show helper statistics |
If you run into some issues, these commands will help you to enable the debugging logs :
1 2 3 |
set forwarding-options helpers traceoptions file helper set forwarding-options helpers traceoptions flag bootp set forwarding-options helpers traceoptions level level |
Logs will be stored under the following path :
1 |
/var/log/helper |
Use the following command to show them on screen :
1 |
show log helper |