Tuesday, 28 April 2020

JUNIPER SWITCH CONFIGURATION COMMANDS

JUNIPER SWITCH CONFIGURATION COMMANDS



root@:RE:0% cli
{master:0}
root@swlab1> configure

-------------------------------------------------------------------------------------

root@swlab1# set system root-authentication plain-text-password
New password:
Retype new password:

{master:0}[edit]
root@swlab1# commit

root@swlab1# set system host-name swtest2

------------------------------------------------------------------------------------------
root@swlab1# run show configuration
root@swlab1# run show vlans
root@swlab1# run show interfaces terse
root@swlab1> show configuration

------------------------------------------------------------------------------------------
> show chassis environment----Shows environmental related / temperature related info for the device
> show chassis hardware ----- Shows hardware related info and serial numbers of the device
> show chassis route-engine --Shows memory, CPU, RE temperature related info of the device
> show chassis mac-addresses
-----------------------------------------------------------------------------------------------------------
> request system halt ----------Shuts down the software and gracefully terminates process
> request system power-off -----Powers-off the software on RE
> request system reboot --------Reloads the software on a device
----------------------------------------------------------------------------------------------------------------
> show interface terse -----------------Equivalent to show ip interface brief command from the Cisco
> show interface terse | match ge-0/0/1 ---Equivalent to show run interface | include 0/1 command from the Cisco
> show interface terse | except ge-0/0/1 --Equivalent to show run interface | exclude 0/1 command from the Cisco
> show interface terse | find ge-0/0/1 --- Equivalent to show run interface | begin 0/1 command from the Cisco
> show interface terse | count ---------Counts the total number of lines
> show interface terse | no-more -------Prevents the output from being paginated
---------------------------------------------------------------------------------------------------------------
root@swlab1# set vlans test2 vlan-id 30
root@swlab1# set vlans test4 vlan-id 40
set vlans test1 vlan-id 50
set interfaces vlan unit 50 family inet address 10.10.10.1/24
set vlans test1 l3-interface vlan.50
root@swtest2# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan member 50
root@swtest2# set interfaces ge-0/0/4 unit 0 family ethernet-switching vlan member 40
root@swtest2# run show vlans
----------------------------------------------------------------------------------------------------------------
root@swtest2# edit interfaces ge-0/0/3

{master:0}[edit interfaces ge-0/0/3]

root@swtest2# set unit 0 family ethernet-switching vlan members 30
root@swtest2#commit
-----------------------------------------------------------------------------------------------------------------
root@swtest2# edit interfaces ge-0/0/47

{master:0}[edit interfaces ge-0/0/47]
root@swtest2# set unit 0 family ethernet-switching port-mode trunk

{master:0}[edit interfaces ge-0/0/47]
root@swtest2# exit

{master:0}[edit]
root@swtest2# edit interfaces ge-0/0/46

{master:0}[edit interfaces ge-0/0/46]
root@swtest2# set unit 0 family ethernet-switching port-mode access

{master:0}[edit interfaces ge-0/0/46]
root@swtest2# exit

{master:0}[edit]
root@swtest2# commit
-----------------------------------------------------------------------------------------------------------------
 19:10:44 -- run show configuration | display set
  19:11:56 -- set vlans test1 vlan-id 50
  19:12:24 -- set interfaces vlan unit 50 family inet address 50.0.0.10/16
  19:12:59 -- set vlans test1 l3-interface vlan.50
  19:13:02 -- commit
------------------------------------------------------------------------------------------------------------------
password break
reboot and spacebar enter
loader> boot -s

type "recovery"

root@EX-1> configure
Entering configuration mode

{linecard:0}[edit]
root@EX-1# set system root-authentication plain-text-password
New password:
error: minimum password length is 6

{linecard:0}[edit]
-----------------------------------------------------------------------------------------------------------------
set system login message “WARNING: Unauthorized access is an offense”

n super-user: all permissions
n operator: clear, network, reset, trace, and view permissions
n read-only: view permissions
n unauthorized: no permissions

root@juniper1# set class super-user
-----------------------------------------------------------------------------------------------------------------
1. Enter the RADIUS configuration statement:
set system radius-server 172.26.27.5
2. You can also include a shared secret in the command statement and,
if necessary, the port number:
set system radius-server 172.26.27.5 port 1845
set system radius-server 172.26.27.5 secret Jun1p3r
3. Specify the order in which JUNOS should attempt authentication:
set system authentication-order [ radius tacplus password ]
4.
set system login user adminjlk class super-user
set system login user remote class super-user
-----------------------------------------------------------------------------------------------------------------
show cli history
-----------------------------------------------------------------------------------------------------------------
CLUSTER
Physically connect the two devices and ensure that they are the same models. For example, on the SRX1500 Services Gateway, connect the 
dedicated control ports on node 0 and node 1.
For SRX300, SRX320, SRX340, and SRX345 devices, connect ge-0/0/1 on node 0 to ge-0/0/1 on node 1.
Set the two devices to cluster mode and reboot the devices. You must enter the following operational mode commands on both devices, for example:

On node 0:
content_copy
zoom_out_map
user@host> set chassis cluster cluster-id 1 node 0 reboot

On node 1:
content_copy
zoom_out_map
user@host> set chassis cluster cluster-id 1 node 1 reboot
The cluster-id is the same on both devices, but the node ID must be different because one device is node 0 and the other device is node 1.
The range for the cluster-id is 0 through 255 and setting it to 0 is equivalent to disabling cluster mode.
-----------------------------------------------------------------------------------------------------------------
telnet configuration & password:

set interface lo0 unit 0 family inet address 192.168.10.1
set system login user test class super-user authentication plain-text-password 

username & password:
set system login user admin uid 2001
set system login user admin class super-user
set system login user admin authentication encrypted-password "$1$ltcvU23x$8.gmf0KxiBu/bC74oCOUh1"
set system login user admin_ro uid 2004
set system login user admin_ro class read-only
set system login user admin_ro authentication encrypted-password "$1$R3MpojmI$nOZohndlQQ0zfPg7TqvWo1"

-----------------------------------------------------------------------------------------------------------------
static route:
root# set routing-options static route 0.0.0.0/0 next-hop 192.168.1.1

------------------------------------------------------------------------------------------------------------------
match case find show config:

root# run show configuration |match vlan | display set
------------------------------------------------------------------------------------------------------------------
gns3 vm link

https://drive.google.com/drive/folders/12_B76r1X6eDI22K0Ugu1f_lwJhQtSaef

-----------------------------------------------------------------------------------------------------------------
On any J-series router, back up the filesystem to a device that is connected to the router’s USB port:

aviva@RouterA> request system snapshot media usb

On J4300 and J6300 routers, you can also back up the files in the router’s filesystem to a removable compact flash disk:

aviva@RouterA> request system snapshot media removable-compact-flash

Before installing the software upgrade, delete old log- and crashfiles:

aviva@RouterA> request system storage cleanup
-----------------------------------------------------------------------------------------------------------------
 Restoring a Backed-Up Filesystem
You want to restore a filesystem that you backed up by taking a snapshot.

Solution
First, reboot the router from the alternate boot media to which you saved the snapshot. On M-series and T-series routers, this is the hard disk:

aviva@RouterA> request system software reboot media disk
On J-series routers, this is either a removable compact flash card or a device connected to the router’s USB port:

aviva@RouterA> request system software reboot media removable-compact-flash
or
aviva@RouterA> request system software reboot media usb
Then, retake the snapshot to copy the filesystem to the media from which you didn’t boot:

aviva@router1>  
request system snapshot
or

aviva@RouterA> request system snapshot media removable-compact-flash

No comments:

Post a Comment

E-Duke bike launch confirmed