免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 983 | 回复: 0
打印 上一主题 下一主题

Ethernet Card Tips [复制链接]

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-13 21:58 |只看该作者 |倒序浏览

Installing an Ethernet Card
To install an additional Ethernet interface (let's call it le1):
1) Put the card in and from the ok> prompt do a boot -r
1) create /etc/hostname.le1 that contains the host name
2) make the interface known to the system:
ifconfig le1 plumb
3) configure the interface:
ifconfig le1 up netmask + broadcast +
4) test the connection
Sun Network Interface Duplex
Checking and setting the link parameters of Sun hme network interfaces requires the use of the ndd command. The procedure for qfe interfaces is similar, except that the instance must be specified. For example, the Sun QuadFast Ethernet card would have instances 0-3: qfe0, qfe1, qfe2, qfe3.
Checking the current running speed(s):
Choose the interface instance:
# ndd -set /dev/qfe instance 0
That selects the first instance: qfe0. Note that the default instance is 0.
Check the status, speed & mode:
# ndd -get /dev/qfe link_status
1 = up
0 = down
# ndd -get /dev/qfe link_speed
1 = 100 Mb
0 = 10 Mb
# ndd -get /dev/qfe link_mode
1 = Full Duplex (FDX)
0 = Half Duplex (HDX)

Hot to configure individual interfaces via ndd commands:
These commands are usually placed in a startup script such as /etc/rc2.d/S99qfe.
Hot to force 100Mbs Full Duplex (FDX) on qfe1:
ndd -set /dev/qfe instance 1
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0

It is important to run these commands in the above order. The link will be renegotiated when the final command is run.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/524/showart_84850.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP