AIX使用命令修改网卡IP地址,永久生效
比如修改en0的ip地址。
chdev -l en0 -a netaddr=192.168.1.100 -a netmask=255.255.255.0 -a state=up
启用en0 网卡
ifconfig en0 up
AIX Study之--AIX网卡配置管理(ent0、en0、et0)
1、查看AIX系统网卡信息:
[[email protected] /]#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、查看网卡属性:
lsattr -El en0
lsattr -El et0
lsattr -El ent0
3、查看网卡配置:
[[email protected] /]#lscfg -vpl en0 [[email protected] /]#lscfg -vpl et0 [[email protected] /]#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: [email protected]1 Device Type: network Physical Location: U0.1-P1/E2
Physical Location的位置可以判断网卡是否是插在PCI接口上的
[[email protected] /]#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
[[email protected] /]#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、在很多情况下,一个物理设备会对应多个逻辑设备
查看物理设备: [[email protected] /]#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 查看逻辑设备: [[email protected] /]#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
原文地址:https://www.cnblogs.com/dahaoran/p/9483915.html
时间: 2024-10-13 01:36:51