Difference between revisions of "Loading a configuration onto a JunOS device"
From NesevoWiki
Jump to navigationJump to search(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
* Copy your config file to a FAT32 formatted USB thumb drive (the drive ''must'' contain exactly one partition that stretches over the whole device) | * Copy your config file to a FAT32 formatted USB thumb drive (the drive ''must'' contain exactly one partition that stretches over the whole device) | ||
* Boot up the Juniper device and connect to its serial console | * Boot up the Juniper device and connect to its serial console | ||
− | * You should see a <code>root@></code> | + | * You should see a <code>root></code> prompt |
+ | ** (If, right after login, you already are in shell mode (<code>root@%</code>) and the <code>exit</code> command will only log you out instead of bringing you into command mode (<code>root></code>), you can issue the <code>cli</code> comamnd to get there.) | ||
* Type <code>start shell</code> to get the <code>root@%</code> prompt | * Type <code>start shell</code> to get the <code>root@%</code> prompt | ||
* Create a mount directory: <code>mkdir /mnt/usb</code> | * Create a mount directory: <code>mkdir /mnt/usb</code> | ||
* Plug in the USB drive and mount it: <code>mount -t msdosfs /dev/da1s1 /mnt/usb</code> | * Plug in the USB drive and mount it: <code>mount -t msdosfs /dev/da1s1 /mnt/usb</code> | ||
* Type <code>exit</code> to exit the shell | * Type <code>exit</code> to exit the shell | ||
− | * From the <code>root | + | * From the <code>root></code> prompt enter <code>configure</code> to get into config mode (you'll see a <code>root#</code> prompt) |
* Variant A: | * Variant A: | ||
** Use the following command to load the configuration: <code>load override /mnt/usb/<config file name></code> | ** Use the following command to load the configuration: <code>load override /mnt/usb/<config file name></code> | ||
− | |||
* Variant B: | * Variant B: | ||
** Type <code>load override terminal</code> to paste in configuration commands (the Cisco way) | ** Type <code>load override terminal</code> to paste in configuration commands (the Cisco way) | ||
− | ** Type [ENTER] and | + | ** Type [ENTER] and then [Ctrl-D] to exit load mode |
* Type <code>commit</code> to activate the loaded configuration and exit config mode with the <code>exit</code> command | * Type <code>commit</code> to activate the loaded configuration and exit config mode with the <code>exit</code> command | ||
* Unmount the USB drive (<code>umount /mnt/usb</code> in shell mode) before unplugging it | * Unmount the USB drive (<code>umount /mnt/usb</code> in shell mode) before unplugging it |
Latest revision as of 13:06, 17 November 2017
- Copy your config file to a FAT32 formatted USB thumb drive (the drive must contain exactly one partition that stretches over the whole device)
- Boot up the Juniper device and connect to its serial console
- You should see a
root>
prompt- (If, right after login, you already are in shell mode (
root@%
) and theexit
command will only log you out instead of bringing you into command mode (root>
), you can issue thecli
comamnd to get there.)
- (If, right after login, you already are in shell mode (
- Type
start shell
to get theroot@%
prompt - Create a mount directory:
mkdir /mnt/usb
- Plug in the USB drive and mount it:
mount -t msdosfs /dev/da1s1 /mnt/usb
- Type
exit
to exit the shell - From the
root>
prompt enterconfigure
to get into config mode (you'll see aroot#
prompt) - Variant A:
- Use the following command to load the configuration:
load override /mnt/usb/<config file name>
- Use the following command to load the configuration:
- Variant B:
- Type
load override terminal
to paste in configuration commands (the Cisco way) - Type [ENTER] and then [Ctrl-D] to exit load mode
- Type
- Type
commit
to activate the loaded configuration and exit config mode with theexit
command - Unmount the USB drive (
umount /mnt/usb
in shell mode) before unplugging it