Installation Guide for BRCM
DHCP/TFTP Service Configuration Guide
16 min
asternos automatic installation and onie automatic update require setting up dhcp to automatically assign ip to the switch and setting up tftp or http service to host the image server the following sections describe building dhcp and tftp services on windows and ubuntu platforms dhcp, tftp configuration on windows dhcp, tftp configuration on windows connect the windows host to the environment intranet please download the tftpd64 software beforehand disable network firewall set the ip address of the network adapter to which the switch's network port is connected and disable other networks create a new folder for asternos system files and copy the asternos system files into the path set up tftpd64, configure dhcp, tftp services open tftpd64 and select server interfaces c onfigure dhcp services dhcp server > setting, set the initial ip pool value, ip pool size, default route, subnet mask and click ok to save configuring the tftp service tftp server > setting select the path where asternos is located in the base directory field and click ok to save check the configuration click show dir to see if the tftp configuration root directory is correct and if asternos exists after the configuration is complete, log in to the switch via the serial port, enter the onie grub menu and select install os to automatically configure the installation dhcp, tftp configuration on ubuntu dhcp, tftp configuration on ubuntu dhcp configuration guide dhcp configuration guide install dhcp service install isc dhcp server sudo apt install isc dhcp server view server nic information ifconfig in the picture above, the nic name of the server is br1 modify information about the nic in dhcp configuration file sudo vim /etc/default/isc dhcp server complement interfaces="br1" configure the /etc/dhcp/dhcpd conf file sudo vim /etc/dhcp/dhcpd conf comment out "option domain name servers ns1 example org, ns2 example org" add the following information (see appendix for details) note please pay particular attention to next server about the above parameters, which point to the tftp server address please configure the subnet mask, route, dns server, and tftp server addresses as described in the environment intranet restart dhcp service sudo service isc dhcp server restart check if dhcp is working properly sudo netstat uap if dhcpd service appears in the program name column, the dhcp service is running normally when finished, proceed to the tftp service configuration step tftp configuration guide tftp configuration guide download the tftp server sudo apt get install tftpd hpa create a new folder sonic install in the root directory (/) and assign permissions mkdir sonic install chmod 777 sonic install copy the image file to the path /sonic install modify the tftp server configuration file sudo vim /etc/default/tftpd hpa modify the content as follows restart the service sudo service tftpd hpa restart check the status of the service sudo service tftpd hpa status if the running status is active (running) , that means tftp is running successfully
