2. 把下面指令 複製 貼進終端機 執行
2-0. uname -r
uname -r
4.2.0-18-generic
2-1. sudo lspci -knn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD/ATI] RS480/RS482/RS485 Host Bridge [1002:5950] (rev 10)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
00:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Bridge [int gfx] [1002:5a3f]
00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 1 [1002:5a36]
Kernel driver in use: pcieport
00:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 2 [1002:5a37]
Kernel driver in use: pcieport
00:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 3 [1002:5a38]
Kernel driver in use: pcieport
00:12.0 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 Serial ATA Controller [1002:4379] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: sata_sil
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB Host Controller [1002:4374] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: ohci-pci
00:13.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB Host Controller [1002:4375] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: ohci-pci
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB2 Host Controller [1002:4373] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: ehci-pci
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 SMBus Controller [1002:4372] (rev 82)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: piix4_smbus
00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 IDE Controller [1002:4376] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: pata_atiixp
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 High Definition Audio Controller [1002:437b] (rev 01)
Subsystem: Device [30b0:103c]
Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 PCI-ISA Bridge [1002:4377] (rev 80)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 PCI-PCI Bridge [1002:4371] (rev 80)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
Kernel driver in use: k8temp
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS482M [Mobility Radeon Xpress 200] [1002:5975]
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: radeon
02:01.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet [14e4:169c] (rev 03)
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: tg3
02:04.0 CardBus bridge [0607]: Texas Instruments PCIxx12 Cardbus Controller [104c:8039]
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: yenta_cardbus
02:04.1 FireWire (IEEE 1394) [0c00]: Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller [104c:803a]
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: firewire_ohci
02:04.2 Mass storage controller [0180]: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) [104c:803b]
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: tifm_7xx1
02:04.3 SD Host controller [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller [104c:803c]
Subsystem: Hewlett-Packard Company Device [103c:30b0]
Kernel driver in use: sdhci-pci
30:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
Subsystem: Hewlett-Packard Company BCM4311 802.11b/g Wireless LAN Controller [103c:1364]
2-1-1. 如果無線網卡是 usb 裝置 請增加
sudo lsusb
2-2. sudo lshw -numeric -class network
sudo lshw -numeric -class network
*-network UNCLAIMED
description: Network controller
product: BCM4311 802.11b/g WLAN [14E4:4311]
vendor: Broadcom Corporation [14E4]
physical id: 0
bus info: pci@0000:30:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:c8000000-c8003fff
*-network
description: Ethernet interface
product: NetXtreme BCM5788 Gigabit Ethernet [14E4:169C]
vendor: Broadcom Corporation [14E4]
physical id: 1
bus info: pci@0000:02:01.0
logical name: enp2s1
version: 03
serial: 00:17:a4

44:82
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm vpd msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=5788-v3.26 ip=192.168.2.112 latency=64 link=yes mingnt=64 multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:23 memory:d4000000-d400ffff
2-3. sudo ifconfig -a
enp2s1 Link encap:Ethernet HWaddr 00:17:a4

44:82
inet addr:192.168.2.112 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::217:a4ff:fede:4482/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3941 errors:0 dropped:0 overruns:0 frame:0
TX packets:4001 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:318977 (318.9 KB) TX bytes:571296 (571.2 KB)
Interrupt:23
enp2s1:1 Link encap:Ethernet HWaddr 00:17:a4

44:82
inet addr:192.168.2.92 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:23
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)
2-4. sudo route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 enp2s1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s1