Use this when a Fibre Channel port does not log into the fabric.
FLOGI
FLOGI (fabric login) is the first step when an N_Port joins a fabric: it logs into the switch and receives a 24-bit FC ID. Check it with show flogi database or switchshow.
1. FLOGI: N_Port logs into the fabric and gets an FCID.
2. Fails on speed mismatch, disabled port, bad SFP.
3. Switch port must be F_Port.
4. Check port config and logs.
5. NPIV uses FDISC for additional logins.
N_Port → FLOGI → FCID
Context & applicabilityCommon mistakes · platform/version boundaries
- Wrong port mode (forced E or TE on a host port).
- Port in the wrong VSAN or a VSAN that is suspended.
- Port security rejecting the WWPN.
- Speed set manually and mismatched.
Operational reference
Fast context before you go deeper.
show flogi database interface fc1/5Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checking FLOGI Verify boundary
show flogi database interface fc1/5 # Cisco MDS
nsshow # Brocade
cat /sys/class/fc_host/host1/port_state # host: Online
FLOGI failures: wrong port mode (E vs F), speed mismatch, port disabled/errdisabled, NPIV not enabled for NPV switches or virtual HBAs. Check port error counters and light levels.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- FLOGI gives the port an FC ID.
- No FLOGI means no fabric access.
- Speed or port configuration mismatches block it.
show flogi database interface fc1/1— FLOGI on portcat /sys/class/fc_host/host*/port_id— FCID assigneddmesg | grep -i -e flogi -e 'link up'— host log
ReferenceHow it works1 section · depth on demand
What FLOGI exchanges
The N_Port sends FLOGI to the well-known fabric address FFFFFE. The switch replies with an accept containing the port's assigned 24-bit FC ID (domain-area-port) and service parameters such as buffer-to-buffer credits and supported classes. Failures usually mean a speed, topology or port-mode mismatch, or the port being disabled or in the wrong VSAN.
ReferenceImportant terms & boundaries1 section · depth on demand
Worked example
Reading the result of a successful FLOGI on the switch (Cisco MDS):
show flogi database vsan 10
# INTERFACE VSAN FCID PORT NAME NODE NAME
# fc1/5 10 0x0a0100 21:00:00:24:ff:4c:7a:10 20:00:00:24:ff:4c:7a:10
The FCID 0x0a0100 encodes domain 0x0a (10), area 0x01, port 0x00. Documented example, not captured output.
On the host, cat /sys/class/fc_host/host1/port_id shows the same FCID, and port_state Online confirms the login. After FLOGI the port registers with the name server — show fcns database vsan 10 must list it with FC4 type scsi-fcp:init (host) or :target (array) before zoning can make it reachable.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Fibre Channel → FLOGI. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/what-is-fibre-channel · confidence 94%