SRX

Expand all | Collapse all

Static binding dhcp

Jump to Best Answer
  • 1.  Static binding dhcp

    Posted 08-04-2020 04:52

    I have a statically assigned mac-address to the ip address (e.g. 192.168.1.200), but unfortunately the computer gets the first free one from the pool, (192.168.1.2), not the one statically assigned - can you say what I'm doing wrong? 

     

    e.g. code listing:

    }
    pool 192.168.1.0/24 {
    address-range low 192.168.1.1 high 192.168.1.254;
    name-server {
    xxx.xxx.xxx.xxx;
    xxx.xxx.xxx.xxx;
    }
    router {
    192.168.1.1;
    }
    }
    static-binding xx:xx:xx:xx:xx:xx {
    fixed-address {
    192.168.1.200;
    }
    host-name laptop;
    router {
    192.168.1.1;
    }

     

     

    show system services dhcp binding

    192.168.1.2 xx:xx:xx:xx:xx:xx dynamic 2020-08-05 13:46:27 CEST

    192.168.1.200 xx:xx:xx:xx:xx:xx static never



  • 2.  RE: Static binding dhcp
    Best Answer

    Posted 08-04-2020 05:09

    Robert, when you see the static bindings using "show system services dhcp binding", what MAC address is mapped to 192.168.1.200?

     

    Can you clear the static bindings using "clear system services dhcp binding" and check the behaviour once again?

     

    What is the Junos version that you are using at the moment? Because why I'm asking this is I can see you are using legacy DHCP which may actually cause a lot of problems and that's the reason JDHCP was introduced from 12.1 release onwards. Please find the link for your reference - https://kb.juniper.net/InfoCenter/index?page=content&id=KB29401&actp=METADATA

     

    I would request you to check the below sample JDHCP configuration and make the changes accordingly.

     

    user@host> show configuration access 
    address-assignment {
        pool wired {
            family inet {
                network 192.168.100.0/24;
                range wired {
                    low 192.168.100.2;
                    high 192.168.100.254;
                }
                dhcp-attributes {
                    name-server {
                        8.8.8.8;    or your ISP's DNS server
                    }
                    router {
                        192.168.100.1;
                    }
                }
                host PC-1 {
                    hardware-address 08:60:6e:67:ec:aa;
                    ip-address 192.168.100.2;
                }
                host PC-2 {
                    hardware-address c4:4e:ac:03:4e:ed;
                    ip-address 192.168.100.3;
                }                           
            }
        }
    
    
    user@host> show configuration system services                      
    dhcp-local-server {
        group wired {
            interface vlan.100;  logical or physical interface participating in dhcp

     



  • 3.  RE: Static binding dhcp

    Posted 08-04-2020 05:29

    Yes, this was the command - now it is and works - clear system services dhcp binding

    And now it downloaded the correct address 🙂

    My JUNOS Software Release [12.1X44-D40.2]

     

    Thanks again 🙂 🙂



  • 4.  RE: Static binding dhcp

    Posted 08-04-2020 05:44

    Glad it worked!!!

     

    I would suggest you to use the Juniper recommended Junos version because yours is quite old and it can cause certain issues in the future. But if you think it is working fine with your environment, then it's good.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB21476&actp=METADATA



  • 5.  RE: Static binding dhcp

    Posted 08-04-2020 05:57

    There is only one problem. As I said before, I bought second hand this SRX240H firewall it is EOL. Also after logging in I only have to download the latest ones available to me:

     

    Branch SRX-Series 12.3X48-D100 26 Mar 2020 tgz (176.13MB)
    Branch SRX-Series 12.3X48-D95 23 Jan 2020 tgz (176.11MB)

    ......

    Branch SRX-Series 12.3X48-D10 09 Mar 2015 tgz (165.55MB)

    Are these files about?

     

     

    And from the link you gave the same message again, unfortunately 😞

     

    You have encountered this error because your account privileges do not currently permit access to the information or service requested. Software download entitlement is granted for customers under the following scenarios.

    • Juniper Product within the first 90 days of the hardware warranty period.
    • Juniper Product which is currently under an active maintenance contract.
    • Juniper Standalone Software Subscription which is currently active.


    How may I update my account privileges to enable access?

    • Users with an approved Customer or Partner login account may request access to software downloads using the Juniper Digital Assistant (JDA). You will require your entitled Juniper product SN/SSRN.
    • Users with a Guest user login account interested in evaluating Juniper's product software may contact Customer Care for assistance.
    • If you do not yet have a Juniper login account and are interested in downloads for your Juniper product or evaluation software you may create an account here.

    So I can "play" with what I have, that is JUNOS Software Release [12.1X44-D40.2]



  • 6.  RE: Static binding dhcp

    Posted 08-04-2020 06:03

    Oops. I totally forgot about that😅

     

    Anyways, you still have Junos to learn.

     

    Have a Nice Day!!!