Обновление JUNOS на Juniper SRX100

IMG_0016Маленькая заметка о том, как установить свежий junos на новый juniper srx100b. Есть два варианта как обновить junos на оборудовании juniper. Первый и самый простой – это сделать через web-интерфейс. Второй – это сделать через терминальный доступ и источник, где лежит новый junos можно указать ftp, tftp, ssh host.
У первого доступа есть главный недостаток – чтобы обновить junos нужно находиться с ним в одной подсети, а когда мы смаршрутизировались из других сетей, нас на web-интерфейс уже не пустит политика безопасности, которая выглядит вот так:

 set system services web-management http interface vlan.0
 set system services web-management https system-generated-certificate
 set system services web-management https interface vlan.0

Эти строки разрешают заходить на железку srx только на интерфейс vlan.0 для web-доступа по 80 и 443 порту. Встаёт резонный вопрос как же нам установить новый junos ? Ответ лежит из области unix-подобных операционных систем. Junos – это ОС основанная на FreeBSD, от которой досталась junos вся идеология (даже jail есть). У srx 100 на борту есть два junos. Один главный – он загружается всегда первый. Если он по каким-то причинам не может этого сделать, загружается второй backup junios.
Места , для того что бы загрузить новый junos на srx почти нет, оно есть конечно, но очень мало. Поэтому новый junos не поместится. И так подготовимся к переезду на новый junos. Заходим на srx 100 по ssh. Из linux консоли можно зайти так:

ssh [email protected]_srx_100

Вводим логин и пароль и видим что-то похожее на это

srx100>

Здесь главное именно последний символ, говорящий нам что можно вводить команды. Первая команда которую мы должны сделать – это удалить backup junos:

request system software delete-backup

Появится следующее сообщение:

Delete backup system software package [yes,no] (no)

пишем yes.

Когда мы полностью обновимся первый junos, который сейчас загружен будет backup junos, а новый будет первым. Далее нам необходимо очистить srx 100 от временных файлов, так как даже после удаления не хватит места для нового junos.

request system storage cleanup

Появится вот такое сообщение:

List of files to delete:
Size Date Name
 62B Feb 3 00:14 /cf/var/crash/flowd_octeon.log..0
 62B Feb 3 02:13 /cf/var/crash/flowd_octeon.log..1
 62B May 20 15:53 /cf/var/crash/flowd_octeon.log..2
 11B May 20 15:53 /cf/var/jail/tmp/alarmd.ts
 112B May 20 16:10 /cf/var/log/interactive-commands.0.gz
 4950B May 20 16:10 /cf/var/log/messages.0.gz
 96B May 20 16:05 /cf/var/log/wtmp.0.gz
 209B May 20 15:53 /cf/var/log/wtmp.1.gz
 57B Feb 3 00:13 /cf/var/log/wtmp.2.gz
 3796B May 20 15:52 /cf/var/tmp/cleanup-pkgs.log
 0B May 20 15:52 /cf/var/tmp/eedebug_bin_file
 34B May 20 15:52 /cf/var/tmp/gksdchk.log
 124.0K Feb 3 02:16 /cf/var/tmp/gres-tp/env.dat
 0B Feb 3 00:14 /cf/var/tmp/gres-tp/lock
 155B May 20 15:53 /cf/var/tmp/krt_gencfg_filter.txt
 0B May 20 15:53 /cf/var/tmp/rtsdb/if-rtsdb
 0B Feb 3 00:12 /cf/var/tmp/spu_kmd_init
 Delete these files ? [yes,no] (no)

пишем yes.

Вот теперь можно заливать новый junos на наш новый srx100. Будем это делать из linux консоли. Идем в папку где у нас лежит новый junos. Потом с помощью команды scp будем заливать по протоколу ssh наш новый junos:

scp junos-srxsme-11.4R6.6-domestic.tgz [email protected]_srx_100:/var/tmp/junos-srxsme-11.4R6.6-domestic.tgz

Необходимо указать пользователя user и адрес нашей железки ip_srx_100 и ввести пароль. Путь нужно указать как здесь, то есть /var/tmp/. Именно в этом месте srx хранит временные файлы.

scp junos-srxsme-11.4R6.6-domestic.tgz [email protected]_srx_100:/var/tmp/junos-srxsme-11.4R6.6-domestic.tgz
[email protected]'s password:
 junos-srxsme-11.4R6.6-domestic.tgz 100% 134MB 1.0MB/s 02:11

Junos залился, теперь его необходимо установить. Для этого заходим по ssh на srx 100 и вводим команду установки нового junos

request system software add no-copy no-validate /var/tmp/junos-srxsme-11.4R6.6-domestic.tgz

На экране покажется сообщение:

Formatting alternate root (/dev/da0s2a)...
 /dev/da0s2a: 297.9MB (610044 sectors) block size 16384, fragment size 2048
 using 4 cylinder groups of 74.47MB, 4766 blks, 9600 inodes.
 super-block backups (for fsck -b #) at:
 32, 152544, 305056, 457568
 Installing package '/altroot/cf/packages/install-tmp/junos-11.4R6.6-domestic' ...
 Verified junos-boot-srxsme-11.4R6.6.tgz signed by PackageProduction_11_4_0
 Verified junos-srxsme-11.4R6.6-domestic signed by PackageProduction_11_4_0
 JUNOS 11.4R6.6 will become active at next reboot
 WARNING: A reboot is required to load this software correctly
 WARNING: Use the 'request system reboot' command
 WARNING: when software installation is complete
 Saving state for rollback …

После этого можно перегрузить SRX100. Пишем:
request system reboot

Выскакивает сдедующее сообщение:

Reboot the system ? [yes,no] (no) yes

пишем yes.

Как загрузка так и перегрузка SRX100 занимает около семи минут. Поздравляю, теперь у нас свежий junos на борту!

Рекомендуем почитать
Обновление ПО IP АТС NEOPbx 1.0.44

В преддверии Нового Года компания NEOPbx.RU решила приготовить всем пользователям и партнерам небольшой подарок: новое программное обеспечение "Автоконфигуратор SIP" - Читать дальше...

Вышло обновление IP АТС NEOPbx версии 1.0.40

Что нового в этой версии: Добавлена поддержка USB 3.0. Включена возможность набора добавочных номеров через транки. Теперь создание единого номерного Читать дальше...

Обновление с CentOS 5.8 (5.0-5.7) до CentOS 5.9

Процесс обновления CentOS достаточно прост. Для начала получим права root: su - ## или ## sudo -i Скопируем в надежное Читать дальше...

Бесплатный доступ к платным сервисам во время эпидемии коронавируса

Безусловно, коронавирус повлияет на нас всех в той или иной форме. Ничего хорошего от него нет, не было и не Читать дальше...

Поделиться

60 комментариев к “Обновление JUNOS на Juniper SRX100

  1. I do not know if it’s just me or if everyone else experiencing problems with your site.
    It appears like some of the text on your content are
    running off the screen. Can somebody else please provide feedback and let me know if this is
    happening to them as well? This could be a problem with my internet browser because I’ve had this happen previously.
    Kudos

  2. I simply want to tell you that I am just all new to blogging and site-building and seriously enjoyed your page. Likely I’m planning to bookmark your site . You surely have terrific articles. Regards for revealing your web-site.

  3. I discovered your blog website on google and examine a number of of your early posts. Proceed to maintain up the very good operate. I simply further up your RSS feed to my MSN Information Reader. Looking for forward to studying extra from you in a while!? I’m usually to running a blog and i actually respect your content. The article has really peaks my interest. I am going to bookmark your site and hold checking for brand new information.

  4. Aw, this was a really wonderful message. In idea I wish to put in composing like this furthermore? requiring time and real initiative to make a great post? however what can I claim? I put things off alot and also by no means appear to obtain something done.

  5. The next time I review a blog site, I hope that it does not disappoint me as long as this one. I suggest, I recognize it was my choice to read, yet I actually believed youd have something intriguing to say. All I hear is a lot of yawping concerning something that you might deal with if you werent also busy searching for interest.

  6. I?d have to get in touch with you below. Which is not something I typically do! I appreciate reviewing an article that will make people think. Also, thanks for allowing me to comment!

  7. You’re so awesome! I don’t suppose I’ve truly read through something like that before. So great to discover someone with some genuine thoughts on this topic. Really.. thank you for starting this up. This site is something that is required on the internet, someone with a bit of originality!

  8. I think this is among the most vital information for me. And i am glad reading your
    article. But want to remark on some general things, The
    web site style is wonderful, the articles is really excellent : D.
    Good job, cheers

  9. Oh my goodness! an amazing write-up dude. Thank you Nevertheless I am experiencing issue with ur rss. Don?t recognize why Not able to register for it. Is there anyone obtaining identical rss trouble? Anyone that recognizes kindly respond. Thnkx

  10. I?m amazed, I have to state. Really rarely do I run into a blog site that?s both enlightening as well as amusing, as well as let me tell you, you have struck the nail on the head. Your idea is exceptional; the concern is something that insufficient individuals are talking intelligently about. I am very happy that I stumbled across this in my search for something connecting to this.

  11. Hiya! Quick question that’s entirely off topic. Do you know
    how to make your site mobile friendly? My website looks weird
    when browsing from my iphone 4. I’m trying to find a template or plugin that might be able to resolve this issue.
    If you have any recommendations, please share.
    Thank you!

  12. The next time I read a blog site, I wish that it does not disappoint me as high as this. I indicate, I recognize it was my selection to read, yet I really assumed youd have something fascinating to claim. All I listen to is a number of yawping concerning something that you can fix if you werent also hectic seeking attention.

  13. Aw, this was an actually wonderful blog post. In idea I would like to put in composing similar to this additionally? taking time and also real initiative to make an excellent post? however what can I claim? I hesitate alot and by no means appear to get something done.

  14. This is the best blog for any person who wishes to learn about this subject. You realize so much its practically hard to say with you (not that I actually would want?HaHa). You certainly placed a new spin on a subject thats been written about for several years. Great things, just fantastic!

  15. Good day I am so happy I found your site, I really found you by accident,
    while I was looking on Digg for something else, Regardless I am here now and would just like to
    say thank you for a marvelous post and a all round thrilling blog (I also love the theme/design), I don’t have time to go through
    it all at the moment but I have book-marked it and also included your RSS feeds,
    so when I have time I will be back to read a great deal more,
    Please do keep up the excellent job.

  16. Wonderful goods from you, man. I’ve consider your stuff previous to and you are just
    extremely great. I actually like what you’ve received here, certainly
    like what you are saying and the way in which through which you assert
    it. You are making it enjoyable and you continue to take care of to stay it sensible.

    I can not wait to learn far more from you. This is really a tremendous web site.

  17. Hi there, just became aware of your blog through Google, and found that it is really
    informative. I’m gonna watch out for brussels. I will be grateful if you
    continue this in future. Many people will be benefited from your writing.
    Cheers!

  18. There are certainly a great deal of information like that to take into consideration. That is a wonderful point to raise. I provide the ideas over as general motivation however clearly there are questions like the one you bring up where the most crucial thing will certainly be operating in straightforward good faith. I don?t understand if finest methods have arised around points like that, however I make sure that your task is plainly determined as a level playing field. Both young boys and ladies feel the influence of simply a moment?s enjoyment, for the remainder of their lives.

  19. There are some interesting moments in this short article but I don?t recognize if I see every one of them center to heart. There is some credibility however I will certainly take hold point of view until I check out it better. Excellent post, thanks and also we want much more! Included in FeedBurner as well

  20. Saving our surroundings is essential and a priority for all of us. The setting is one thing that everybody has a component to play in preserving. Environment is the most important aspect of the human race and we have an obligation to protect it. So, to save lots of nature, we must defend it and to protect the setting we should be taught about the significance and fragility of our environment.

  21. Hey there! I simply wish to give a substantial thumbs up for the great details you have below on this blog post. I will certainly be returning to your blog site for even more soon.

  22. Nice post. I learn something extra challenging on various blogs everyday. It will certainly constantly be boosting to read web content from other writers and also exercise a something from their shop. I?d prefer to make use of some with the web content on my blog whether you don?t mind. Natually I?ll offer you a link on your web blog site. Thanks for sharing.

  23. I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my problem. You’re incredible! Thanks!

  24. Simply desire to say your article is as astounding. The clarity in your post is just nice and i can assume you are an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the gratifying work.

  25. Hi there, just became alert to your blog through Google, and found that it is truly informative.
    I’m going to watch out for brussels. I’ll appreciate if you continue this in future.
    Lots of people will be benefited from your writing.
    Cheers!

  26. Hello! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly? My site looks weird when browsing from my iphone.

    I’m trying to find a theme or plugin that might be able to fix this issue.
    If you have any recommendations, please share. Appreciate it!

  27. There are certainly a lot of details like that to take into consideration. That is an excellent indicate raise. I use the thoughts over as general motivation yet plainly there are inquiries like the one you raise where the most important thing will certainly be operating in sincere good faith. I don?t know if ideal techniques have actually arised around points like that, but I make sure that your task is clearly recognized as a level playing field. Both kids as well as ladies feel the impact of just a moment?s pleasure, for the rest of their lives.

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *