Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  Juniper quick stop/start interface and dot1x authentication

    Posted 03-23-2016 04:32

    How to do quick stop/start interface and dot1x authentication on juniper?

    On cisco it is easy to do commands shutdown && no shutdown.



  • 2.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-23-2016 06:54
    Hi,

    Try the activate and deactivate command .


  • 3.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-23-2016 07:34

    In any cause it is necessary do commit. Even if do commit confirmed 1 it is 1 minut idle.

    I do 

    [edit interfaces ge-0/0/6]
    #set disable
    [edit interfaces ge-0/0/6 unit 0]
    #set disable
    [edit interfaces ge-0/0/6 unit 0]
    #commit confirmed 1

    But it is not comfortably. Do you have yet method?

     



  • 4.  RE: Juniper quick stop/start interface and dot1x authentication
    Best Answer

    Posted 03-24-2016 00:17

    Hi,

     

    start shell user root
    ifconfig xe-y/z/w down
    ifconfig xe-y/z/w up
    exit

     

    !! You should be careful with shell !! And don't forget to bring the interface up .

    Reference: http://forums.juniper.net/t5/SRX-Services-Gateway/Any-easy-quick-method-for-bouncing-an-interface/td-p/207493



  • 5.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 02:02

    Thanks you,it is works. Can you tell more detail about up/down only physical interface or jointly with logical interface (unit 0), please?



  • 6.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 03:53

    Glad to hear that .

     

    The command I provided you in the previous comment well do the job

    For example :

     

    admin@FW1> start shell user root
    root@FW1% ifconfig ge-0/0/6 down
    root@FW1% ifconfig ge-0/0/6 up
    root@FW1% exit

     

    Just don't forget to bring the interface up, because then Your interface will display as & stay down in junos CLI printouts and MIB without apparent reason.

     

    Please also take a look at the link I provided you . There is so much informations written by experts .



  • 7.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 04:57

    In another comments disscuss perhaps do va script, for me on this time no intresting, but in the future will come in handy.

     

    I would like to clarify the behavior of the physical and logical interfaces. Is it enough only physical interface root@test-jun:RE:0% ifconfig ge-0/0/8 down or necessary yet down and logical inteface (unit 0) root@test-jun:RE:0% ifconfig ge-0/0/8.0 down ?



  • 8.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 06:56

    Hi,

     

    It also support logical interfaces . If you meant something else , please clarify the question .

    Provided here example from lab switch :

     

    {master:0}
    admin@LabB> start shell user root
    Password:
    root@LabB:RE:0% ifconfig ge-0/0/11.0 down
    root@LabB:RE:0% exit
    exit

    {master:0}
    admin@LabB> show interfaces terse | match 11
    ge-0/0/11 up up
    ge-0/0/11.0 down up eth-switch

    {master:0}
    admin@LabB> start shell user root
    Password:
    root@LabB:RE:0% ifconfig ge-0/0/11.0 up
    root@LabB:RE:0% exit
    exit

    {master:0}
    admin@LabB> show interfaces terse | match 11
    ge-0/0/11 up up
    ge-0/0/11.0 up up eth-switch

    {master:0}
    admin@LabB> start shell user root
    Password:
    root@LabB:RE:0% ifconfig ge-0/0/11 down
    root@LabB:RE:0% exit
    exit

    {master:0}
    admin@LabB> show interfaces terse | match 11
    ge-0/0/11 down down
    ge-0/0/11.0 up down eth-switch

    {master:0}
    admin@LabB> start shell user root
    Password:
    root@LabB:RE:0% ifconfig ge-0/0/11 up
    root@LabB:RE:0% exit
    exit

    {master:0}
    admin@LabB> show interfaces terse | match 11
    ge-0/0/11 up up
    ge-0/0/11.0 up up eth-switch

    {master:0}
    admin@LabB>



  • 9.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 08:23

    On cisco devices in order to do up/down inteface enough to make shutdown/no shutdown. On juniper devices with they concept logical interface (unit) in order to do up/down interface enough to make % ifconfig ge-0/0/8 up/down only on physical interface or necessary else to do % ifconfig ge-0/0/8.0 up/down and on logical interface?

     

    P.S. i am sorry for me english.



  • 10.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-24-2016 10:08
    Hi,

    Well, its not the same concept with cisco . Every company has its concepts .
    With juniper (junos) you need to log in the shell as a root user in order to bring down\up any physical\logical interface .
    You don't need the ge-0/0/8.0 (unit 0) in order to bring down physical interface . in enough to use ge-0/0/8 . But if we're talking about logical interface m then yes you need the (unit 0) .
    I just brought to you two examples and a link to discussion on you question .

    HTH


  • 11.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 03-25-2016 00:22

    Thanks very much for explanation.



  • 12.  RE: Juniper quick stop/start interface and dot1x authentication

    Posted 04-18-2017 10:55

    How would I check if an interface has been set to down in shell?