Switching

Expand all | Collapse all

Remove interface from range

Jump to Best Answer
  • 1.  Remove interface from range

    Posted 08-24-2017 17:17

    I need to change an interface from a trunk to an access port. Here's the current config:

     

    interface-range wireless-ap-ports {
    member-range ge-4/0/36 to ge-4/0/47;
    unit 0 {
    family ethernet-switching {
    port-mode trunk;
    vlan {
    members [ Wireless CSMSBYOD ];
    }
    native-vlan-id 5;
    }
    }
    }

     

    Interface ge-4/0/36 is a trunk port and a member of a few VLANs. I need to remove it and make it an access port in a single VLAN. The vendor that installed/configured my EX switches are no longer in business and I do not have the required knowledge of the JunOS to be able to make these type of changes.



  • 2.  RE: Remove interface from range

    Posted 08-24-2017 23:51

    Hi,

     

    Basicly you need following lines;

     

    delete interface-range wireless-ap-ports member-range

    set  interface-range wireless-ap-ports member-range ge-4/0/37 to ge-4/0/47

    set interfaces ge-4/0/36.0 family ethernet-switching port-mode access vlan members VLAN-NAME

     

    By the way,

     

    If you using 12.3xx version, lets say one of the ports are configured within range and it's configured single, the single configuration will override the range config. For example if you have following 3 lines;

     

    set  interface-range wireless-ap-ports member-range ge-4/0/36 to ge-4/0/47 

    set  interface-range wireless-ap-ports unit 0 port-mode trunk vlan members  [ Wireless CSMSBYOD ]

    set interfaces ge-4/0/36.0 family ethernet-switching port-mode access vlan members VLAN-NAME

     

    ge-4/0/36 interface will be a access port. But this is a dangerous configuration, because one day you decide to upgrade your device to 15.xx version -while those 3 lines are in configuration- ethernet switching of device wil stop, it's like a bug or something.

     

    My opinion is never use range configuration.

     

    I hope it is clean.

     

     

     

     

     

     



  • 3.  RE: Remove interface from range

    Posted 08-27-2017 17:11

    I cannot get the CLI to accept those commands. I'm not sure what I'm doing wrong.



  • 4.  RE: Remove interface from range

    Posted 08-27-2017 17:31

    This the message when I attempt to delete the interface range:

     


    {master:0}[edit]
    obtech@SAND-IDF-Faculty# ...ange ge-4/0/36 to ge-4/0/47
    warning: statement not found

     

    Command I'm typing is

     

    delete interfaces interface-range wireless-ap-ports member-range ge-4/0/36 to ge-4/0/47



  • 5.  RE: Remove interface from range

    Posted 08-27-2017 17:39

    This is the error when I try and commit the following commands:

     

    set  interface-range wireless-ap-ports member-range ge-4/0/37 to ge-4/0/47
    set interfaces ge-4/0/36.0 family ethernet-switching port-mode access vlan members SecurityCameras

     

    Error
    obtech@SAND-IDF-Faculty# commit
    [edit interfaces ge-4/0/37 unit 0 family]
    'ethernet-switching'
    Access interface ge-4/0/37.0 cannot have native-vlan-id
    error: configuration check-out failed

     

    I believe the configuration is being inherited from this:

     


    interface-range wireless-ap-ports {
    member-range ge-4/0/36 to ge-4/0/47;
    unit 0 {
    family ethernet-switching {
    port-mode trunk;
    vlan {
    members [ Wireless CSMSBYOD ];
    }
    native-vlan-id 5;
    }
    }
    }

     



  • 6.  RE: Remove interface from range
    Best Answer

    Posted 08-28-2017 02:19

    >show configuration interfaces so we can see all the configuration on the interfaces. The advice given means you have to delete the interface range and create a new one, then configure the ge-0/0/36 as an access port. In fact after deleting the interface range, delete interface ge-0/0/36, recreate the new interface range as indicated minus ge-0/0/36 and then configure ge-0/0/36 as an access port.

    #delete interfaces interface-range wireless-ap-ports

    #set interfaces interface-range wireless-ap-ports member-range ge-4/0/37 to ge-4/0/47

    #set interfaces interface-range wireless-ap-ports port-mode trunk unit 0 family ethernet-switching port-mode trunk vlan members CSMSBYOD

    #set interfaces interface-range wireless-ap-ports port-mode trunk unit 0 family ethernet-switching port-mode trunk vlan members Wireless



  • 7.  RE: Remove interface from range

    Posted 08-28-2017 04:27

    I get as far as the "set interfaces interface-range wireless-ap-ports port-mode trunk unit 0 family ethernet-switching port-mode trunk vlan members CSMSBYOD" but it will accept the port-mode parameter. Listed below is result of show configuration interfaces:

     

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.08.28 07:24:03 =~=~=~=~=~=~=~=~=~=~=~=
    login as: obtech
    obtech@10.5.0.23's password:
    --- JUNOS 12.3R11.2 built 2015-09-24 11:15:41 UTC
    {master:0}
    obtech@SAND-IDF-Faculty> show configuration interfaces
    interface-range uplink_ports {
    member-range xe-0/1/0 to xe-0/1/3;
    member-range ge-0/1/0 to ge-0/1/3;
    member-range xe-1/1/0 to xe-1/1/3;
    member-range ge-1/1/0 to ge-1/1/3;
    member-range xe-2/1/0 to xe-2/1/3;
    member-range ge-2/1/0 to ge-2/1/3;
    member-range xe-3/1/0 to xe-3/1/3;
    member-range ge-3/1/0 to ge-3/1/3;
    member-range xe-4/1/0 to xe-4/1/3;
    member-range ge-4/1/0 to ge-4/1/3;
    member-range xe-5/1/0 to xe-5/1/3;
    member-range ge-5/1/0 to ge-5/1/3;
    member-range xe-6/1/0 to xe-6/1/3;
    member-range ge-6/1/0 to ge-6/1/3;
    unit 0 {
    family ethernet-switching {
    port-mode trunk;
    vlan {
    members [ MGMT CSMS-Servers SAND-Voice CSMS-MDF CSMS-RM100 CSMS-RM102 CSMS-FacultyDining CSMS-RM236 CO-OP-Office CSMS-ShopWing Wireless VLAN189 CSMS-Field SecurityCameras CSMSBYOD ];
    }
    ---(more)--- native-vlan-id 1;
    }
    }
    }
    interface-range data-ports {
    member ge-0/0/0;
    unit 0 {
    family ethernet-switching {
    vlan {
    members VLAN189;
    }
    }
    }
    }
    interface-range wireless-ap-ports {
    member-range ge-4/0/36 to ge-4/0/47;
    unit 0 {
    family ethernet-switching {
    port-mode trunk;
    vlan {
    members [ Wireless CSMSBYOD ];
    }
    native-vlan-id 5;
    ---(more)--- }
    }
    }
    interface-range camera-ports {
    member-range ge-4/0/1 to ge-4/0/35;
    unit 0 {
    family ethernet-switching {
    vlan {
    members SecurityCameras;
    }
    }
    }
    }
    inactive: interface-range phone-system-ports {
    member ge-0/0/3;
    unit 0 {
    family ethernet-switching {
    vlan {
    members SAND-Voice;
    }
    }
    }
    }
    ---(more 29%)--- inactive: interface-range Room100 {
    member ge-0/0/4;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-RM100;
    }
    }
    }
    }
    inactive: interface-range Room102 {
    member ge-0/0/5;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-RM102;
    }
    }
    }
    }
    interface-range FacultyDining {
    member ge-4/0/0;
    member-range ge-0/0/0 to ge-0/0/47;
    ---(more 40%)--- member-range ge-1/0/0 to ge-1/0/47;
    member-range ge-2/0/0 to ge-2/0/47;
    member-range ge-3/0/0 to ge-3/0/47;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-FacultyDining;
    }
    }
    }
    }
    inactive: interface-range Room236 {
    member ge-0/0/7;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-RM236;
    }
    }
    }
    }
    inactive: interface-range CO-OP-Office {
    member ge-0/0/8;
    ---(more 50%)--- unit 0 {
    family ethernet-switching {
    vlan {
    members CO-OP-Office;
    }
    }
    }
    }
    inactive: interface-range MDF {
    member ge-0/0/9;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-MDF;
    }
    }
    }
    }
    inactive: interface-range ShopWing {
    member ge-0/0/10;
    unit 0 {
    family ethernet-switching {
    vlan {
    ---(more 60%)--- members CSMS-ShopWing;
    }
    }
    }
    }
    inactive: interface-range Field {
    member ge-0/0/11;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-Field;
    }
    }
    }
    }
    inactive: interface-range DoorControl {
    member ge-4/0/0;
    unit 0 {
    family ethernet-switching {
    vlan {
    members CSMS-Field;
    }
    }
    ---(more 70%)--- }
    }
    ge-2/0/6 {
    description "Sodexo ADP Time Clock";
    }
    ge-3/0/23 {
    description "HVAC Booster patch panel port 36";
    }
    ge-3/0/25 {
    unit 0 {
    family ethernet-switching {
    port-mode access;
    vlan {
    members SecurityCameras;
    }
    }
    }
    }
    ge-3/0/27 {
    unit 0 {
    family ethernet-switching {
    port-mode access;
    vlan {
    ---(more 80%)--- members SecurityCameras;
    }
    }
    }
    }
    ge-3/0/29 {
    unit 0 {
    family ethernet-switching {
    port-mode access;
    vlan {
    members SecurityCameras;
    }
    }
    }
    }
    ge-3/0/31 {
    unit 0 {
    family ethernet-switching {
    port-mode access;
    vlan {
    members SecurityCameras;
    }
    }
    ---(more 91%)--- }
    }
    ge-4/0/0 {
    description "Door Access Panel";
    unit 0 {
    family ethernet-switching {
    port-mode access;
    vlan {
    members SecurityCameras;
    }
    }
    }
    }
    vlan {
    unit 5 {
    family inet {
    address 10.5.0.23/16;
    }
    }
    }

    {master:0}
    obtech@SAND-IDF-Faculty> 



  • 8.  RE: Remove interface from range

    Posted 08-28-2017 04:33

    Sorry...I meant to say it WILL NOT accept the port-mode trunk parameter



  • 9.  RE: Remove interface from range

    Posted 08-28-2017 09:32

    These were the commands that worked:

     

    set interfaces interface-range wireless-ap-ports unit 0 family ethernet-switching port-mode trunk vlan members CSMSBYOD

    set interfaces interface-range wireless-ap-ports unit 0 family ethernet-switching port-mode trunk vlan members Wireless

     

    Thanks for all your help with this