IBM小型机AIX下修改网卡的速率
作者:互联网
AIX下修改网卡的速率:
-----------------------------------------------------
方案一:通过命令行模式修改
(1)AIX系统版本:通过#oslevel
5.3.0.0
(2)具体操作过程和解释
a、查看网卡速率
#netstat -v ent0 | grep -p "Specific Statistics" IBM 10/100 Mbps Ethernet PCI Adapter Specific Statistics: ------------------------------------------------ Chip Version: 25 RJ45 Port Link Status : up Media Speed Selected: Auto negotiation Media Speed Running: 100 Mbps Full Duplex #<--------当前网卡速率 Receive Pool Buffer Size: 384 Free Receive Pool Buffers: 128 No Receive Pool Buffer Errors: 0 Inter Packet Gap: 96 Adapter Restarts due to IOCTL commands: 1 Packets with Transmit collisions: 1 collisions: 0 6 collisions: 0 11 collisions: 0 2 collisions: 0 7 collisions: 0 12 collisions: 0 3 collisions: 0 8 collisions: 0 13 collisions: 0 4 collisions: 0 9 collisions: 0 14 collisions: 0 5 collisions: 0 10 collisions: 0 15 collisions: 0 Excessive deferral errors: 0x0
b、更改网卡速率(网卡必须处于down模式)
chdev -l 'ent0' -a media_speed='100M_Full_Duplex'
注:网卡工作方式有以下几种:
10_Half_Duplex
10_Full_Duplex
100_Half_Duplex
100_Full_Duplex
1000_Half_Duplex(千兆网卡才有此选项)
1000_Full_Duplex(千兆网卡才有此选项)
Auto_Negotiation
-----------------------------------------------------------------------------
方案二:通过smitty交换方式
(1)通过smitty删除网卡
a.# smitty inet Move cursor to desired item and press Enter. List All Network Interfaces Add a Network Interface Change / Show Characteristics of a Network Interface Remove a Network Interface PVCs for IP over an ATM Network Configure Aliases b.选择Remove a Network Interface Move cursor to desired item and press Enter. en0 11-08 Standard Ethernet Network Interface en1 40-58 Standard Ethernet Network Interface et0 11-08 IEEE 802.3 Ethernet Network Interface et1 40-58 IEEE 802.3 Ethernet Network Interface
c. 要删除的网卡
d. #cfgmgr
(2)通过smitty添加网卡
a. #smitty ethernet
Move cursor to desired item and press Enter.
Adapter
Services
User Applications
b.选择Adapter
Move cursor to desired item and press Enter.
List All Ethernet Adapters
Change / Show Characteristics of an Ethernet Adapter
Generate Error Report
Trace an Ethernet Adapter
c.选择Change / Show Characteristics of an Ethernet Adapter
Move cursor to desired item and press Enter.
ent0 Available 11-08 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
ent1 Available 40-58 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
d.选择要修改的网卡
ent0 Available 11-08 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] Ethernet Adapter ent0 Description IBM 10/100 Mbps Ethernet PCI Adapter (23100020) Status Available Location 11-08 TRANSMIT queue size [8192] HARDWARE RECEIVE queue size [256] RECEIVE buffer pool size [384] Media Speed 10_Full_Duplex #<-----选中 Media Speed 10_Full_Duplex 进行修改 Inter-Packet Gap [96] Enable ALTERNATE ETHERNET address no ALTERNATE ETHERNET address [0x000000000000] Enable Link Polling no Time interval for Link Polling [500] Apply change to DATABASE only no
标签:10,IBM,Adapter,小型机,网卡,Interface,Ethernet,Network 来源: https://blog.51cto.com/sf1314/2474734