Switching

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  EX4550 ssh management IP

    Posted 08-02-2022 13:47
    I have tried to set up the management interface to be able to manage it via ssh (and eventually query interfaces via snmp), so far I have:

    set interfaces me0 unit 0 family inet address 192.168.3.24/24
    set routing-options static route 0.0.0.0/0 next-hop 192.168.3.1​


    I can't ping the interface, what else do I need to do?



  • 2.  RE: EX4550 ssh management IP

    Posted 08-03-2022 03:00

    Can you ping 192.168.3.1 from the switch ( or at least have a arp entry on the switch ) 

    also you will need to set
    set system services ssh

    Is this a standalone box or a virtual chassis. 



    ------------------------------
    Simon Bingham
    ------------------------------



  • 3.  RE: EX4550 ssh management IP

    Posted 08-03-2022 20:06
    I went to login via console to check, and now there's no local login password prompt, the switch somehow reverted to looking for a master, don't know why. I rebooted into recovery mode and tried to set
    request chassis pic-mode intraconnect
    request system reboot​

    per https://www.juniper.net/documentation/us/en/software/junos/virtual-chassis-ex-4200-4500/topics/task/ex4500-standalone-reset-cli.html and also set

    set system hostname someswitch
    set system root-authentication plain-text-password

    Then I tried to set member role as primary routing engine per https://supportportal.juniper.net/s/article/EX-Converting-a-Virtual-Chassis-Member-Role-to-Primary-Routing-Engine-Role-When-Using-Non-Provisioned-Configuration?language=en_US

    but nothing showed up in
    show virtual chassis​

    so it seems I'm somehow stuck in a loop.

    Would using the front panel to invoke the ezsetup override this and at least get me back to a local login?

    I'm also getting an error on commit of:

    error: rename failed for /var/etc/pam.conf
    commit complete
    
    {linecard:0}

    but show config | display set shows the commit completed.




  • 4.  RE: EX4550 ssh management IP

    Posted 08-04-2022 04:18
    Edited by Simon Bingham (technical debt collector) 08-04-2022 04:22

    This issue is you device is in linecard mode so will not take you config until this is the master

    Can you confirm this is a virtual chassis or a standalone device and not in production yet

    has the device been taken or being repurposed in some way ?

    you might find these commands useful

    # operational 
    
    Show virtual chassis
    request session member 1  #Login to a specific stack Member 
    request system halt member  # To stop a chassis member
    request chassis routing-engine master switch  # Commands to switch mastership
    request virtual-chassis reactivate
    
    
    #config
    set virtual-chassis no-split-detection
    


    if this is a virtual chassis you will need to configure a VME port 

    Set interfaces vme unit 0 family inet address 192.168.3.24/24


    for what is worth I never liked the fact that on junipers you cannot configure a individual mgmt IP on each VC member, this would be very useful when troubleshooting.

    Its hard to say without knowing your set up but if a virtual chassis member finds itself alone, it will not become active, this is to prevent dual mastership issues in network, I suspect that is your issue.  The no split detection should resolve this. then activate. 

    if you get 3 or more members in a VC your should delete this no split detection command.



    ------------------------------
    Simon Bingham
    ------------------------------



  • 5.  RE: EX4550 ssh management IP

    Posted 08-04-2022 18:49
    I want it in standalone mode. I configured the whole switch, went to deploy it, but maybe it saw other vchassis units on the network? I don't know, but it somehow switched into linecard:0 mode and won't let me login locally, even though there is no master elsewhere. I disconnected it from the network, but it still thinks there's a master somewhere. I booted into recovery mode and tried to run:
    > show virtual-chassis 
    error: the virtual-chassis-control subsystem is not running
    
    {linecard:0}
    > configure 
    Entering configuration mode
    
    {linecard:0}[edit]
    root@switch# set virtual-chassis no-split-detection 
    
    {linecard:0}[edit]
    root@switch# set system root-authentication plain-text-password 
    New password:
    Retype new password:
    
    {linecard:0}[edit]
    root@switch# commit 
    error: rename failed for /var/etc/pam.conf
    commit complete
    
    {linecard:0}[edit]
    root@switch# exit 
    Exiting configuration mode
    
    {linecard:0}
    root@switch> exit 
    
    Reboot the system? [y/n] y
    ​

    But after reboot I get:

    ** /dev/da0s2a
    FILE SYSTEM CLEAN; SKIPPING CHECKS
    clean, 111631 free (15 frags, 13952 blocks, 0.0% fragmentation)
    
    switch (ttyu0)
    
    login: root
    
    Logging to master
    
    
    
    ..
    
    switch (ttyu0)
    
    login: 
    switch (ttyu0)
    
    login:

    I can't get to a non-recovery mode to set it back to standalone it seems. Should I reboot into single mode and not do Recovery and see if I can change it that way?




  • 6.  RE: EX4550 ssh management IP

    Posted 08-04-2022 18:49
    I also tried to reset the unit to factory defaults and still get:
    Amnesiac (ttyu0)
    
    login: root
    
    Logging to master
    
    ...
    Connection to master failed, enabling local login
    
    Amnesiac (ttyu0)
    
    login: root
    
    Amnesiac (ttyu0)
    
    login: 
    ​

    But it won't give me a local login.