Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How to Obtain a DHCP Client IP address on the SRX firewall?

1

0

Article ID: KB16124 KB Last Updated: 04 Mar 2017Version: 2.0
Summary:
How do I obtain an Internet IP address via DHCP to load on the SRX device?
Symptoms:
  • SRX firewall configured to obtain DHCP IP address from ISP
  • Configure DHCP client on the SRX firewall
  • show interface terse does not show an IP address
Solution:
To obtain an IP address from your ISP via DHCP to load on an interface on the SRX firewall, you will need to enable DHCP client on the interface, and also as a host inbound service on the interface on the security zone.

For example, assume interface fe-0/0/2.0 is directly connected to a cable modem, which obtains an IP address from the ISP via DHCP.  Navigate to the interface level to specify DHCP:
interfaces {
    fe-0/0/2 {
        unit 0 {
            family inet {
                dhcp;
            }
        }
    }               
}

Then, navigate to the security zone that the interface is tied to, and specify dhcp as a host-inbound service:

security {
    zones {
        security-zone untrust {
            screen untrust-screen;
            interfaces {
                fe-0/0/2.0 {
                    host-inbound-traffic {
                        system-services {
                            dhcp;
                        }
                    }
                }
            }
        }
    }

}

To force a DHCP renewal, from operational mode, issue the following command:

root> request system services dhcp renew fe-0/0/2.0 
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search