3-4
Cisco SFS InfiniBand Host Drivers User Guide for Linux
OL-12309-01
Chapter 3 IP over IB Protocol
Subinterfaces
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Verify that you see the ib0.8002 output.
Step 6
Configure the new interface just as you would the parent interface. (See the
“Manually Configuring
IPoIB for Default IB Partition” section on page 3-2
.)
The following example shows how to configure the new interface:
host1#
ifconfig ib0.8002 192.168.12.1 netmask 255.255.255.0
Removing a Subinterface Associated with a Specific IB Partition
To remove a subinterface, perform the following steps:
Step 1
Take the subinterface offline. You cannot remove a subinterface until you bring it down.
The following example shows how to take the subinterface offline:
host1#
ifconfig ib0.8002 down
Step 2
Remove the value of the partition key to the file as root user.
The following example shows how to remove the partition 80:02 from the primary interface ib0:
host1#
/usr/local/topspin/sbin/ipoibcfg del ib0 80:02
Step 3
(Optional) Verify that the subinterface no longer appears in the interface list by entering the
ifconfig -a
command.
The following example shows how to verify that the subinterface no longer appears in the interface list:
host1#
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:48:20:D5:D1
inet addr:172.29.237.206 Bcast:172.29.239.255 Mask:255.255.252.0
inet6 addr: fe80::230:48ff:fe20:d5d1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9091465 errors:0 dropped:0 overruns:0 frame:0
TX packets:505050 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1517373743 (1.4 GiB) TX bytes:39074067 (37.2 MiB)
Base address:0x3040 Memory:dd420000-dd440000
ib0 Link encap:Ethernet HWaddr F8:79:D1:23:9A:2B
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::9879:d1ff:fe20:f4e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:2044 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:9 overruns:0 carrier:0
collisions:0 txqueuelen:1024
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ib0.8002 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:2044 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0