Link to home
Start Free TrialLog in
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

Avatar of vivigatt
vivigatt
Flag of France image

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
Avatar of pergr
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.
Avatar of leblanc

ASKER

So what ge-0/0/28 { server 192.168.1.230; server 192.168.1.231;} means? Thx
ASKER CERTIFIED SOLUTION
Avatar of vivigatt
vivigatt
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial