Juniper – Cannot Commit on Junos

juniperjuniper-exjuniper-junosswitch

I am learning Junos. I applied the following command on my switch:

hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm> configure
Entering configuration mode
The configuration has been changed but not committed

{master:3}[edit]
hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm# set interfaces ge-1/0/44 unit 0 description "ydedc1-INFREP01- DC1 R1-R13 (PP 389)"

{master:3}[edit]
hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm# set interfaces ge-1/0/44 unit 0 family ethernet-switching

{master:3}[edit]
hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm# set vlans MTNC_ALOM interface ge-1/0/44.0  

When I proceed to "commit-ing" I get the following:

hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm# commit
error: Access interface <ge-1/0/44.0> has more than one vlan member: mtnc_os and MTNC_ALOM
error: configuration check-out failed

{master:3}[edit]
hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm#    

What can I do to remove the existing vlan so that I can save the new configuration I need?
Below is the "show interface"

hw_tanyu_n@yamsc-a-DC-R1R13-asw-1.cm> show interfaces ge-1/0/44  
Physical interface: ge-1/0/44, Enabled, Physical link is Up
  Interface index: 319, SNMP ifIndex: 663  
  Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,  
  Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online  
  Device flags   : Present Running  
  Interface flags: SNMP-Traps Internal: 0x0  
  Link flags     : None  
  CoS queues     : 8 supported, 8 maximum usable queues  
  Current address: 00:26:88:6a:53:2f, Hardware address: 00:26:88:6a:53:2f  
  Last flapped   : 2016-04-25 16:56:01 WAT (16:16:11 ago)  
  Input rate     : 504 bps (0 pps)  
  Output rate    : 504 bps (0 pps)  
  Active alarms  : None  
  Active defects : None  
  Interface transmit statistics: Disabled  

  Logical interface ge-1/0/44.0 (Index 181) (SNMP ifIndex 280)  
    Description: connected to ESXDR-DB Service Console (10.67.53.14/24) on Patch_0389  
    Flags: SNMP-Traps 0x0 Encapsulation: ENET2  
    Bandwidth: 0  
    Input packets : 21  
    Output packets: 20761  
    Protocol eth-switch  
      Flags: None  

{master:3}

Best Answer

It looks like you have the VLAN mtnc_os configured on the interface as well. When you add the MTNC_ALOM VLAN it is added to the vlan list. Your port is probably an access port and can only have one VLAN configured. Try to reconfigure your port to a trunk port or remove the existing VLAN before comitting. Paste the output of "show interfaces ge-1/0/44" if that does not help.