实验环境:准备两台虚拟机,分别都手动分配IP
首先在server端操作
[root@localhost log]# yum -y install targetd targetcli
[root@localhost log]# systemctl start target
[root@localhost log]# systemctl enable target
[root@localhost log]# systemctl status target
● target.service - Restore LIO kernel target configuration
Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; vendor preset: disabled)
Active: active (exited) since 四 2022-04-28 20:20:36 CST; 8min ago
Main PID: 6741 (code=exited, status=0/SUCCESS)
4月 28 20:20:36 localhost.localdomain systemd[1]: Starting Rest...
4月 28 20:20:36 localhost.localdomain target[6741]: No saved co...
4月 28 20:20:36 localhost.localdomain systemd[1]: Started Resto...
Hint: Some lines were ellipsized, use -l to show in full.
设置防火墙
[root@localhost log]# firewall-cmd --add-port=3260/tcp --permanent
success
[