This content has been marked as final. Show 7 replies
1) Edit the file: /etc/sysconfig/iscsi-target
2) Enter the following in a separate line: LISTEN_ADDR=<ip you want to restrict iSCSI traffic to>
3) Restart the iSCSI target service: service iscsi-target restart
By the way, you shouldn't have multiple IP addresses on the same subnet as the kernel will decide where traffic goes out from even though you want to restrict to a certain IP/interface. You should consider using separate subnets for management and iSCSI traffic. Par exemple:
management == 192.168.2.100
iSCSI == 192.168.3.100
Edited by: 1008019 on May 26, 2013 12:35 AM
Edited by: 1008019 on May 26, 2013 12:36 AM
Thanks a lot for your info. It worked for me.
I've different subnets for both public and private IP's. (192.168.1.100 -- Public and 192..168.2.100 -- Private).
If I keep on increasing nodes, I need to add each server IP manually in /etc/sysconfig/iscsi-target file... can we avoid this?