Why?


Search This Blog

Wednesday, May 20, 2015

Adtran 908e Gen3 zero touch with tftp

Adtran 908e Gen3 zero touch with tftp

NOTE** This is for Gen3 only. Gen2 will not zero-touch. The default config on the Gen2 is a static IP so it will not make a dhcp request. The Gen2 will require the use of auto-config.

In this doc I used a Centos 6.6 server for DHCP and tftp in a private network of 192.168.1.0

First make sure dhcpd is installed

# yum install dhcp*

Now set up the dhcpd.conf file for the request from the adtran. Option 66 and 67 are needed.

# cat /etc/dhcp/dhcpd.conf

#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#   see 'man 5 dhcpd.conf'
#

#specify domain name
option domain-name "cableone.net";
option option-66 code 66 = text;
option option-67 code 67 = text;

#specify DNS server ip and additional DNS server ip
option domain-name-servers 24.116.2.34;

#specify default lease time
default-lease-time 600;

#specify Max lease time
max-lease-time 7200;

#specify log method
log-facility local7;

#Configuring subnet and iprange
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.15 192.168.1.50;
option broadcast-address 192.168.1.255;

#Default gateway ip
option routers 192.168.1.1;

}
#Fixed ip address based on MAC id
host TA908e {
hardware ethernet 00:A0:C8:DC:56:69;
fixed-address 192.168.1.80;
option option-66 "192.168.1.100";
option option-67 "908econfigfile.txt";
}

Make sure you dhcp service is running and will auto start on reboot.

# chkconfig dhcpd on
# service dhcpd start

Now install tftp-server
 
# Yum install tftp-server xinetd

Configure tftp-server

cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
defaults
{
       instances               = 60
       log_type                = SYSLOG authpriv
       log_on_success          = HOST PID
       log_on_failure          = HOST
       cps                     = 25 30
}

service tftp
{
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = root
       server                  = /usr/sbin/in.tftpd
       server_args             = -s /var/lib/tftpboot
       disable                 = no
       per_source              = 11
       cps                     = 100 2
       flags                   = IPv4
}


Make sure your tftp service is running and will auto start on reboot.

# chkconfig xinetd on
# service xinetd start

Place your "908econfigfile.txt" file in the /var/lib/tftpboot directory.

Erase your startup file on the Adtran and reboot/reload.

No comments:

Post a Comment