Delete an interface-range how…



  • config on a ex2200
    set interfaces interface-range office member-range ge-0/0/0 to ge-0/0/3
    set interfaces interface-range office unit 0 family ethernet-switching port-mode access
    set interfaces interface-range office unit 0 family ethernet-switching vlan members 200
    set interfaces interface-range old member-range ge-0/0/4 to ge-0/0/5
    set interfaces interface-range old unit 0 family ethernet-switching port-mode access
    set interfaces interface-range old unit 0 family ethernet-switching vlan members 800
    set interfaces interface-range video member-range ge-0/0/8 to ge-0/0/10
    set interfaces interface-range video unit 0 family ethernet-switching port-mode access
    set interfaces interface-range video unit 0 family ethernet-switching vlan members 900
    set interfaces interface-range wifi member-range ge-0/0/6 to ge-0/0/7
    set interfaces interface-range wifi unit 0 family ethernet-switching port-mode trunk
    set interfaces interface-range wifi unit 0 family ethernet-switching vlan members 700
    set interfaces interface-range wifi unit 0 family ethernet-switching vlan members 710
    set interfaces interface-range wifi unit 0 family ethernet-switching vlan members 720
    set interfaces interface-range wifi unit 0 family ethernet-switching native-vlan-id 730
    set interfaces ge-0/0/0 unit 0 family ethernet-switching
    set interfaces ge-0/0/1 unit 0 family ethernet-switching
    set interfaces ge-0/0/2 unit 0 family ethernet-switching
    set interfaces ge-0/0/3 unit 0 family ethernet-switching
    set interfaces ge-0/0/4 unit 0 family ethernet-switching
    set interfaces ge-0/0/5 unit 0 family ethernet-switching
    set interfaces ge-0/0/6 unit 0 family ethernet-switching
    set interfaces ge-0/0/7 unit 0 family ethernet-switching
    set interfaces ge-0/0/8 unit 0 family ethernet-switching
    set interfaces ge-0/0/9 unit 0 family ethernet-switching
    set interfaces ge-0/0/10 unit 0 family ethernet-switching
    set interfaces ge-0/0/11 unit 0 family ethernet-switching port-mode access
    set interfaces ge-0/0/11 unit 0 family ethernet-switching vlan members network-management
    set interfaces ge-0/1/0 unit 0 family ethernet-switching port-mode trunk
    set interfaces ge-0/1/0 unit 0 family ethernet-switching vlan members all
    set interfaces ge-0/1/1 unit 0 family ethernet-switching port-mode trunk
    set interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members all
    set interfaces lo0 unit 0 family inet address 127.0.0.1/32
    set interfaces vlan unit 10 family inet address 10.120.31.6/24

    set vlans inhabits-vlan vlan-id 100
    set vlans office-ict vlan-id 200
    set vlans suppliers vlan-id 800
    set vlans network-management vlan-id 10
    set vlans network-management l3-interface vlan.10
    set vlans old vlan-id 600
    set vlans voice vlan-id 500
    set vlans video vlan-id 900
    set vlans wifi-1-public vlan-id 700
    set vlans wifi-2-ka vlan-id 710
    set vlans wifi-ap vlan-id 730
    set vlans wifi-inhabits vlan-id 720

    goal
    On customer request I need to replace this vlan interface-range:
      set interfaces interface-range wifi member-range ge-0/0/6 to ge-0/0/7
    for:
    set interfaces interface-range voice member-range ge-0/0/6 to ge-0/0/7

    problem
    When I delete the line interfaces interface-range wifi member-range ge-0/0/6 to ge-0/0/7
    it gives me an error…
    Even when I first remove all lines of the wifi underneath and delete the final line “interfaces interface-range wifi member-range ge-0/0/6 to ge-0/0/7” it keeps giving me the same error.

    What is the best way to achieve this goal without errors?

    Error:
    something like: ‘wifi is(has?) not a valid member’



  • As always… it can’t be difficult one would expect… and indeed, it isn’t…found it!  😄

    ‘#delete interfaces interface-range wifi’      (so without the rest of the line shown in the set line)

    This automatically also deletes the lines underneath them…


 

29
Online

38.4k
Users

12.7k
Topics

44.5k
Posts