Chinaunix首页 | 论坛 | 博客
  • 博客访问: 302630
  • 博文数量: 60
  • 博客积分: 2579
  • 博客等级: 大尉
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-17 14:54
文章分类

全部博文(60)

文章存档

2011年(1)

2010年(1)

2009年(35)

2008年(23)

分类:

2009-03-17 09:29:19

Modifications you make with the lan_config command do not persist across
reboots of the operating system.  To configure the interface or modify the
parameters automatically each time the system is booted, edit the
inet.local file and add the lan_config command entries to it.
You can also use the ifconfig command to set the speed and mode (half- or
full-duplex) either from the command line or in the inet.local file.  If
you specify the command in the inet.local file, the command is executed
each time the system is booted.
When you are finished making low-level configuration changes with either
the lan_config command or the ifconfig command, you can use the hwmgr util-
ity to verify these changes. See the EXAMPLES section of this reference
page for more information.
 
EXAMPLES
   1.  To switch from aui or bnc to utp full-duplex operation on tu0, enter:
            lan_config -i tu0 -m utp -x 1
   2.  To disable full-duplex operation on tu0, enter:
            lan_config -i tu0 -x 0
   3.  To enable autonegotiation on tu1, limiting capability to 100 Mb/s,
       half-duplex operation, enter:
            lan_config -i tu1 -a 1 -s 100 -x 0
   4.  To disable autonegotiation on tu1, forcing 10 Mb/s, half-duplex opera-
       tion, enter:
            lan_config -i tu1 -a 0 -s 10 -x 0
 
 You can use the hwmgr utility to verify the parameters that you change with
 the lan_config and ifconfig commands. The following command displays
 hardware information, low-level configuration settings, and statistics
 counters for all of the physical network adapters installed on your system:
      # hwmgr get attribute -category network
      18:
        name = ee0
        category = network
        sub_category = Ethernet
        model = Intel 82558
      .
      .
      19:
        name = ee1
        category = network
        sub_category = Ethernet
        model = Intel 82558
      .
      .
      56:
        name = ee2
       category = network
       sub_category = Ethernet
       model = Intel 82559
     .
     .
 
 Each adapter is preceded by a unique hardware identifier, such as 18, 19,
 or 56 in the previous example. If necessary, you can use this identifier to
 display information for a specific card, as follows:
      # hwmgr get attribute -id 18
      18:
        name = ee0
        category = network
        sub_category = Ethernet
        model = Intel 82558
        hardware_rev = 5
        firmware_rev =
        MAC_address = 00-08-02-3E-C5-A5
        MTU_size = 1500
        media_speed = 10
        media_selection = Automatic
        media_type = Unshielded Twisted Pair (UTP)
        loopback_mode = 0
        promiscuous_mode = 0
        full_duplex = 0
        multicast_address_list = CF-00-00-00-00-00 01-00-5E-00-00-01 \
                                 33-33-FF-3E-C5-A5 33-33-00-00-00-01 \
                                 09-00-2B-00-00-0F 09-00-2B-02-01-04
        interface_number = 1
        link = Up
        autoneg_enable = 1
      .
      .
 For more information about the hwmgr utility, see Hardware Management and
 hwmgr(8).
阅读(1343) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~