direction (MX Series)
Syntax
direction (inbound | outbound);
Hierarchy Level
[edit security macsec connectivity-association connectivity-association-name secure-channel secure-channel-name]
Description
Configure whether the secure channel applies MACsec security to traffic entering or leaving an interface.
If you need to apply MACsec on traffic entering and leaving an interface, you need to create one secure channel to apply MACsec on incoming traffic and another secure channel to apply MACsec on outgoing traffic within the same connectivity association. When you associate the connectivity association with an interface, MACsec is applied on traffic entering and leaving that interface.
You only use this configuration option when you are configuring MACsec using static secure association keys (SAK) security mode. When you are configuring MACsec using static connectivity association keys (CAK) security mode, two secure channels that are not user-configurable—one inbound secure channel and one outbound secure channel—are automatically created within the connectivity association.
Default
This statement does not have a default value.
If you have configured a secure channel to enable MACsec using static SAK security mode, you must specify whether the secure channel applies MACsec to traffic entering or leaving an interface. A candidate configuration that contains a secure channel that has not configured a direction cannot be committed.
Options
inbound | Enable MACsec security on traffic entering the interface that has applied the secure channel. |
outbound | Enable MACsec security on traffic leaving the interface that has applied the secure channel. |
The remaining statements are explained separately.
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 15.1.