-
Prevent CDC connections on non-NVMe/TCP interfaces and/or IP protocol. By default, nvme-stas will try to discover a CDC on all interfaces. Manually exclude interfaces used for non-NVMe/TCP traffic by editing the /etc/stas/stafd.conf file. Individual interfaces, and/or IP versions can be excluded. - To prevent a TCP session establishing with a CDC on individual interfaces, such as management or application ports, edit the/etc/stas/stafd.conf file. To verify that the no unwanted connections have established, run nvme list -v after enabling NVMe services.
lin02:/ # vi /etc/stas/stafd.conf
. . .
# Example:
# exclude = transport=tcp;traddr=fe80::2c6e:dee7:857:26bb # Eliminate a specific address
# exclude = host-iface=enp0s8 # Eliminate everything on this interface
#exclude=
exclude=@ host-iface= eth0
lin02:/ # cat /etc/stas/stafd.conf | grep exclude
. . .
# exclude = transport=tcp;traddr=fe80::2c6e:dee7:857:26bb # Eliminate a specific address
# exclude = host-iface=enp0s8 # Eliminate everything on this interface
exclude= host-iface= eth0
Note: You can use the command ip a to list all interfaces on the host in SLES 15.
Note: For complete syntax and usage, enter the command cat / etc/stas/stafd.conf.
- To prevent a TCP session establishing with a CDC on IPv4 or IPv6, specify which IP version(s) should be included in auto-discovery in the stafd.conf file. By default, both are enabled. The ip-family=ipv4 parameter will disable IPv6 discovery.
lin02:/ # vi /etc/stas/stafd.conf
…add the line: ip-family=ipv4
lin02:~ # cat /etc/stas/stafd.conf | grep ip-family
. . .
# ip-family: With this you can specify whether stafd will support IPv4, IPv6,
ip-family=ipv4
- When making changes to the config files (/etc/stas/stafd.conf or /etc/stas/stacd.conf), notify the corresponding service that changes were made. This can be done with the systemctl reload stafd or systemctl reload stacd command.
lin02:/ # systemctl reload stafd