Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Junos] "Link encapsulation type is not valid for device type"

0

0

Article ID: KB35571 KB Last Updated: 17 Apr 2020Version: 1.0
Summary:

This article gives more information about the "Link encapsulation type is not valid for device type" error message that is seen on interfaces due to which configuration may fail, and provides a solution to correct the problem.

 

Symptoms:

Example

set interfaces xe-0/0/9 flexible-vlan-tagging
set interfaces xe-0/0/9 mtu 9192
set interfaces xe-0/0/9 gigether-options no-flow-control
set interfaces xe-0/0/9 unit 616 encapsulation vlan-bridge
set interfaces xe-0/0/9 unit 616 vlan-id 616

The following error message is seen when the above configuration is committed:

[edit]
lab@juniper# commit check
Dec 04 10:52:04
[edit interfaces xe-0/0/9]
  'unit 616'
     Link encapsulation type is not valid for device type     |<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
error: configuration check-out failed

 

Cause:

The reason for the error is incorrect encapsulation configuration for an interface that is supposed to be an L2 interface.

 

Solution:

Flexible Ethernet Services is a type of encapsulation that enables a physical interface to support different types of Ethernet encapsulations at the logical interface level, which helps resolve the error.

To resolve the above problem, include the following statement:

set interfaces xe-0/0/9 encapsulation flexible-ethernet-services

Now configuration commit succeeds as shown below:

‚Äč[edit]
lab@juniper# commit check
Dec 04 11:08:38
configuration check succeeds
 
lab@juniper> show interfaces xe-0/0/9 terse
Dec 04 11:09:22
Interface               Admin Link Proto    Local                 Remote
xe-0/0/9                up    up
xe-0/0/9.616            up    up   eth-switch
xe-0/0/9.32767          up    up   multiservice

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search