免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 14082 | 回复: 18
打印 上一主题 下一主题

linux如何用命令查看网卡的型号? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-18 16:28 |只看该作者 |倒序浏览
linux如何用命令查看网卡的型号?及CPU、内存的型号与大小?能否通过命令查看的主机的硬件配置情况呢?

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
2 [报告]
发表于 2005-11-18 16:53 |只看该作者
试试 dmidecode

论坛徽章:
0
3 [报告]
发表于 2005-11-18 17:01 |只看该作者
vi /etc/sysconfig/network-scripts/ifcfg-eth0
用这个可以看到网卡的信息

直接输入dmesg可以看到开机检测到硬件信息

cd /proc目录下
然后根据你的需求察看不同的文件,可以看到你要的东西

论坛徽章:
0
4 [报告]
发表于 2005-11-18 17:08 |只看该作者
cat /proc/cpuinfo

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
5 [报告]
发表于 2005-11-18 17:12 |只看该作者
原帖由 q1208c 于 2005-11-18 16:53 发表
试试 dmidecode

            

论坛徽章:
0
6 [报告]
发表于 2005-11-18 17:21 |只看该作者
原帖由 q1208c 于 2005-11-18 16:53 发表
试试 dmidecode

   
这个命令执行不了

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
7 [报告]
发表于 2005-11-18 17:23 |只看该作者
原帖由 xhy701 于 2005-11-18 17:21 发表

   
这个命令执行不了



你有没有su -

一下@!!!!

论坛徽章:
0
8 [报告]
发表于 2005-11-18 17:29 |只看该作者
[root@all001 root]# dmidecode
-bash: dmidecode: command not found
[root@all001 root]#

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
9 [报告]
发表于 2005-11-18 17:31 |只看该作者
原帖由 xhy701 于 2005-11-18 17:29 发表
[root@all001 root]# dmidecode
-bash: dmidecode: command not found
[root@all001 root]#



你有没有先执行su -这个命令?

论坛徽章:
0
10 [报告]
发表于 2005-11-18 17:34 |只看该作者
原帖由 xhy701 于 2005-11-18 17:29 发表
[root@all001 root]# dmidecode
-bash: dmidecode: command not found
[root@all001 root]#



我的:

[root@home root]# dmidecode
# dmidecode 2.2
SMBIOS 2.2 present.
34 structures occupying 865 bytes.
Table at 0x000F0800.
Handle 0x0000
        DMI type 0, 19 bytes.
        BIOS Information
                Vendor: Phoenix Technologies, LTD
                Version: 6.00 PG
                Release Date: 04/18/2003
                Address: 0xE0000
                Runtime Size: 128 kB
                ROM Size: 256 kB
                Characteristics:
                        ISA is supported
                        PCI is supported
                        PNP is supported
                        APM is supported
                        BIOS is upgradeable
                        BIOS shadowing is allowed
                        ESCD support is available
                        Boot from CD is supported
                        Selectable boot is supported
                        BIOS ROM is socketed
                        EDD is supported
                        5.25"/360 KB floppy services are supported (int 13h)
                        5.25"/1.2 MB floppy services are supported (int 13h)
                        3.5"/720 KB floppy services are supported (int 13h)
                        3.5"/2.88 MB floppy services are supported (int 13h)
                        Print screen service is supported (int 5h)
                        8042 keyboard services are supported (int 9h)
                        Serial services are supported (int 14h)
                        Printer services are supported (int 17h)
                        CGA/mono video services are supported (int 10h)
                        ACPI is supported
                        USB legacy is supported
                        AGP is supported
                        LS-120 boot is supported
                        ATAPI Zip drive boot is supported
Handle 0x0001
        DMI type 1, 25 bytes.
        System Information
                Manufacturer:  
                Product Name:  
                Version:  
                Serial Number:  
                UUID: Not Present
                Wake-up Type: Power Switch
Handle 0x0002
        DMI type 2, 8 bytes.
        Base Board Information
                Manufacturer:  
                Product Name: i845G/GL-ITE8702
                Version:  
                Serial Number:  
Handle 0x0003
        DMI type 3, 13 bytes.
        Chassis Information
                Manufacturer:  
                Type: Desktop
                Lock: Not Present
                Version:  
                Serial Number:  
                Asset Tag:  
                Boot-up State: Unknown
                Power Supply State: Unknown
                Thermal State: Unknown
                Security Status: Unknown
Handle 0x0004
        DMI type 4, 32 bytes.
        Processor Information
                Socket Designation: Socket 478
                Type: Central Processor
                Family: Pentium 4
                Manufacturer: Intel
                ID: 29 0F 00 00 FF FB EB BF
                Signature: Type 0, Family F, Model 2, Stepping 9
                Flags:
                        FPU (Floating-point unit on-chip)
                        VME (Virtual mode extension)
                        DE (Debugging extension)
                        PSE (Page size extension)
                        TSC (Time stamp counter)
                        MSR (Model specific registers)
                        PAE (Physical address extension)
                        MCE (Machine check exception)
                        CX8 (CMPXCHG8 instruction supported)
                        APIC (On-chip APIC hardware supported)
                        SEP (Fast system call)
                        MTRR (Memory type range registers)
                        PGE (Page global enable)
                        MCA (Machine check architecture)
                        CMOV (Conditional move instruction supported)
                        PAT (Page attribute table)
                        PSE-36 (36-bit page size extension)
                        CLFSH (CLFLUSH instruction supported)
                        DS (Debug store)
                        ACPI (ACPI supported)
                        MMX (MMX technology supported)
                        FXSR (Fast floating-point save and restore)
                        SSE (Streaming SIMD extensions)
                        SSE2 (Streaming SIMD extensions 2)
                        SS (Self-snoop)
                        HTT (Hyper-threading technology)
                        TM (Thermal monitor supported)
                        SBF (Signal break on FERR)
                Version: Intel Celeron(R)
                Voltage: 0.0 V
                External Clock: 100 MHz
                Max Speed: 3066 MHz
                Current Speed: 1800 MHz
                Status: Populated, Enabled
                Upgrade: ZIF Socket
                L1 Cache Handle: 0x0008
                L2 Cache Handle: 0x0009
                L3 Cache Handle: No L3 Cache
Handle 0x0005
        DMI type 5, 20 bytes.
        Memory Controller Information
                Error Detecting Method: 8-bit Parity
                Error Correcting Capabilities:
                        None
                Supported Interleave: One-way Interleave
                Current Interleave: One-way Interleave
                Maximum Memory Module Size: 1024 MB
                Maximum Total Memory Size: 2048 MB
                Supported Speeds:
                        Other
                Supported Memory Types:
                        Other
                Memory Module Voltage: 5.0 V
                Associated Memory Slots: 2
                        0x0006
                        0x0007
                Enabled Error Correcting Capabilities:
                        None
Handle 0x0006
        DMI type 6, 12 bytes.
        Memory Module Information
                Socket Designation: A0
                Bank Connections: 0
                Current Speed: Unknown
                Type: Other
                Installed Size: 256 MB (Single-bank Connection)
                Enabled Size: 256 MB (Single-bank Connection)
                Error Status: OK
Handle 0x0007
        DMI type 6, 12 bytes.
        Memory Module Information
                Socket Designation: A1
                Bank Connections: None
                Current Speed: Unknown
                Type: Unknown
                Installed Size: Not Installed (Single-bank Connection)
                Enabled Size: Not Installed (Single-bank Connection)
                Error Status: OK
Handle 0x0008
        DMI type 7, 19 bytes.
        Cache Information
                Socket Designation: Internal Cache
                Configuration: Enabled, Not Socketed, Level 1
                Operational Mode: Write Back
                Location: Internal
                Installed Size: 20 KB
                Maximum Size: 20 KB
                Supported SRAM Types:
                        Synchronous
                Installed SRAM Type: Synchronous
                Speed: Unknown
                Error Correction Type: Unknown
                System Type: Unknown
                Associativity: Unknown
Handle 0x0009
        DMI type 7, 19 bytes.
        Cache Information
                Socket Designation: External Cache
                Configuration: Enabled, Not Socketed, Level 2
                Operational Mode: Write Back
                Location: External
                Installed Size: 128 KB
                Maximum Size: 128 KB
                Supported SRAM Types:
                        Synchronous
                Installed SRAM Type: Synchronous
                Speed: Unknown
                Error Correction Type: Unknown
                System Type: Unknown
                Associativity: Unknown
Handle 0x000A
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: PRIMARY IDE
                Internal Connector Type: On Board IDE
                External Reference Designator: Not Specified
                External Connector Type: None
                Port Type: Other
Handle 0x000B
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: SECONDARY IDE
                Internal Connector Type: On Board IDE
                External Reference Designator: Not Specified
                External Connector Type: None
                Port Type: Other
Handle 0x000C
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: FDD
                Internal Connector Type: On Board Floppy
                External Reference Designator: Not Specified
                External Connector Type: None
                Port Type: 8251 FIFO Compatible
Handle 0x000D
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: COM1
                Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
                External Reference Designator:  
                External Connector Type: DB-9 male
                Port Type: Serial Port 16450 Compatible
Handle 0x000E
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: COM2
                Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
                External Reference Designator:  
                External Connector Type: DB-9 male
                Port Type: Serial Port 16450 Compatible
Handle 0x000F
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: LPT1
                Internal Connector Type: DB-25 female
                External Reference Designator:  
                External Connector Type: DB-25 female
                Port Type: Parallel Port ECP/EPP
Handle 0x0010
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: Keyboard
                Internal Connector Type: PS/2
                External Reference Designator:  
                External Connector Type: PS/2
                Port Type: Keyboard Port
Handle 0x0011
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: PS/2 Mouse
                Internal Connector Type: PS/2
                External Reference Designator:  
                External Connector Type: PS/2
                Port Type: Mouse Port
Handle 0x0012
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: Not Specified
                Internal Connector Type: None
                External Reference Designator: USB0
                External Connector Type: Other
                Port Type: USB
Handle 0x0013
        DMI type 8, 9 bytes.
        Port Connector Information
                Internal Reference Designator: Not Specified
                Internal Connector Type: None
                External Reference Designator: USB1
                External Connector Type: Other
                Port Type: USB
Handle 0x0014
        DMI type 9, 13 bytes.
        System Slot Information
                Designation: PCI0
                Type: 32-bit PCI
                Current Usage: In Use
                Length: Long
                ID: 1
                Characteristics:
                        5.0 V is provided
                        PME signal is supported
Handle 0x0015
        DMI type 9, 13 bytes.
        System Slot Information
                Designation: PCI1
                Type: 32-bit PCI
                Current Usage: Available
                Length: Long
                ID: 2
                Characteristics:
                        5.0 V is provided
                        PME signal is supported
Handle 0x0016
        DMI type 9, 13 bytes.
        System Slot Information
                Designation: PCI2
                Type: 32-bit PCI
                Current Usage: Available
                Length: Long
                ID: 3
                Characteristics:
                        5.0 V is provided
                        PME signal is supported
Handle 0x0017
        DMI type 9, 13 bytes.
        System Slot Information
                Designation: PCI3
                Type: 32-bit PCI
                Current Usage: In Use
                Length: Long
                ID: 4
                Characteristics:
                        5.0 V is provided
                        PME signal is supported
Handle 0x0018
        DMI type 9, 13 bytes.
        System Slot Information
                Designation: AGP
                Type: 32-bit AGP
                Current Usage: Available
                Length: Long
                ID: 8
                Characteristics:
                        5.0 V is provided
Handle 0x0019
        DMI type 13, 22 bytes.
        BIOS Language Information
                Installable Languages: 3
                        n|US|iso8859-1
                        n|US|iso8859-1
                        r|CA|iso8859-1
                Currently Installed Language: n|US|iso8859-1
Handle 0x001A
        DMI type 16, 15 bytes.
        Physical Memory Array
                Location: System Board Or Motherboard
                Use: System Memory
                Error Correction Type: None
                Maximum Capacity: 2 GB
                Error Information Handle: Not Provided
                Number Of Devices: 2
Handle 0x001B
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x001A
                Error Information Handle: Not Provided
                Total Width: 64 bits
                Data Width: 64 bits
                Size: 256 MB
                Form Factor: DIMM
                Set: None
                Locator: A0
                Bank Locator: Bank0/1
                Type: SDRAM
                Type Detail: Synchronous
Handle 0x001C
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x001A
                Error Information Handle: Not Provided
                Total Width: Unknown
                Data Width: Unknown
                Size: No Module Installed
                Form Factor: DIMM
                Set: None
                Locator: A1
                Bank Locator: Bank2/3
                Type: Unknown
                Type Detail: Unknown
Handle 0x001D
        DMI type 19, 15 bytes.
        Memory Array Mapped Address
                Starting Address: 0x00000000000
                Ending Address: 0x0000FFFFFFF
                Range Size: 256 MB
                Physical Array Handle: 0x001A
                Partition Width: 0
Handle 0x001E
        DMI type 20, 19 bytes.
        Memory Device Mapped Address
                Starting Address: 0x00000000000
                Ending Address: 0x0000FFFFFFF
                Range Size: 256 MB
                Physical Device Handle: 0x001B
                Memory Array Mapped Address Handle: 0x001D
                Partition Row Position: 1
Handle 0x001F
        DMI type 20, 19 bytes.
        Memory Device Mapped Address
                Starting Address: 0x00000000000
                Ending Address: 0x000000003FF
                Range Size: 1 kB
                Physical Device Handle: 0x001C
                Memory Array Mapped Address Handle: 0x001D
                Partition Row Position: 1
Handle 0x0020
        DMI type 32, 11 bytes.
        System Boot Information
                Status: No errors detected
Handle 0x0021
        DMI type 127, 4 bytes.
        End Of Table
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP