title: Juniper EX Series Switches breadcrumbs:
TODO Clean up, reorganize and add remaining stuff.
{:.no_toc}
{:.no_toc}
root
without a password (drops you into the shell instead of the CLI).default
request system storage cleanup
for cleanup of old files.system auto-snapshot
(already added here)system no-redirects
system arp aging-timer 5
(defaults to 20 minutes (on routers which run ARP), which is crazy) (MAC address timeout on switches however is 5 minutes) (may cause flooding when the router tries to forward traffic but the MAC address is timed out) (use 5 minutes to be compatible with MAC address timeout)system internet-options path-mtu-discovery
(allows BGP to use packets larger than the minimum)user *
decides what to show in the terminal. any emergency
shows very few messages.host <hostname>
is used for remote logging. The DNS lookup is resolved only at commit time, so maybe use an IP address just for clarity.file <file>
is used for log files (e.g. messages
and interactive-commands
).local[0-7]
facilities were conventionally used for different types of devices. Nowadays it doesn't normally provide any benefit.authentication-order [ radius ]
(example) (RADIUS timeouts still allow local passwords?)login class <name> permissions <...>
for custom classes. super-user
allows everything.system archival
with transfer-on-commit
and nLogic slides.default-address-selection
to use loopback address for the source address of e.g. pinging.metric <n>
on OSPF interface.interface lo0.0 passive
(no neighbors)authentication
) just to prevent accidents when plugging different things together. Doesn't need to be "secure".interface-type p2p
on P2P onterfaces for fast recovery on short link breakages.static-to-ospf
, only direct. Add as terms in same policy. See nLogic slides.port-mode
renamed to interface-mode
.native-vlan-id
is not outside of units. It must also be specified in the vlan
list in unit 0.all
).First hop security:
Example:
firewall {
family ethernet-switching {
filter RA-guard {
term router-solicitation {
from {
destination-mac-address 33:33:00:00:00:02;
}
then {
discard;
}
}
term router-advertise {
from {
destination-mac-address 33:33:00:00:00:01;
}
then {
discard;
}
}
term permit-all {
then {
accept;
}
}
}
}
}
See the Junos general notes.
set disable
show interfaces diagnostics optics [if]
show interfaces media [if]
(less info, only works if interface is up)*
means active/up): show vlans [vlan]
show vlans interface <interface>
show spanning-tree interface
(Although other series also support some form of virtual chassis, this section is targetet at EX switches.)
no-split-detection
to disable split-and-merge such that both switches may become primaries (although, one would likely be dead and avoid causing inconsistencies). But make sure to use preprovisioned mode with member IDs and serial numbers to avoid duplicate IDs when merging again. Make sure that the link doesn't fail as that would leave two primaries.no-split-detection
if using exactly two devices.show virtual-chassis
show chassis fpc
commit synchronize
set system commit synchronize
show virtual-chassis vc-port
request virtual-chassis vc-port delete pic-slot <pic-slot> port <port-number>
request virtual-chassis renumber
request virtual-chassis recycle
set virtual-chassis preprovisioned
set member 0 serial-number xxx role routing-engine
set member 1 serial-number xxx role routing-engine
set member 2 serial-number xxx role line-card
set virtual-chassis no-split-detection
set system commit synchronize
set chassis redundancy graceful-switchover
Virtual Chassis Fabric (VCF) evolves VC into a spine-and-leaf architecture. While VC focuses on simplified management, VCF focuses on improved data center connectivity. Only certain switches (like the QFX5100) support this feature.
{% include footer.md %}