Switching

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



Expand all | Collapse all

Juniper command that will list current mac-limit for particular port

  • 1.  Juniper command that will list current mac-limit for particular port

    Posted 11 days ago

    I manage several Juniper EX3400 switches.

    When I need to connect a new computer to the Ethernet port or when I plug in an unmanaged switch into the network jack in the wall so that I can connect more than one computer using the Ethernet port to the switch I will type in the following two commands within the Juniper switch's command-line interface (Junos OS CLI).

    The first command deletes the number of MAC addresses that are recognized by that particular switch port (in this case 1).

    The second command increases the number of MAC addresses that are allowed to be recognized by that particular switch port (in this case 2).

    However, sometimes the number of MAC addresses that are allowed to be plugged into the network port is set to an unknown value (for example 5 or 8).

    I never know what this value is set to so I will have to type in the first command listed below to Delete the number of allowed MAC addresses. When this command errors out I will then increase the number following the mac-limit value by one until I finally find the correct numerical value & the command completes successfully.

    So I'm hoping to find out what the exact command is that I can type into the Juniper switch command interface that will tell me exactly how many MAC addresses are currently allowed to be plugged into the switch port.

    This will allow me to type in the correct numerical value for the first command that deletes the mac-limit value.

    What is the correct syntax for this command?

    Delete ethernet-switching-options secure-access-port interface ge-3/0/12.0 mac-limit 1
    Set ethernet-switching-options secure-access-port interface ge-3/0/12.0 mac-limit 2
    



    ------------------------------
    DENNIS STROBLE
    ------------------------------


  • 2.  RE: Juniper command that will list current mac-limit for particular port

    Posted 11 days ago
    Hi @DENNIS STROBLE . This Ask the Expert community is moderated only during live Ask the Expert events. I recommend you copy & paste this question into the relevant community, where someone will help you! Thanks for posting.
    Ellen​​

    ------------------------------
    Ellen MacDermid
    Communications
    ------------------------------



  • 3.  RE: Juniper command that will list current mac-limit for particular port

     
    Posted 11 days ago
    Hi Dennis,
    I don't have an EX to try but how about:
    show ethernet-switching-options secure-access-port interface ge-3/0/12.0 mac-limit
    or just do:
    delete ethernet-switching-options secure-access-port interface ge-3/0/12.0 mac-limit
    Regards
    Ulf


  • 4.  RE: Juniper command that will list current mac-limit for particular port

    Posted 10 days ago
    Hi Dennis ,

    Good day !
    You can use the below command to check the mac limit on a interface 

    show ethernet-switching interface

    Example :
    Logical Vlan TAG MAC MAC+IP STP Logical Tagging
    interface members limit limit state interface flags
    xe-0/0/0.0 294912 8192 untagged
    test 100 294912 1024 Forwarding untagged

    -Sharanya


  • 5.  RE: Juniper command that will list current mac-limit for particular port

    This message was posted by a user wishing to remain anonymous
    Posted 10 days ago
    This message was posted by a user wishing to remain anonymous

    Hello,

    you can use " show ethernet-switching statistics ".



  • 6.  RE: Juniper command that will list current mac-limit for particular port

    Posted 10 days ago
    Hello,

    You can use " show ethernet-switching statistics ".


    ------------------------------
    CHINGIZ MAMMADOV
    ------------------------------