From 17d44e3180919dc531d4f6e3580f4013479b2fcc Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Mon, 4 Sep 2023 21:34:11 +0300 Subject: [PATCH] Add switch initial config --- Juniper.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Juniper.md b/Juniper.md index 73a5654..3de56dc 100644 --- a/Juniper.md +++ b/Juniper.md @@ -1,5 +1,51 @@ # Juniper switch tips and tricks +## Initial setup + +* Set hostname, root password, timezone, NTP server, SNMP community, etc + +``` +set system host-name YOURSWITCHNAME +set system root-authentication plain-text-password +set system name-server x.x.x.x +``` + +* Configure management interface or vlan.0 to have internet access + +``` +set interfaces vlan unit 0 family inet address x.x.x.x/24 +set routing-options static route 0.0.0.0/0 next-hop x.x.x.y +``` + +* Check if internet present + +``` +ping www.google.com +``` + + +* Download and upgrade to latest junos (Denys can assist to obtain latest versions) + +``` +copy file https://url/jinstall...tgz /var/tmp/ +request system software add /var/tmp/jinstall...tgz +request system reboot +``` + +* Set NTP server + +``` +set system ntp server x.x.x.x +set system time-zone Asia/Beirut +``` + +* Enable SSH access + +``` +set system services ssh +``` + + ## Setting options ssh to the switch, you will see the prompt