命令在运行配置中,但不存在?

网络工程 思科 虚拟专用网 cli
2022-02-10 20:54:57

有人可以向我解释一下吗?它让我发疯。

当前运行配置:

vpdn-group 1
 ! Default PPTP VPDN group
 accept-dialin
  protocol pptp
  virtual-template 2
 l2tp tunnel timeout no-session 15

超酷!除了最后一个命令不存在!

2901_easton(config-vpdn)#l2tp ?
% Unrecognized command

这里是 ”?” 对于整个事情...

2901_easton(config-vpdn)#?
VPDN group configuration commands:
  accept-dialin...................VPDN accept-dialin group configuration
  default.........................Set a command to its defaults
  description.....................Description for this VPDN group
  dsl-line-info-forwarding........Forward DSL Line Info attributes
  exit............................Exit from VPDN group configuration mode   force-local-chap..............Force a CHAP challenge to be instigated locally
  ip..............................IP settings for tunnel
  lcp.............................LCP specific commands
  local...........................Local information
  no..............................Negate a command or set its defaults
  pptp ...........................PPTP specific commands
  redirect........................Call redirection options
  request-dialout.................VPDN request-dialout group configuration
  session-limit...................Maximum sessions allowed for this group
  source..........................Configuration source for this vpdn-group
  source-ip.......................Set source IP address for this vpdn-group
  terminate-from..................Terminate tunnel from remote peer
  vpn.............................VPN ID/VRF name

有人想吗??我真的很想增加这个该死的拨入的超时时间。

更新:在 Ron 的帮助下,我将 l2tp 命令应用于 VPDN 模板,然后将模板应用于 VPDN 组。现在看起来像这样。我想知道它将使用哪个超时,模板,还是我无法触及的直接配置的超时。我用“从不”配置的模板。

vpdn-group 1
 ! Default PPTP VPDN group
 accept-dialin
  protocol pptp
  virtual-template 2
 source vpdn-template 2
 l2tp tunnel timeout no-session 15

此外,还有一个关于许可证的问题……这是我的表演许可证。

2901_easton#show license
Index 1 Feature: ipbasek9
        Period left: Life time
        License Type: Permanent
        License State: Active, In Use
        License Count: Non-Counted
        License Priority: Medium
Index 2 Feature: securityk9
        Period left: Life time
        License Type: Permanent
        License State: Active, In Use
        License Count: Non-Counted
        License Priority: Medium
Index 3 Feature: uck9
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 4 Feature: datak9
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 5 Feature: gatekeeper
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 6 Feature: SSL_VPN
        Period left: 8  weeks 3  days
        Period Used: 5  minutes 44 seconds
        License Type: EvalRightToUse
        License State: Active, Not in Use, EULA accepted
        License Count: 0/0  (In-use/Violation)
        License Priority: Low
Index 7 Feature: ios-ips-update
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 8 Feature: SNASw
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 9 Feature: hseck9
Index 10 Feature: cme-srst
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: 0/0  (In-use/Violation)
        License Priority: None
Index 11 Feature: WAAS_Express
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
Index 12 Feature: UCVideo
        Period left: Not Activated
        Period Used: 0  minute  0  second
        License Type: EvalRightToUse
        License State: Not in Use, EULA not accepted
        License Count: Non-Counted
        License Priority: None
1个回答

编辑:简短的回答是选择了 PPTP 协议,并且在这种情况下超时的 l2tp 选项不可用。将协议更改为 vpdn-group 下的 l2tp 允许您删除和配置 l2tp 设置。

我没有足够的代表发表评论,所以我会在这里发布答案......我有类似的配置,我可以在 vpdn 组下编辑会话超时。

uc520(config-vpdn)#?
VPDN group configuration commands:
  accept-dialin             VPDN accept-dialin group configuration
  default                   Set a command to its defaults
  description               Description for this VPDN group
  dsl-line-info-forwarding  Forward DSL Line Info attributes
  exit                      Exit from VPDN group configuration mode
  force-local-chap          Force a CHAP challenge to be instigated locally
  ip                        IP settings for tunnel
  l2tp                      L2TP specific commands
  lcp                       LCP specific commands
  local                     Local information
  no                        Negate a command or set its defaults
  redirect                  Call redirection options
  relay                     Relay options configuration
  request-dialout           VPDN request-dialout group configuration
  scalability               Scalability testing configuration
  session-limit             Maximum sessions allowed for this group
  source                    Configuration source for this vpdn-group
  source-ip                 Set source IP address for this vpdn-group
  terminate-from            Terminate tunnel from remote peer
  vpn                       VPN ID/VRF name

我正在运行 IOS 版本15.1(4)M6,这是比您正在使用的版本更新的一些维护版本。我会尝试更新它。

编辑:这是 VPDN 配置

VPDN Configuration
vpdn enable
!
vpdn-group L2TP
 ! Default L2TP VPDN group
 accept-dialin
  protocol l2tp
  virtual-template 1
 no l2tp tunnel authentication

IOS镜像:uc500-advipservicesk9-mz.151-4.M6

此配置在 UC520 上,因此许可是基于用户的。它没有显示任何与功能相关的内容。

看一下,您可以通过更改协议,删除它,然后将协议更改回来来删除命令。然后你可以试试这个命令:

pptp tunnel echo [time_out]

我没有意识到你正在使用PPTP。

乔什