• <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++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            AIX5L網(wǎng)卡治理與配置

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

              AIX中查看零碎中的網(wǎng)卡設(shè)備

            #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

              從上面可以看出,零碎中共有四塊網(wǎng)卡(ent0~ent3,而ent4是由多塊網(wǎng)卡綁定出來(lái)的虛擬網(wǎng)卡EtherChannel,關(guān)于網(wǎng)卡綁定,請(qǐng)參考piner的另一篇文章。

              那么,四塊網(wǎng)卡具體是插在哪個(gè)插槽上的呢?

            #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插槽上的兩塊網(wǎng)卡,都是在第一個(gè)PCI籠子中,分別在第二個(gè)和第三個(gè)插槽。另外兩塊則是主板上內(nèi)置的網(wǎng)卡,不是插在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中,一個(gè)網(wǎng)卡在零碎中實(shí)際上可以看到兩個(gè)設(shè)備接口,en開(kāi)頭的是Ethernet II標(biāo)準(zhǔn)的,et開(kāi)頭的是IEEE 802.3標(biāo)準(zhǔn)的。以太網(wǎng)的幀有兩種標(biāo)準(zhǔn):Ethernet II(或者叫Standard Ethernet)和IEEE802.3,兩者主要是標(biāo)志幀的下層協(xié)議的方式不一樣,Ethernet II使用了一個(gè)TYPE值表示,而IEEE802.3則使用一個(gè)數(shù)據(jù)LENGTH表示。一般來(lái)說(shuō),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

              其中l(wèi)o0表示本地回環(huán)接口,也就是127.0.0.1

              查看某塊網(wǎng)卡的具體屬性

            #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

              查看某個(gè)網(wǎng)卡設(shè)備接口的屬性

            #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

              修改接口屬性,比如設(shè)置IP和子網(wǎng)掩碼

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

              而ifconfig只能查看和修改網(wǎng)線已經(jīng)連接好的網(wǎng)卡信息

              #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操作沒(méi)有連接網(wǎng)絡(luò)的網(wǎng)卡則會(huì)報(bào)錯(cuò)

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

              作者:NinGoo | 【轉(zhuǎn)載時(shí)請(qǐng)務(wù)必以超鏈接形式標(biāo)明文章原始出處和作者信息及本聲明】

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

            久久精品一区二区| 久久久国产精品福利免费| 品成人欧美大片久久国产欧美| 99久久精品国产一区二区| 精品久久久久久国产潘金莲| 亚洲精品国产美女久久久| 久久久www免费人成精品| 久久久久久久久久久| 狠狠综合久久AV一区二区三区| 久久这里只精品99re66| 一本大道久久东京热无码AV | 久久99精品国产99久久6男男| 日本人妻丰满熟妇久久久久久| 亚洲va久久久噜噜噜久久男同| 久久九九精品99国产精品| 91精品国产91久久综合| 久久夜色tv网站| 久久伊人影视| 亚洲AV日韩精品久久久久| 国产99久久精品一区二区| 国产日韩久久免费影院| 亚洲人成无码网站久久99热国产| 久久精品国产亚洲AV蜜臀色欲| 久久精品中文闷骚内射| 99精品久久久久久久婷婷| 欧美日韩精品久久久久| 久久久女人与动物群交毛片| 日本免费一区二区久久人人澡 | 99精品伊人久久久大香线蕉| 久久国产乱子伦精品免费午夜| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久这里只有精品18| 久久99九九国产免费看小说| 国产综合久久久久| 亚洲国产成人久久一区久久| 久久精品国产亚洲AV电影| 久久综合成人网| 日本一区精品久久久久影院| 久久夜色精品国产噜噜亚洲a| 久久免费视频观看| 久久综合久久自在自线精品自|