• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Prayer

            在一般中尋求卓越
            posts - 1256, comments - 190, trackbacks - 0, articles - 0
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            AIX5L網卡治理與配置

            Posted on 2009-05-12 11:12 Prayer 閱讀(571) 評論(0)  編輯 收藏 引用 所屬分類: LINUX/UNIX/AIX
            Piner寫過一篇文章介紹AIX中網卡的治理和配置,這里想補充一些相關的信息。本文中所有試驗都基于AIX 5.3。

              AIX中查看零碎中的網卡設備

            #lsdev -Cc adapter | grep ent
            ent0   Available 00-08 10/100/1000 Base-TX PCI-X Adapter (14106902)
            ent1   Available 07-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
            ent2   Available 07-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
            ent3   Available 0B-08 10/100/1000 Base-TX PCI-X Adapter (14106902)
            ent4   Available   EtherChannel / IEEE 802.3ad Link Aggregation

              從上面可以看出,零碎中共有四塊網卡(ent0~ent3,而ent4是由多塊網卡綁定出來的虛擬網卡EtherChannel,關于網卡綁定,請參考piner的另一篇文章。

              那么,四塊網卡具體是插在哪個插槽上的呢?

            #lsslot -c pci | grep entU787B.001.DNW6FCB-P1-C2 PCI-X capable, 64 bit, 133MHz slot ent3
            U787B.001.DNW6FCB-P1-C3 PCI-X capable, 64 bit, 266MHz slot ent0

              上述命令顯示的是插在PCI插槽上的兩塊網卡,都是在第一個PCI籠子中,分別在第二個和第三個插槽。另外兩塊則是主板上內置的網卡,不是插在PCI槽上的。

            #lscfg -v | grep ent
            Model Implementation: Multiple Processor, PCI bus
            ent1 U787B.001.DNW6FCB-P1-T9 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
            ent2 U787B.001.DNW6FCB-P1-T10 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
            ent3 U787B.001.DNW6FCB-P1-C2-T1 10/100/1000 Base-TX PCI-X Adapter (14106902)
            ent0 U787B.001.DNW6FCB-P1-C3-T1 10/100/1000 Base-TX PCI-X Adapter (14106902)

            AIX中,一個網卡在零碎中實際上可以看到兩個設備接口,en開頭的是Ethernet II標準的,et開頭的是IEEE 802.3標準的。以太網的幀有兩種標準:Ethernet II(或者叫Standard Ethernet)和IEEE802.3,兩者主要是標志幀的下層協議的方式不一樣,Ethernet II使用了一個TYPE值表示,而IEEE802.3則使用一個數據LENGTH表示。一般來說,Ethernnet II更常用。

            #lsdev -Cc if
            en0 Defined 00-08 Standard Ethernet Network Interface
            en1 Defined 07-08 Standard Ethernet Network Interface
            en2 Defined 07-09 Standard Ethernet Network Interface
            en3 Defined 0B-08 Standard Ethernet Network Interface
            en4 Available   Standard Ethernet Network Interface
            et0 Defined 00-08 IEEE 802.3 Ethernet Network Interface
            et1 Defined 07-08 IEEE 802.3 Ethernet Network Interface
            et2 Defined 07-09 IEEE 802.3 Ethernet Network Interface
            et3 Defined 0B-08 IEEE 802.3 Ethernet Network Interface
            et4 Defined    IEEE 802.3 Ethernet Network Interface
            lo0 Available   Loopback Network Interface

              其中lo0表示本地回環接口,也就是127.0.0.1

              查看某塊網卡的具體屬性

            #lsattr -El ent1
            alt_addr  0x000000000000 Alternate ethernet address        True
            busintr   273      Bus interrupt level            False
            busmem   0xf8120000  Bus memory address            False
            chksum_offload yes    Enable hardware transmit and receive checksum True
            compat_mode no     Gigabit Backward compatability      True
            copy_bytes 2048     Copy packet if this many or less bytes  True
            delay_open no     Enable delay of open until link state is known True
            failback  yes      Enable auto failback to primary      True
            failback_delay 15     Failback to primary delay timer      True
            failover  disable    Enable failover mode           True
            flow_ctrl  yes      Enable Transmit and Receive Flow Control True
            intr_priority 3      Interrupt priority            False
            intr_rate  10000    Max rate of interrupts generated by adapter  True
            jumbo_frames no     Transmit jumbo frames           True
            large_send yes     Enable hardware TX TCP resegmentation   True
            media_speed Auto_Negotiation Media speed               True
            rom_mem  0xf80c0000  ROM memory address            False
            rx_hog  1000     Max rcv buffers processed per rcv interrupt  True
            rxbuf_pool_sz 2048    Rcv buffer pool, make 2X rxdesc_que_sz  True
            rxdesc_que_sz 1024    Rcv descriptor queue size         True
            slih_hog   10    Max Interrupt events processed per interrupt True
            tx_que_sz   8192    Software transmit queue size       True
            txdesc_que_sz 512     TX descriptor queue size         True
            use_alt_addr no     Enable alternate ethernet address     True

              查看某個網卡設備接口的屬性

            #lsattr -El en0
            alias4      IPv4 Alias including Subnet Mask     True
            alias6      IPv6 Alias including Prefix Length    True
            arp     on Address Resolution Protocol (ARP)     True
            authority     Authorized Users             True
            broadcast     Broadcast Address             True
            mtu     1500 Maximum IP Packet Size for This Device  True
            netaddr      Internet Address             True
            netaddr6     IPv6 Internet Address           True
            netmask      Subnet Mask                True
            prefixlen     Prefix Length for IPv6 Internet Address  True
            remmtu    576 Maximum IP Packet Size for REMOTE Networks True
            rfc1323      Enable/Disable TCP RFC 1323 Window Scaling True
            security   none Security Level              True
            state    down Current Interface Status         True
            tcp_mssdflt    Set TCP Maximum Segment Size       True
            tcp_nodelay    Enable/Disable TCP_NODELAY Option     True
            tcp_recvspace   Set Socket Buffer Space for Receiving   True
            tcp_sendspace   Set Socket Buffer Space for Sending    True
              #lsattr -El et0
            alias4      IPv4 Alias including Subnet Mask     True
            alias6      IPv6 Alias including Prefix Length    True
            arp     on Address Resolution Protocol (ARP)     True
            authority     Authorized Users             True
            broadcast     Broadcast Address             True
            mtu     1492 Maximum IP Packet Size for This Device  True
            netaddr      Internet Address             True
            netaddr6     IPv6 Internet Address           True
            netmask      Subnet Mask                True
            prefixlen     Prefix Length for IPv6 Internet Address  True
            remmtu    576 Maximum IP Packet Size for REMOTE Networks True
            rfc1323      Enable/Disable TCP RFC 1323 Window Scaling True
            security   none Security Level              True
            state    down Current Interface Status         True
            tcp_mssdflt    Set TCP Maximum Segment Size       True
            tcp_nodelay    Enable/Disable TCP_NODELAY Option     True
            tcp_recvspace   Set Socket Buffer Space for Receiving   True
            tcp_sendspace   Set Socket Buffer Space for Sending    True

              修改接口屬性,比如設置IP和子網掩碼

              #chdev -l en1 -a netaddr='192.168.1.1' -a netmask='255.255.255.0'

              而ifconfig只能查看和修改網線已經連接好的網卡信息

              #ifconfig -a
            en4: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD,PSEG,CHAIN>
                inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
                 tcp_sendspace 131072 tcp_recvspace 65536
            lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
                inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
                inet6 ::1/0
                 tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

              假如使用ifconfig操作沒有連接網絡的網卡則會報錯

              #ifconfig en1 up
            0821-510 ifconfig: error calling entry point for /usr/lib/drivers/if_en: The specified device does not exist.
              smit操作網卡相關命令
              smit mkinet添加新的網卡接口
              smit chinet配置網卡接口
              smit tcpip配置tcpip網絡
              smit mktcpip配置IP地址
              smit chgenet配置網卡設備
              smit rminet刪除網卡接口
              smit etherchannel配置網卡綁定
              smit inet配置網卡接口,包括mkinet,chinet,rminet等命令入口

              作者:NinGoo | 【轉載時請務必以超鏈接形式標明文章原始出處和作者信息及本聲明】

              地址:http://www.ningoo.net/html/2007/aix_5l_network_interface.html

            一本久久a久久精品vr综合| 国产成人精品久久亚洲| 亚洲精品成人久久久| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 无遮挡粉嫩小泬久久久久久久| 亚洲色欲久久久综合网| 欧美亚洲另类久久综合| 色99久久久久高潮综合影院| 久久99久国产麻精品66 | 91精品国产91久久久久久蜜臀| 99久久精品国产一区二区三区 | 久久国产亚洲高清观看| 国产成人精品久久| 亚洲国产精品高清久久久| 激情五月综合综合久久69| 久久精品国产亚洲AV忘忧草18| 热久久这里只有精品| 亚洲人成网站999久久久综合 | 久久笫一福利免费导航 | 亚洲国产另类久久久精品小说| 72种姿势欧美久久久久大黄蕉| 久久久久国产日韩精品网站| 无码人妻久久一区二区三区免费| 国产精品99久久久久久董美香| 一本一本久久aa综合精品| 97r久久精品国产99国产精| 东方aⅴ免费观看久久av| 久久精品成人免费观看97| 久久久精品久久久久影院| 日韩久久久久中文字幕人妻 | 99999久久久久久亚洲| 99蜜桃臀久久久欧美精品网站| 欧美国产精品久久高清| 久久高潮一级毛片免费| 国产精品久久久久9999高清| 国产精品99久久久精品无码| 久久久精品人妻无码专区不卡 | 国产Av激情久久无码天堂| 2021最新久久久视精品爱| 日本精品一区二区久久久| 亚洲人成无码网站久久99热国产|