Support Support Downloads Knowledge Base Case Manager My Juniper 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

[EX] Using DHCP Option 150 on the EX switch to resolve the TFTP server's IP address for auto-installation

0

0

Article ID: KB21691 KB Last Updated: 25 Aug 2011Version: 1.0
Summary:
Auto-installation helps automate the configuration process by automatically loading the configuration files onto EX switches over the network. For the auto-installation process to work, you must store one or more host-specific or default configuration files on a configuration server in the network and have a service available; typically a Dynamic Host Configuration Protocol (DHCP) to assign an IP address to the EX switch.

In the example of this KB, we use a TFTP server as the configuration server, where the configuration file for the new EX switch (client switch) is stored. We use another EX switch as the DHCP server to assign an IP address to the me0 interface for the new EX switch. The DHCP server also passes the TFTP server's IP and the configuration file to the new EX switch.

Symptoms:

During the auto-installation process, when the client has difficulty interpreting the TFTP server's IP address passed from the DHCP server, It then goes through the process of locating the TFTP server by sending a broadcast message to address 255.255.255.255, to find the configuration file that is stored in the TFTP server. It can get stuck at this process for a while and eventually fail. This failure mode can be verified by capturing the packets in and out of the me0 interface.

Solution:
Include option 150 on the DHCP server and specifying a DNS server to help the client resolve the TFTP server's IP address and locate the configuration file.
  • DNS server: 172.24.16.115
  • TFTP server: 172.22.157.218
The following is an example of the DHCP server's configuration and the CLIs for setting up the client switch for auto-installation:

Configuration example on the DHCP Server switch;
root@EX4200-48T# show
name-server {
172.24.16.115;
}
boot-file ex_base.conf;
pool 172.22.157.0/24 {
address-range low 172.22.157.199 high 172.22.157.254;
router {
172.22.157.171;
}
option 150 ip-address 172.22.157.218;
}

Below are the CLIs to setup auto-installation on the client:
root@clientEX4200#
load factory-default
set system root-authentication plain-text-password
commit
set system autoinstallation delete-upon-commit
set system autoinstallation interfaces me0 bootp
commit

Use show system autoinstallation status to verify that the client obtains the configuration information:
root@clientEX4200> show system autoinstallation status
Autoinstallation status:
Master state: Active
Last committed file: None
Configuration server of last committed file: 0.0.0.0
Interface:
Name: me0
State: Configuration Commit
Acquired:
Address: 172.22.157.245
Hostname: None
Hostname source: None
Configuration filename: ex_base.conf
Configuration filename server: 172.22.157.218
Address acquisition:
Protocol: DHCP Client
Acquired address: 172.22.157.245

Related Links

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