Configuring the IP interface
In order for iSCSI to function, the port's IP interface needs to be configured using network settings that you
can obtain from your network administrator. The portCfg commands are used to configure the following
parameters necessary for the iSCSI Target Gateway:
•
IP address, netmask, and MTU
•
IP routes
•
ARP resolution table
Creating the IP interface of the GbE port
Specify the IP interface on the GbE port using the portCfg command. You can define one IP interface per
GbE port. The syntax for this command is:
portcfg ipif [slot/][ge]port args
The following example shows an IP interface being created for slot 8 on GbE port ge0:
switch:admin> portcfg ipif 8/ge0 create 192.168.100.40 255.255.255.0 1500
Then verify the newly-created IP interface using the portShow command:
switch:admin> portshow ipif 8/ge0
Port: 8/ge0
Interface
----------------------------------------------------------
0
Adding IP routes on a GbE port (Optional)
After defining the IP interface of the remote switch, an IP route is automatically set up. You have the ability
to define additional destination routes on an IP interface.
You can add IP routes when you want to reach the destination IP of the remote site through a preferred
gateway IP. You can specify a maximum of 32 routes per GbE port. The syntax for this command is:
portcfg iproute [slot/][ge]port args
The gateway address must be on the same IP subnet as the port IP address.
The following example shows two routes being added to an interface:
switch:admin> portcfg iproute 8/ge0 create 192.168.101.0 255.255.255.0 192.168.100.1 1
switch:admin> portcfg iproute 8/ge0 create 192.168.102.0 255.255.255.0 192.168.100.1 1
Then verify that the two routes have been successfully created:
switch:admin> portshow iproute 8/ge0
Slot: 8 Port: ge0
IP Address
-------------------------------------------------------------------------------
192.168.100.0
192.168.100.0
192.168.101.0
192.168.102.0
116 Intelligent blades
IP Address
NetMask
192.168.100.40
255.255.255.0
Mask
Gateway
255.255.255.0
192.168.100.40
255.255.255.0
192.168.100.41
255.255.255.0
192.168.100.1
255.255.255.0
192.168.100.1
MTU
1500
Metric
Flags
0
Interface
0
Interface
1
1