blob: 7af784bc143bd6d170e9ad932a87b480cddafadf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
#
# Example iSCSI interface config
#
# There must be a seperate iscsi interface config file for each NIC, network
# interface or port or iscsi HBA you want to bind sessions to.
#
# For hardware iscsi, this is created for you when you run iscsiadm.
# For software iscsi, you must define these files yourself.
#
# REQUIRED: iface.transport_name
#
# Set the iscsi transport/driver to use for the iface by setting
# iface.transport_name
# example:
# iface.transport_name = tcp
# This value is required and valid values for iface.transport_name are:
# - tcp (Software iSCSI over TCP/IP)
# - iser (Software iSCSI over infinniband
# - qla4xxx (Qlogic QLA4XXX HBAs)
# - bnx2i (Broadcom bnx iSCSI HBAs);
# - cxgb3i (Chelsio cxgb S3 iSCSI HBAs);
#
#OPTIONAL: iface.initiatorname
# To use a initiator name other than the one set in
# /etc/iscsi/initiatorname.iscsi for normal sessions set the
# iface.initiatorname. This is only used for normal sessions.
# For discovery sessions the /etc/iscsi/initiatorname.iscsi value
# is used.
#
# iface.initiatorname = iqn.2003-04.com.fedora:test
#
#
# REQUIRED to be able to bind a session to a network device:
# [iface.net_ifacename | iface.hwaddress]
#
# OPTIONAL if you are creating ifaces so you can create multiple sessions
# using the default behavior where the network layer selects the device.
#
# __One__ of the following values are required for binding a session
# to a specific nic/netdevice.
#
# To bind by network interface name (example: eth0, eth2:2, eth1.3)
# set iface.net_ifacename
# example:
# iface.net_ifacename = eth0
# To bind by hardware address set the NIC's MAC address to iface.hwaddress
# example:
# iface.hwaddress = 00:0F:1F:92:6B:BF
# Note you can only bind using one value. If you set multiple values
# the bahavior is not defined.
# For some transport (cxgb3i), a user could to set the private ip address for
# the iscsi traffic for an network interface:
# example:
# - set iscsi ip on eth0 to be 102.50.50.101, eth0 needs to be up and be on
# the same subnet.
# iface.net_ifacename = eth0
# iface.ipaddress = 102.50.50.101
# OPTIONAL: iface.bootproto
#
# Valid values are:
# "dhcp" and "static"
#
# REQUIRED when IPv4 address need to be obtained dynamically using DHCP
# example:
# iface.bootproto = dhcp
#
# OPTIONAL when the IPv4 address is set statically
# example:
# iface.ipaddress = 102.50.50.101
# iface.bootproto = static
#
# OPTIONAL: iface.vlan_id
# Used to set the VLAN ID for the iSCSI interfae.
# example
# iface.vlan_id = 1022
# OPTIONAL: iface.vlan_priority
# Used to set the VLAN priority for the iSCSI interfae.
# example
# iface.vlan_priority = 1
# OPTIONAL: iface.vlan_state
# Used to enable or disable the VLAN on the iSCSI interface
# example
# iface.vlan_state = enable
# OPTIONAL: iface.ipv6_linklocal
# Specify the IPV6 Link Local Address with the
# link local prefix of FE80::0/64
# example:
# iface.ipv6_linklocal = fe80:0000:0000:0000:020e:1eff:1111:2221
# OPTIONAL: iface.ipv6_router
# Used to set a default IPV6 router
# example:
# iface.ipv6_router = fe80:0000:0000:0000:7ae7:d1ff:fe72:4048
# OPTIONAL: iface.ipv6_autocfg
# Used to set the discovery protocol to obtain IPV6 address
# For example qla4xxx support neighbor discovery
# example:
# iface.ipv6_autocfg = nd
# OPTIONAL: iface.linklocal_autocfg
# For transport like qla4xxx this allows to auto configure the
# IPV6 link local address based on the MAC address of the iSCSI
# interface
# OPTIONAL: iface.router_autocfg
# Required to set the IPv6 router discovery protocol
# To set the router discovery protocol to Neighbor Discovery specify "nd"
# example:
# iface.router_autocfg = nd
# OPTIONAL: iface.state
# By default the iface is enabled
# iface.state = enable
# To disable the iface set the state to "disable"
# iface.state = disable
# iface.iface_num
# REQUIRED: When there are more than 1 interface to be configured.
# For transports like qla4xxx, one can specify two IPV6 interfaces
# in such case the iface_num must be set correctly
# example:
# iface settings for first IPV6 interface
# iface.iscsi_ifacename = iface-qla4xxx-ipv6-1
# iface.iface_num = 0
#
# iface settings for second IPV6 interface
# iface.iscsi_ifacename = iface-qla4xxx-ipv6-2
# iface.iface_num = 1
# Here are some example iface files
# IPV4 sample config file with static IP address:
# BEGIN RECORD 2.0-872
# iface.iscsi_ifacename = qla4xxx-3
# iface.ipaddress = 192.168.1.75
# iface.hwaddress = 00:0e:1e:04:93:92
# iface.transport_name = qla4xxx
# iface.bootproto = static
# iface.subnet_mask = 255.255.255.0
# iface.gateway = 192.168.1.1
# iface.state = enable
# iface.vlan = <empty>
# iface.iface_num = 0
# END RECORD
#
# IPV6 sample config file with neighbor discovery:
# BEGIN RECORD 2.0-872
# iface.iscsi_ifacename = qla4xxx-3-1
# iface.ipaddress =
# iface.hwaddress = 00:0e:1e:04:93:92
# iface.transport_name = qla4xxx
# iface.ipv6_autocfg = nd
# iface.linklocal_autocfg = auto
# iface.router_autocfg = nd
# iface.ipv6_linklocal = fe80:0000:0000:0000:020e:1eff:1111:2221
# iface.ipv6_router = auto
# iface.state = enable
# iface.vlan = <empty>
# iface.iface_num = 0
# END RECORD
# Ipv4 sample config file (DHCP configuration):
# BEGIN RECORD 2.0-872
# iface.iscsi_ifacename = qla4xxx-3
# iface.hwaddress = 00:0e:1e:04:93:92
# iface.transport_name = qla4xxx
# iface.bootproto = dhcp
# iface.state = enable
# iface.vlan = <empty>
# iface.iface_num = 0
# END RECORD
# Sample ipv6 config file(manual configured IPs):
# BEGIN RECORD 2.0-872
# iface.iscsi_ifacename = iface-new-file
# iface.ipaddress = fec0:ce00:7014:0041:1111:2222:1e04:9392
# iface.hwaddress = 00:0e:1e:04:93:92
# iface.transport_name = qla4xxx
# iface.ipv6_autocfg = <empty>
# iface.linklocal_autocfg = <empty>
# iface.router_autocfg = <empty>
# iface.ipv6_linklocal = fe80:0000:0000:0000:0000:0000:1e04:9392
# iface.ipv6_router = fe80:0000:0000:0000:7ae7:d1ff:fe72:4048
# iface.state = enable
# iface.vlan = <empty>
# iface.iface_num = 0
# END RECORD
|