Show Table of Contents
25.3.2. 新增一個 LCS 裝置
LAN channel station(LCS)裝置驅動程式支援 OSA-Express2 和 OSA-Express 3 功能上的 1000Base-T Ethernet。
根據所要加入的介面卡類型,LCS 驅動程式會指定一組基本介面卡名稱:
- OSA-Express Fast Ethernet 與 Gigabit Ethernet:ethn
其中若 n 為
0 就代表第一個該類型的裝置,1 則代表第二個裝置,由此類推。
25.3.2.1. 動態式新增 LCS 裝置
- 載入裝置的驅動程式:
# modprobe lcs - 請使用
cio_ignore指令來將網路頻道由被忽略的裝置清單中移除,並使其能讓 Linux 偵測到:# cio_ignore -r read_device_bus_id,write_device_bus_id將 read_device_bus_id 和 write_device_bus_id 取代為表示網路裝置的兩組裝置 bus ID。例如:# cio_ignore -r 0.0.09a0,0.0.09a1 - 建立群組裝置:
# echo read_device_bus_id,write_device_bus_id > /sys/bus/ccwgroup/drivers/lcs/group - 配置裝置。OSA 卡能為單一 CHPID 提供多達 16 組連接埠。就預設值,LCS 群組裝置會使用第
0號連接埠。若要採用其它連接埠,請使用類似以下的指令:# echo portno > /sys/bus/ccwgroup/drivers/lcs/device_bus_id/portno將 portno 取代為您希望使用的連接埠號。欲取得更多有關於 LCS 驅動程式上的配置資訊,請參閱 Linux on System z Device Drivers, Features, and Commands on Red Hat Enterprise Linux 6 中的 LCS 章節。 - 將裝置設為啟用:
# echo 1 > /sys/bus/ccwgroup/drivers/lcs/read_device_bus_id/online - 若要找出被指定的網路名稱為何,請輸入下列指令:
# ls -l /sys/bus/ccwgroup/drivers/lcs/read_device_bus_ID/net/ drwxr-xr-x 4 root root 0 2010-04-22 16:54 eth1

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.