Skip to content

How to connect to a target

Daniel Wagner edited this page Jan 13, 2025 · 4 revisions

Connect (IPv4)

TCP (IPv4)

Example

Connect to target via eth0 to remote target 192.168.1.10 on port 4420.

$ nvme connect -t tcp -a 192.168.1.10 -s 4420 --host-iface=eth0 -n nqn.io-1 --hostnqn nqn.2014-08.com.example:nvme.1

Connect (IPv6)

RDMA (IPv6)

nvme connect arguments that may need IPv6 considerations. A scoped address suffixes the IP address with "%".

[ --traddr=, -a ] --- transport address. Use scoped address for RDMA over IPv6, e.g. fe80::020c:caff:fe12:2a0c%enp129s0f0np0
[ --host-iface=, -f ] --- host interface (for tcp transport only. Do not use for RDMA over IPv6)
[ --host-traddr=, -w ] --- host traddr (e.g. FC WWN's). Do not use for RDMA over IPv6

Example

$ nvme connect -t rdma -s 4420 -a fe80::020c:caff:fe12:2a0c%enp129s0f0np0 -i 2 -n nqn.2014-08.com.example:nvme.1

TCP (IPv6)

Clone this wiki locally