forked from spinesystemspublic/documentation
Add switch initial config
This commit is contained in:
+46
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user