horus1613 Posted March 16, 2020 Posted March 16, 2020 Добрый день.Есть линуксовая машина с поднятыми dhcp и tftp серверами. К ней подключен srx300 с дефолтным конфигом портом ge-0/0/0. set system autoinstallation interfaces ge-0/0/0 bootp После включения джунипер ловит ip на ge-0/0/0 и пытается стянуть конфигурационный файл router.conf по tftp. 18:29:30.834591 IP 192.168.1.2.52724 > 255.255.255.255.tftp: 23 RRQ "router.conf" netascii 18:29:30.836165 IP 192.168.1.3.49420 > 192.168.1.2.52724: UDP, length 516 18:29:31.837339 IP 192.168.1.3.49420 > 192.168.1.2.52724: UDP, length 516 18:29:32.838539 IP 192.168.1.3.49420 > 192.168.1.2.52724: UDP, length 516 18:29:33.839746 IP 192.168.1.3.49420 > 192.168.1.2.52724: UDP, length 516 18:29:34.840930 IP 192.168.1.3.49420 > 192.168.1.2.52724: UDP, length 516 Сервер отдает его, но не получает ACK от джунипера. Пытается передать один и тот же блок несколько раз, после чего отбивается таймаутом.Логи на сервере: Mar 16 18:29:46 192.168.1.3 in.tftpd[11890]: Client 192.168.1.2 finished router.conf Mar 16 18:29:46 192.168.1.3 in.tftpd[11890]: Client 192.168.1.2 timed out Логи на джунипере: Mar 16 15:38:23 received SIGCHLD signal: reaping child Mar 16 15:38:23 reaped child 4152 Mar 16 15:38:23 autod_tftp_handle_child: tftp on pid 4152 could not retrieve configuration on ge-0/0/0, exited with 1 Mar 16 15:38:24 could not get configuration on ge-0/0/0, trying again Mar 16 15:38:24 autod_cs_getconfigfilename: using router.conf as candidate configuration file name Mar 16 15:38:24 directory to retrieve configuration file into is /var/run/autod/ge-000/ Mar 16 15:38:24 location to retrieve configuration file from is 255.255.255.255:router.conf Mar 16 15:38:24 spawned /usr/bin/tftp -JR 192.168.1.1 -JG 255.255.255.255:router.conf -JI ge-0/0/0 for ge-0/0/0 at pid 4154 Как итог, файл на джунипер не залился:root@% ls -ltrtotal 0-rw-r--r-- 1 root wheel 0 Mar 16 15:39 network.conf-rw-r--r-- 1 root wheel 0 Mar 16 15:40 router.confВ чем может быть проблема? Вставить ник Quote
Pinkbyte Posted March 17, 2020 Posted March 17, 2020 Что используется в качестве tftp сервера? tftpd-hpa? Чему равен параметр blocksize в настройках сервера? Вставить ник Quote
bqd Posted March 19, 2020 Posted March 19, 2020 А что так можно было? Я просто гуглил ZTP, а там для SRX все сложно и грустно значит поиграю в autoinstall мне как раз нужно подобное генератор конфигов автоматизировал, а дальше копипаста. некрасиво если получится отпишу конечно вопрос сходу: конфиг в каком формате задается? скобочки {} или set-ы? Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.