Interface
Network interfaces are the foundation of any network device, serving as the connection points to other devices and networks. On Juniper devices, interfaces can be configured with various options including link aggregation (LACP), logical units, VLANs, MTU and MSS settings to accommodate different network requirements.
This guide covers the essentials of Juniper interface configuration with practical examples.
Physical Interfaces
Physical interfaces on Juniper devices are named according to their type, FPC slot, and port number. For example:
ge-0/0/0: Gigabit Ethernet interface in slot 0, port 0xe-0/0/12: 10 Gigabit Ethernet interface in slot 0, port 12
Link Aggregation (LACP)
Link Aggregation Control Protocol (LACP) allows you to bundle multiple physical interfaces into a single logical interface, providing increased bandwidth and redundancy.
Configuring Link Aggregation
First, assign physical interfaces to an aggregated Ethernet interface (ae):
interfaces {
xe-0/0/12 {
gigether-options {
802.3ad ae0; # Assign to ae0 bundle
}
}
xe-0/0/13 {
gigether-options {
802.3ad ae0; # Assign to ae0 bundle
}
}
}Then, configure the aggregated interface with LACP:
LACP Modes:
active: Actively initiates LACP negotiations
passive: Responds to LACP negotiations but doesn't initiate them
LACP Periodic Options:
fast: Sends LACP packets every 1 second
slow: Sends LACP packets every 30 seconds (default)
Logical Units (Subinterfaces)
Logical units, also called subinterfaces, are used to create multiple logical interfaces on a single physical interface. Each unit can have its own VLAN ID, IP address, and protocols.
Configuring Logical Units
You can have multiple units on a single interface, each with different VLAN IDs:
VLAN Configuration
VLANs (Virtual LANs) are used to segment network traffic. There are several ways to configure VLANs on Juniper devices:
1. VLAN Tagging
2. VLAN Ranges (For trunk ports)
3. Native VLAN
MTU Configuration
MTU (Maximum Transmission Unit) defines the largest packet size that can be transmitted on an interface. The default MTU on most interfaces is 1500 bytes, but you can increase it for applications like jumbo frames.
Interface-Level MTU
MSS Configuration
MSS (Maximum Segment Size) defines the largest amount of data that a device can receive in a single TCP segment, For tunneled traffic, This is very useful and necessary.
MSS for an Interface
Applying Groups to Interfaces
Groups allow you to apply a common configuration to multiple interfaces or units:
This is particularly useful for consistent configurations across multiple interfaces, such as applying traffic sampling, security settings, or QoS parameters.
Complete Example
Here's a complete example combining the concepts discussed:
Verification Commands
To verify your interface configuration, use these commands:
Best Practices
Documentation: Always use descriptive names and include descriptions
MTU Consistency: Ensure MTU is consistent across physical interfaces in an aggregated bundle
LACP Configuration: Use active mode on both ends for fastest failover detection
Interface Ranges: For similar configurations on multiple interfaces, use interface ranges
Commit Confirmed: When making interface changes remotely, use "commit confirmed" to prevent lockouts
Last updated