3–Open-iSCSI User’s Guide
Managing QLogic iSCSI Adapters Using iscsiadm
3-10 IS0054604-00 A
Example: IPv4 Settings (static)Example: IPv4 Settings (DHCP)Example: IPv6 Settings (manual)Example: IPv6 Settings (neighbor discovery)
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 -o update -n
iface.ipaddress -v 192.168.2.214
qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 -o apply
qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 applied.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 -o update -n
iface.bootproto -v dhcp
qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 -o apply
qla4xxx.00:c0:dd:0b:13:f1.ipv4.0 applied.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o update -n
iface.ipaddress -v fec0:ce00:7014:0041:1111:2222:1e04:9392
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o update -n
iface.ipv6.linklocal -v fe80:0000:0000:0000:0000:0000:1e04:9392
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o update -n
iface.ipv6.router -v fe80:0000:0000:0000:7ae7:d1ff:fe72:4048
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o apply
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 applied.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o update -n
iface.ipv6.autocfg -v nd
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 updated.
# iscsiadm -m iface -I qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 -o apply
qla4xxx.00:c0:dd:0b:13:f1.ipv6.0 applied.