思科,交换机端口上没有 dot1q 隧道模式

网络工程 顺式催化剂 隧道 交换机端口
2022-02-26 20:18:53

问题是:我在以下 cisco 交换机中找不到 QinQ(又名双 vlan 标记或 dot1q 隧道)功能:安装了 WS-X4748-UPOE+E 线卡的 WS-C4510R+E、SUP8-E。

Cisco Feature Navigator 说它应该在我的平台上。

我是 IOS-XE 的新手,这是该硬件支持的唯一 IOS。

我已将 ios-xe 升级到:cat4500es8-universalk9.SPA.03.08.01.E.152-4.E1.bin 我也尝试过:cat4500es8-universal.SPA.03.03.00.XO.151- 1.XO.bin cat4500es8-universalk9.SPA.03.09.01.E.152-5.E1.bin 不走运。

可能是我在 IOS-XE 问题中有一些许可证或功能启用(机制)。我当前的许可证如下所示:

Switch#show license all 
License Store: Primary License Storage
License Store: Dynamic License Storage
StoreIndex: 0 Feature: entservices  Version: 1.0
      License Type: Evaluation
        Evaluation total period: 8 weeks 4 days 
        Evaluation period left: 8 weeks 3 days 
      License State: Inactive
      License Count: Non-Counted
      License Priority: Low
StoreIndex: 1 Feature: entservices  Version: 1.0
      License Type: PermanentRightToUse
      License State: Active, Not in Use, EULA accepted
      License Count: Non-Counted
StoreIndex: 2 Feature: ipbase  Version: 1.0
      License Type: Evaluation
        Evaluation total period: 8 weeks 4 days 
        Evaluation period left: 8 weeks 4 days 
      License State: Inactive
      License Count: Non-Counted
      License Priority: None
StoreIndex: 3 Feature: ipbase  Version: 1.0
      License Type: PermanentRightToUse
      License State: Active, Not in Use, EULA accepted
      License Count: Non-Counted
StoreIndex: 4 Feature: lanbase  Version: 1.0
      License Type: PermanentRightToUse
      License State: Active, Not in Use, EULA accepted
      License Count: Non-Counted
StoreIndex: 5 Feature: apcount  Version: 1.0
      License Type: Evaluation
        Evaluation total period: 8 weeks 4 days 
        Evaluation period left: 8 weeks 4 days 
      License State: Active, Not in Use, EULA not accepted
      License Count: 0/0
      License Priority: None
StoreIndex: 6 Feature: apcount  Version: 1.0
      License Type: PermanentRightToUse
      License State: Inactive
      License Count: 0/0

我在那里也没有找到 sdm 模板命令。

Switch#show dot1? 
dot1x  

首先,我尝试过:

configure terminal
    int gi 1/1
    (config-if)#swi mode ?
          access        Set trunking mode to ACCESS unconditionally
          dynamic       Set trunking mode to dynamically negotiate access or trunk mode
          private-vlan  Set private-vlan mode
          trunk         Set trunking mode to TRUNK unconditionally
    (config-if)#int te 5/5
    (config-if)#swi mode ?
          access        Set trunking mode to ACCESS unconditionally
          dynamic       Set trunking mode to dynamically negotiate access or trunk mode
          private-vlan  Set private-vlan mode
          trunk         Set trunking mode to TRUNK unconditionally

什么都没有:

switchport mode dot1q-tunnel

乃至

show dot1q?
% Unrecognized command

因为我不是第一次设置QinQ。我检查了 Cisco Feature Navigator 以确保我的 IOS-XE 支持它。是的 cat4500es8-universalk9.SPA.03.08.01.E.152-4.E1.bin 支持 QinQ 甚至 Selective QinQ。我尝试在线路卡和 SUP8-E 上配置 QinQ - 没有这样的命令。

    (config)#default int te5/5
    Interface TenGigabitEthernet5/5 set to default configuration
    (config)#int te 5/5
    (config-if)#switchport 
    (config-if)#switchport mode access 
    (config-if)#switchport access vlan 10
    (config-if)#switchport nonegotiate 
    (config-if)#switchport mode ?
          access        Set trunking mode to ACCESS unconditionally
          dynamic       Set trunking mode to dynamically negotiate access or trunk mode
          private-vlan  Set private-vlan mode
          trunk         Set trunking mode to TRUNK unconditionally



    (config)#default int te5/5
    Interface TenGigabitEthernet5/5 set to default configuration
    (config)#int te 5/5
    (config-if)#switchport 
    (config-if)#switchport mode access 
    (config-if)#switchport access vlan 10
    (config-if)#switchport nonegotiate 
    (config-if)#switchport mode ?
          access        Set trunking mode to ACCESS unconditionally
          dynamic       Set trunking mode to dynamically negotiate access or trunk mode
          private-vlan  Set private-vlan mode
          trunk         Set trunking mode to TRUNK unconditionally
    (config-if)#switchport vl?
          % Unrecognized command

我认为主要问题是Inactive ent license:

StoreIndex: 0 Feature: entservices  Version: 1.0
      License Type: Evaluation
        Evaluation total period: 8 weeks 4 days 
        Evaluation period left: 8 weeks 3 days 
      License State: Inactive
      License Count: Non-Counted
      License Priority: Low
1个回答

由于 QinQ 是 ISP 功能,因此密钥处于未使用 entservice 许可证状态:

show license all
...
StoreIndex: 1 Feature: entservices  Version: 1.0
    License Type: PermanentRightToUse
    License State: Active, Not in Use, EULA accepted
    License Count: Non-Counted
...
#configure terminal
    #(config)#license boot level entservices !
#reload

重新加载后(未输入许可证!):

show license all
    ...
    StoreIndex: 1 Feature: entservices  Version: 1.0
    License Type: PermanentRightToUse
    License State: Active, In Use
    License Count: Non-Counted
    ...
show log
    ...
    *Dec 26 01:20:03.606: %C4K_IOSSYS-6-IMAGELEVEL: Supervisor booting in image level 'entservices'
    ...

QinQ 功能(以及更多)所需的所有命令都可用:

#show dot1q-tunnel ?
    interface  specify an interface
    |          Output modifiers
    <cr>
(config)#int gi 1/1
    (config-if)#switchport mode ?
    access        Set trunking mode to ACCESS unconditionally
    dot1q-tunnel  set trunking mode to TUNNEL unconditionally
    dynamic       Set trunking mode to dynamically negotiate access or trunk mode
    private-vlan  Set private-vlan mode
    trunk         Set trunking mode to TRUNK unconditionally

顺便说一句,所有接口配置命令都可以在任何交换机端口模式下使用,只是会出现错误:

(config)#int gi 1/1
    (config-if)#no switchport
    (config-if)#switchport mode dot1q-tunnel 
        Command rejected: Te5/5 is not a switching port.

并且所有可用的显示命令:

#show dot1q-tunnel 
    dot1q-tunnel mode LAN Port(s)
    -----------------------------
    Gi1/24
    Te5/5