无法在 Junos 上提交

网络工程 转变 杜松 杜松-朱诺斯 瞻博网络
2022-02-04 12:32:44

我正在学习Junos。我在我的交换机上应用了以下命令:

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  

当我继续“提交”时,我得到以下信息:

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#    

我可以做些什么来删除现有的 vlan,以便我可以保存我需要的新配置?
下面是“显示界面”

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}
3个回答

看起来您在接口上也配置了 VLAN mtnc_os。当您添加 MTNC_ALOM VLAN 时,它会添加到 VLAN 列表中。您的端口可能是一个访问端口,并且只能配置一个 VLAN。在提交之前尝试将您的端口重新配置为中继端口或删除现有的 VLAN。如果没有帮助,请粘贴“show interfaces ge-1/0/44”的输出。

你有不止一个解决方案来解决这个问题..其中一个代码在这里删除接口 ge-1/0/44 unit 0 family ethernet-switching vlan..我们可以在接口上添加 vlan 后删除接口上的所有 vlan ge- 1/0/44 ...如您所见,设置接口 ge-1/0/44 单元 0 家庭以太网交换 vlan 成员 ...(vlan id 示例 20)

在删除接口上现有的 vlan 之前,您不能删除 vlan

当我进行任何类型的提交操作时,我总是使用提交检查,这在这些情况下会有所帮助。这只是一个快速的建议,作为瞻博网络工程师,我也是相当新手,我以前的大部分经验都是沉重的 Cisco/Aruba/checkpoint/palo。

如果您还没有开始阅读它......请确保将其放在列表的顶部

https://www.juniper.net/assets/us/en/local/pdf/study-guide/study-guide-jncia.pdf

它是 JNCIA 手册,在瞻博网络网站上免费提供,包含您成功所需的大量重要信息。

最好的,