Nuffnang

Sunday, September 4, 2011

Boot SSG Firewall with Junos.

Juniper had released Junos as new Operating System for Routing, Switching and Security Juniper devices.

Here is a how to, that explains how you can make a usb stick ready to run JUNOS and use this one on a device that is running ScreenOS.

First need 1 device that runs JUNOS (SRX), on this device we will plug in the USB stick and create a copy of the OS.

root@SRX>request system snapshot as-primary partition media usb
Clearing current label...
Partitioning usb media (da0) ...
Partitions on snapshot:

Partition Mountpoint Size Snapshot argument
a / 1024MB root-size
e /config 196MB config-size
g /data 701MB data-size
Running newfs (1024MB) on usb media / partition (da0s1a)...
Running newfs (196MB) on usb media /config partition (da0s1e)...
Running newfs (701MB) on usb media /data partition (da0s1g)...
Copying '/dev/ad0s1a' to '/dev/da0s1a' .. (this may take a few minutes)
Copying '/dev/ad0s1e' to '/dev/da0s1e' .. (this may take a few minutes)
The following filesystems were archived: / /config

After this we can use this USB stick to use in a ScreenOS device (or in a JUNOS device)

IF you want to use this USB stick on a JUNOS device do the following:

root@SRX> request system reboot media usb

This will make the router reboot and boot from USB stick (you can use this to test upgrades for example)

IF you want to use this USB stick on a ScreenOS device do the following:

SSG550M-> System change state to Active(1)

SSG550M->
SSG550M-> set boot junos usb
Boot device has been set to USB
SSG550M->reset
Configuration modified, save? [y]/n : n
System reset, are you sure? y/[n] : y
In reset ...

After this you will boot in JUNOS (so you are running JUNOS on a ScreenOS device).

When you do a "request system reboot", it will boot back from Compact Flash and will of course run ScreenOS again.

No comments:

Post a Comment