Difference between revisions of "Loading a configuration onto a JunOS device"
From NesevoWiki
Jump to navigationJump to search| Line 7: | Line 7: | ||
* 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></code> prompt enter <code>configure</code> to get into config mode (you'll see a <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> | ||
Revision as of 10:22, 16 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 theexitcommand will only log you out instead of bringing you into command mode (root>), you can issue theclicomamnd to get there.)
- (If, right after login, you already are in shell mode (
- Type
start shellto 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
exitto exit the shell - From the
root>prompt enterconfigureto 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 terminalto paste in configuration commands (the Cisco way) - Type [ENTER] and the [Ctrl-D] to exit load mode
- Type
- Type
committo activate the loaded configuration and exit config mode with theexitcommand - Unmount the USB drive (
umount /mnt/usbin shell mode) before unplugging it