Junos Interface Configuration Generator
Generate Junos set-format interface configuration: physical properties, units, VLAN tagging, IPv4/IPv6 addressing and description conventions.
Result
set interfaces ge-0/0/1 description "CORE-UPLINK-TO-SW01"
set interfaces ge-0/0/1 mtu 1514
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/1 unit 0 vlan-id 100
set interfaces ge-0/0/1 unit 0 description "CORE-UPLINK-TO-SW01-U0"
set interfaces ge-0/0/1 unit 0 family inet address 10.20.30.1/24
set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:1e:1e::1/64show configuration interfaces ge-0/0/1
show interfaces ge-0/0/1.0 terse
show interfaces ge-0/0/1 extensive | match "error|drops|MTU"
ping 10.20.30.1 count 3delete interfaces ge-0/0/1 unit 0
commit confirmed 5About Junos Interface Configuration Generator
Junos separates the physical interface from its logical units, which is cleaner than the Cisco subinterface model once you are used to it - and unforgiving about where a property belongs. This generates a complete, commit-safe interface stanza in set format.
Description conventions that pay off
Interface descriptions are the cheapest documentation in a network and the only kind that is always current. A consistent scheme — role, far-end device, far-end port, circuit reference — turns show interfaces descriptions into a usable topology map and makes automated inventory possible. It also removes the most common cause of a wrong-port change: guessing what a port is for from its address.
Physical versus unit properties
vlan-tagging, mtu and encapsulation belong to the physical interface. Addresses, vlan-id and per-unit filters belong to the unit. Putting a family or an address at the physical level is the most common syntax error when moving from IOS. Unit 0 is conventional for untagged or single-VLAN configuration; matching unit number to VLAN ID is a widespread convention worth adopting for readability.
Common use cases
- Turning up a new tagged uplink or customer handoff.
- Adding IPv6 to an existing routed interface.
- Producing a reviewable change with matching rollback for a change window.
Edge cases and gotchas
- Always use
commit confirmedon remote devices - a lost management path rolls back automatically. - Junos MTU includes the 14-byte Ethernet header; Cisco does not.