Avatar of leblanc
leblanc
 asked on

IP helper for Juniper switches

Can the experts help me to understand how IP helper works for the Juniper switch? I have the below config snapshot. I understand for vlan.3. But I am not sure about ge-0/0/28. Does it mean that everything going through that port with vlan 10 will get a DHCP?

forwarding-options {
    helpers {
        bootp {
            server 192.168.1.230;
            server 192.168.1.231;
            interface {
                vlan.3 {
                    server 192.168.1.230;
                    server 192.168.1.231;  }
                ge-0/0/28 {
                   server 192.168.1.230;
                    server 192.168.1.231;
                }
...
vlans {
   users1 {
        vlan-id 10;
        interface { 
                ge-0/0/28; 
                ge-0/0/29;}
        l3-interface vlan.0;
      }
      users2 {
        vlan-id 25;                               
        l3-interface vlan.3;
...

Open in new window

Switches / HubsHardwareNetwork Analysis

Avatar of undefined
Last Comment
vivigatt

8/22/2022 - Mon
vivigatt

I can't remember for sure if the syntax is correct (It's been a long time since I did not configure a JunOS device).
If the syntax is correct, it would mean that every broadcast packet on UDP port 68 (bootp/dhcp client) that the interfaces vlan3 and ge-0/0/28 are forwarded as Unicast to server 192.168.1.230 and server 192.168.1.231. 2 DHCP servers, that may be quite unusual, except if there are a DHCP and a PXE server, or if there are relationships (failover, split-scopes...) between the 2 servers
Now I am not too sure about your config, especially the "default servers" which seem to be the same as the specific servers for all the defined interfaces.

If applicable, you may use a J-Web configuration editor in order to configure dhcp relay, as described here:
http://www.juniper.net/techpubs/software/junos-es/junos-es92/junos-es-admin-guide/configuring-the-device-as-a-bootpdhcp-relay-agent.html
pergr

Note that "vlan.3" is the L3 interface (in cisco language SVI), so you need to look for that under:

interfaces {
     vlan   {
            unit 3   {

This is the default gateway in vlan "users2"/vlan-id 25, and I am not sure if any physical interfaces are actually connected to that vlan.

Also, not that this just means the switch is forwarding the DHCP packets to the DHCP server, so it is up to the server if the PCs will get IP address or not.

You could also configure the switch itself as a DHCP server.
leblanc

ASKER
So what ge-0/0/28 { server 192.168.1.230; server 192.168.1.231;} means? Thx
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
vivigatt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.