第1个回答 2017-08-22
SUMMARY:Thisknowledgebase(KB)articleprovidesbasicinstructionsforconfiguringthe"InterfaceRange"commandwhichwasintroducedinJUNOSSoftware10.0fortheEX-seriesSwitches.PROBLEMORGOAL:SOLUTION:STEPSTOCONFIGUREINTERFACE-RANGE:ConfigureaVLAN:user@juniper#setvlansvlan10vlan-id10Configuringtheinterface-range"test"tobeapartofavlan(vlan10):user@juniper#setinterfacesinterface-rangetestunit0familyethernet-switchingvlanmembersvlan10Addingmemberinterfaces(actualphysicalinterface)totheinterfacerange:user@juniper#setinterfacesinterface-rangetestmember-rangege-0/0/0.0toge-0/0/10user@juniper#commitcheckconfigurationchecksucceedsuser@juniper#commitconfigurationchecksucceedscommitcompleteVerifyingthatallphysicalinterfacesinrangebecamepartofthemembervlantowhichinterfacerange'test'wasadded:user@juniper#runshowvlansNameTagInterfacesdefaultge-0/0/11.0,ge-0/0/12.0,ge-0/0/13.0,ge-0/0/14.0,ge-0/0/15.0,ge-0/0/16.0*,ge-0/0/17.0,ge-0/0/18.0,ge-0/0/19.0,ge-0/0/20.0,ge-0/0/21.0,ge-0/0/22.0,ge-0/0/23.0,ge-0/1/0.0vlan1010<--------Interfacesge-0/0/0-ge-0/0/10invlan10ge-0/0/0.0,ge-0/0/1.0,ge-0/0/2.0,ge-0/0/3.0,ge-0/0/4.0,ge-0/0/5.0,ge-0/0/6.0,ge-0/0/7.0,ge-0/0/8.0,ge-0/0/9.0,ge-0/0/10.0*user@juniper#editinterfacesinterface-rangetest[editinterfacesinterface-rangetest]user@juniper#showmember-rangege-0/0/0toge-0/0/10;unit0{familyethernet-switching{vlan{members10;}}}