十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
AIX Study之--AIX网卡配置管理(ent0、en0、et0)
专注于为中小企业提供做网站、网站设计服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业金华免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了1000多家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。1、查看AIX系统网卡信息:
[root@aix211 /]#lsdev |grep et
en0 Available 1L-08 Standard Ethernet Network Interface en1 Available 14-08 Standard Ethernet Network Interface en2 Defined 1D-08 Standard Ethernet Network Interface ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent1 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent2 Available 1D-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) et0 Defined 1L-08 IEEE 802.3 Ethernet Network Interface et1 Defined 14-08 IEEE 802.3 Ethernet Network Interface et2 Defined 1D-08 IEEE 802.3 Ethernet Network Interface由此可以看出:
ent1之类的是物理网卡的设备名,en0或是et0是网络接口名(逻辑上的),enx(x是一个数字,代表第几块网卡)是标准以太网接口,et0是IEEE 802.3以太网接口。
en0是Ethernet II protocal interface
et0是802.3 protocal interface
ent0是Hardware device interface
2、查看网卡属性:
[root@aix211 /]#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 192.168.8.211 Internet Address True netaddr6 IPv6 Internet Address True netmask 255.255.255.0 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 up 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[root@aix211 /]#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[root@aix211 /]#lsattr -El ent0 alt_addr 0x000000000000 Alternate Ethernet Address True busintr 85 Bus interrupt level False busmem 0xc8030000 Bus memory address False chksum_offload yes Enable hardware transmit and receive checksum True intr_priority 3 Interrupt priority False ipsec_offload no IPsec Offload True large_send yes Enable TCP Large Send Offload True media_speed Auto_Negotiation Media Speed True poll_link no Enable Link Polling True poll_link_timer 500 Time interval for Link Polling True rom_mem 0xc8000000 ROM memory address False rx_hog 1000 RX Descriptors per RX Interrupt True rxbuf_pool_sz 1024 Receive Buffer Pool Size True rxdesc_que_sz 512 RX Descriptor Queue Size True slih_hog 10 Interrupt Events per Interrupt True tx_preload 1520 TX Preload Value True tx_que_sz 8192 Software TX Queue Size True txdesc_que_sz 512 TX Descriptor Queue Size True use_alt_addr no Enable Alternate Ethernet Address True [root@aix211 /]#3、查看网卡配置:
[root@aix211 /]#lscfg -vpl en0 [root@aix211 /]#lscfg -vpl et0 [root@aix211 /]#lscfg -vpl ent0 ent0 U0.1-P1/E2 10/100 Mbps Ethernet PCI Adapter II (1410ff01) 10/100 Mbps Ethernet PCI Adapter II: Network Address.............000255CF1406 ROM Level.(alterable).......SCU015 Product Specific.(Z0).......A5204205 Hardware Location Code......U0.1-P1/E2 PLATFORM SPECIFIC Name: ethernet Node: ethernet@1 Device Type: network Physical Location: U0.1-P1/E2Physical Location的位置可以判断网卡是否是插在PCI接口上的
[root@aix211 /]#lsslot -c pci
# Slot Description Device(s) U0.1-P2-I1 PCI-X capable, 64 bit, 133MHz slot Empty U0.1-P2-I2 PCI-X capable, 64 bit, 133MHz slot Empty U0.1-P2-I3 PCI-X capable, 64 bit, 133MHz slot fcs0 U0.1-P2-I4 PCI-X capable, 64 bit, 133MHz slot Empty U0.1-P2-I5 PCI-X capable, 64 bit, 133MHz slot ent2 U0.1-P2-I6 PCI-X capable, 64 bit, 133MHz slot Empty[root@aix211 /]#lscfg -vpl ent2
ent2 U0.1-P2-I5/E1 10/100 Mbps Ethernet PCI Adapter II (1410ff01) 10/100 Mbps Ethernet PCI Adapter II: Part Number.................09P5023 FRU Number..................09P5023 EC Level....................H10971A Manufacture ID..............YL1021 Network Address.............000255AF8DAD ROM Level.(alterable).......SCU004 Product Specific.(Z0).......A5204205 Hardware Location Code......U0.1-P2-I5/E1--- 可以看出,ent2是插在pci插槽上
物理设备和逻辑设备
1、物理设备是指以某种方式与计算机系统相连的实际硬件。例如显示器、终端、磁带机等。
2、逻辑设备是用户或应用程序访问物理设备的界面,用户或应用程序通过逻辑设备来访问物理设备。
3、在很多情况下,一个物理设备会对应多个逻辑设备
查看物理设备:
[root@aix211 /]#lsdev -Cc adapter ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent1 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent2 Available 1D-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) fcs0 Available 1n-08 FC Adapter查看逻辑设备:
[root@aix211 /]#lsdev -Cc if en0 Available 1L-08 Standard Ethernet Network Interface en1 Available 14-08 Standard Ethernet Network Interface en2 Defined 1D-08 Standard Ethernet Network Interface et0 Defined 1L-08 IEEE 802.3 Ethernet Network Interface et1 Defined 14-08 IEEE 802.3 Ethernet Network Interface et2 Defined 1D-08 IEEE 802.3 Ethernet Network Interface另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。