Switching

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.  how to allow range of mac addresses using ethernet-switching-options

    Posted 09-30-2012 03:02
    hi all we can bind specific macs on ports as under:- # set ethernet-switching-options secure-access-port interface AllowedInterfaces allowed-mac [ 00:00:00:11:11:11 00:00:00:11:11:12 00:00:00:11:11:13 ] this is for specific mac addreses.... but how to do it for a range of mac addreses,, like if i know my 8 macs are between 00:00:00:11:11:11 00:00:00:11:11:19... can i do it ...is there any command or way out in cli plz guide


  • 2.  RE: how to allow range of mac addresses using ethernet-switching-options
    Best Answer

    Posted 09-30-2012 03:30
    Hi Nasir,

    I'm not aware of any such range command for MAC addresses. However, I've been using scripts of the following kind to do lengthy configurations on the junos boxes:


    #!/sbin/sh
    while [ 1 ] <<<< loop
    do
    /usr/sbin/cli -c "edit;<command>;commit;exit"
    sleep 60
    done

    you can choose the desired value for the loop and then use the variable within the script to generate the command. The /usr/sbin/cli is basically an inbuilt script that would take you to the operational mode.

    HTH,
    ankit
    #script
    #Automation
    #JUNOS
    #bash


  • 3.  RE: how to allow range of mac addresses using ethernet-switching-options

    Posted 09-30-2012 04:22
    thnx alot dear achada for timely response i was just wondering if there could be any such option available....thnx for clarification