22.6.2. 添​​​​​​​加​​​​​​​网​​​​​​​络​​​​​​​设​​​​​​​备​​​​​​​快​​​​​​​速​​​​​​​指​​​​​​​南​​​​​​​

为​​​​​​​ IBM System z 添​​​​​​​加​​​​​​​一​​​​​​​个​​​​​​​网​​​​​​​络​​​​​​​接​​​​​​​口​​​​​​​要​​​​​​​进​​​​​​​行​​​​​​​一​​​​​​​些​​​​​​​基​​​​​​​本​​​​​​​的​​​​​​​操​​​​​​​作​​​​​​​。​​​​​​​
  • 加​​​​​​​载​​​​​​​设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​程​​​​​​​序​​​​​​​。​​​​​​​
  • 创​​​​​​​建​​​​​​​组​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
  • 设​​​​​​​置​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
  • 在​​​​​​​线​​​​​​​设​​​​​​​置​​​​​​​设​​​​​​​备​​​​​​​:
  • 定​​​​​​​义​​​​​​​别​​​​​​​名​​​​​​​(如​​​​​​​果​​​​​​​需​​​​​​​要​​​​​​​)。​​​​​​​
  • 建​​​​​​​立​​​​​​​一​​​​​​​个​​​​​​​配​​​​​​​置​​​​​​​脚​​​​​​​本​​​​​​​。​​​​​​​
  • 激​​​​​​​活​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​的​​​​​​​章​​​​​​​节​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​关​​​​​​​于​​​​​​​添​​​​​​​加​​​​​​​每​​​​​​​个​​​​​​​ IBM System z 网​​​​​​​络​​​​​​​设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​的​​​​​​​基​​​​​​​本​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​

22.6.2.1. LCS 设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​

LAN 通​​​​​​​道​​​​​​​台​​​​​​​(LCS)设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​程​​​​​​​序​​​​​​​支​​​​​​​持​​​​​​​ OSA-2 Ethernet/Token Ring,OSA-Express Fast Ethernet 的​​​​​​​ non-QDIO 模​​​​​​​式​​​​​​​和​​​​​​​ OSA-Express High Speed Token Ring 的​​​​​​​ non-QDIO 模​​​​​​​式​​​​​​​。​​​​​​​对​​​​​​​于​​​​​​​ z990,LCS 驱​​​​​​​动​​​​​​​也​​​​​​​支​​​​​​​持​​​​​​​ Gigabit Ethernet 的​​​​​​​ non-QDIO 模​​​​​​​式​​​​​​​(包​​​​​​​括​​​​​​​ 1000Base-T)。​​​​​​​
根​​​​​​​据​​​​​​​被​​​​​​​加​​​​​​​入​​​​​​​的​​​​​​​接​​​​​​​口​​​​​​​类​​​​​​​型​​​​​​​,LCS 驱​​​​​​​动​​​​​​​分​​​​​​​配​​​​​​​以​​​​​​​下​​​​​​​两​​​​​​​个​​​​​​​接​​​​​​​口​​​​​​​名​​​​​​​中​​​​​​​的​​​​​​​一​​​​​​​个​​​​​​​: ethn 分​​​​​​​配​​​​​​​给​​​​​​​ OSA-Express Fast Ethernet,Gigabit Ethernet trn 分​​​​​​​配​​​​​​​给​​​​​​​ Token Ring,其​​​​​​​中​​​​​​​ n 是​​​​​​​一​​​​​​​个​​​​​​​唯​​​​​​​一​​​​​​​的​​​​​​​整​​​​​​​数​​​​​​​值​​​​​​​来​​​​​​​区​​​​​​​分​​​​​​​不​​​​​​​同​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​n 为​​​​​​​ 0 代​​​​​​​表​​​​​​​此​​​​​​​种​​​​​​​类​​​​​​​型​​​​​​​中​​​​​​​的​​​​​​​第​​​​​​​一​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​,1 为​​​​​​​第​​​​​​​ 2 个​​​​​​​设​​​​​​​备​​​​​​​,2 为​​​​​​​第​​​​​​​ 3 个​​​​​​​设​​​​​​​备​​​​​​​,以​​​​​​​此​​​​​​​类​​​​​​​推​​​​​​​。​​​​​​​
  • 加​​​​​​​载​​​​​​​设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​程​​​​​​​序​​​​​​​
    # modprobe lcs
  • 创​​​​​​​建​​​​​​​组​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
    # echo read_device_bus_id,write_device_bus_id >
    		/sys/bus/ccwgroup/drivers/lcs/group
    Due to the length of this command, it has been broken into two lines.
  • 设​​​​​​​置​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
    OSA卡​​​​​​​可​​​​​​​以​​​​​​​为​​​​​​​一​​​​​​​个​​​​​​​单​​​​​​​独​​​​​​​的​​​​​​​ CHPID 提​​​​​​​供​​​​​​​多​​​​​​​达​​​​​​​16个​​​​​​​端​​​​​​​口​​​​​​​。​​​​​​​在​​​​​​​缺​​​​​​​省​​​​​​​的​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,LCS 组​​​​​​​设​​​​​​​备​​​​​​​使​​​​​​​用​​​​​​​端​​​​​​​口​​​​​​​ 0。​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​如​​​​​​​下​​​​​​​相​​​​​​​似​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​为​​​​​​​它​​​​​​​分​​​​​​​配​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​端​​​​​​​口​​​​​​​:
    # echo portno > /sys/bus/ccwgroup/drivers/lcs/device_bus_id/portno
    想​​​​​​​了​​​​​​​解​​​​​​​更​​​​​​​多​​​​​​​的​​​​​​​关​​​​​​​于​​​​​​​配​​​​​​​置​​​​​​​ LCS 设​​​​​​​备​​​​​​​驱​​​​​​​动​​​​​​​程​​​​​​​序​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​,可​​​​​​​以​​​​​​​参​​​​​​​阅​​​​​​​以​​​​​​​下​​​​​​​内​​​​​​​容​​​​​​​:
    http://www- 128.ibm.com/developerworks/linux/linux390/october2005_documentation.html#3 (Linux for IBM System z and S/390 Device Drivers, Features, and Commands)
  • 设​​​​​​​置​​​​​​​设​​​​​​​备​​​​​​​在​​​​​​​线​​​​​​​:
    # echo 1 > /sys/bus/ccwgroup/drivers/lcs/read_device_bus_id/online
  • 定​​​​​​​义​​​​​​​别​​​​​​​名​​​​​​​。​​​​​​​
    根​​​​​​​据​​​​​​​添​​​​​​​加​​​​​​​接​​​​​​​口​​​​​​​的​​​​​​​类​​​​​​​型​​​​​​​而​​​​​​​定​​​​​​​,在​​​​​​​ /etc/modprobe.conf 文​​​​​​​件​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​和​​​​​​​以​​​​​​​下​​​​​​​其​​​​​​​中​​​​​​​一​​​​​​​行​​​​​​​类​​​​​​​似​​​​​​​的​​​​​​​内​​​​​​​容​​​​​​​:
    ethn alias lcs
    trn alias lcs
  • 建​​​​​​​立​​​​​​​一​​​​​​​个​​​​​​​配​​​​​​​置​​​​​​​脚​​​​​​​本​​​​​​​。​​​​​​​
    在​​​​​​​ /etc/sysconfig/network-scripts/ 中​​​​​​​创​​​​​​​建​​​​​​​一​​​​​​​个​​​​​​​文​​​​​​​件​​​​​​​,使​​​​​​​用​​​​​​​类​​​​​​​似​​​​​​​以​​​​​​​下​​​​​​​的​​​​​​​名​​​​​​​字​​​​​​​:
    ifcfg-ethn
    ifcfg-trn
    该​​​​​​​文​​​​​​​件​​​​​​​应​​​​​​​该​​​​​​​类​​​​​​​似​​​​​​​如​​​​​​​下​​​​​​​:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    # IBM LCS
    DEVICE=eth0
    BOOTPROTO=static
    HWADDR=00:06:29:FB:5F:F1
    IPADDR=9.12.20.136
    NETMASK=255.255.255.0
    ONBOOT=yes
    NETTYPE=lcs
    SUBCHANNELS=0.0.09a0,0.0.09a1
    PORTNAME=0
    TYPE=Ethernet
    根​​​​​​​据​​​​​​​添​​​​​​​加​​​​​​​接​​​​​​​口​​​​​​​的​​​​​​​类​​​​​​​型​​​​​​​而​​​​​​​定​​​​​​​,DEVICE 参​​​​​​​数​​​​​​​应​​​​​​​该​​​​​​​是​​​​​​​以​​​​​​​下​​​​​​​之​​​​​​​一​​​​​​​:
    DEVICE=ethn
    DEVICE=trn
  • 激​​​​​​​活​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
    根​​​​​​​据​​​​​​​添​​​​​​​加​​​​​​​接​​​​​​​口​​​​​​​的​​​​​​​类​​​​​​​型​​​​​​​而​​​​​​​定​​​​​​​,使​​​​​​​用​​​​​​​一​​​​​​​种​​​​​​​ ifup 命​​​​​​​令​​​​​​​:
    # ifup ethn
    # ifup trn

为了尽快向用户提供最新的信息,本文档可能会包括由机器自动从英文原文翻译的内容。如需更多信息,请参阅此说明。