Specifying the relative port number
Use the portno attribute to specify the relative port number.
Before you begin
- This description applies to network adapters that, per CHPID, show more than one port to Linux®.
- The device must be offline while you specify the relative port number.
Procedure
By default, the qeth group device uses port 0.
To use a different port, issue a command of the form:
# chzdev <device_bus_id> portno=<integer>
Where <integer> is either 0 or 1. This setting persists across re-boots. For more details, see Persistent device configuration.To apply this setting to
the running system only, use the chzdev command with the -a
option or the sysfs attribute
portno:
# echo <integer> > /sys/bus/ccwgroup/drivers/qeth/<device_bus_id>/portno
Example
# chzdev 0.0.a000 portno=1
or, using
sysfs:# echo 1 > /sys/bus/ccwgroup/drivers/qeth/0.0.a000/portno