URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID6
Нить номер: 2497
[ Назад ]

Исходное сообщение
"juniper srx autoinstallation"

Отправлено horus4015 , 16-Мрт-20 19:03 
Добрый день.
Есть линуксовая машина с поднятыми 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 -ltr
total 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

В чем может быть проблема?


Содержание

Сообщения в этом обсуждении
"juniper srx autoinstallation"
Отправлено brt , 17-Мрт-20 00:10 
Похоже дело в сервере. Погугли: juniper pxe 0 byte

"juniper srx autoinstallation"
Отправлено Максим , 18-Мрт-20 16:42 
18:29:30.834591 IP 192.168.1.2.52724 > 255.255.255.255.tftp: 23 RRQ "router.conf" netascii
почему запрос к tftp серверу широковещательный? по идее на конкретный ip должен стучатся.



"juniper srx autoinstallation"
Отправлено horus4015 , 22-Апр-20 18:29 
> 18:29:30.834591 IP 192.168.1.2.52724 > 255.255.255.255.tftp: 23 RRQ "router.conf" netascii
> почему запрос к tftp серверу широковещательный? по идее на конкретный ip должен
> стучатся.

с запозданием отвечаю: да, после того как задал ip tftp-сервера - заработало. По дефолту шлет broadcast