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.
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.
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.
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; }
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
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