poloshiao 写了:把下面指令 複製 貼進終端機 執行
1. sudo lshw -numeric -class network
2. sudo ifconfig -a
3. sudo route -nv
4. sudo dhclient -v
5. sudo cat /etc/udev/rules.d/70-persistent-net.rules
把結果直接複製 貼上來
// ----
root@tigerlau225-Lenovo-Product:/home/tigerlau225# lshw -numeric -class network
*-network UNCLAIMED
description: Ethernet controller
product: 88E8057 PCI-E Gigabit Ethernet Controller [11AB:4380]
vendor: Marvell Technology Group Ltd. [11AB]
physical id: 0
bus info: pci@0000:02:00.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:feafc000-feafffff ioport:d800(size=256) memory:feac0000-feadffff
root@tigerlau225-Lenovo-Product:/home/tigerlau225# ifconfig -a
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:16436 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3648 (3.6 KB) TX bytes:3648 (3.6 KB)
root@tigerlau225-Lenovo-Product:/home/tigerlau225# route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
root@tigerlau225-Lenovo-Product:/home/tigerlau225# dhclient -v
Internet Systems Consortium DHCP Client 4.1-ESV-R4
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
No broadcast interfaces found - exiting.
root@tigerlau225-Lenovo-Product:/home/tigerlau225# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0 (sky2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:01:6c:47:ea:5b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
root@tigerlau225-Lenovo-Product:/home/tigerlau225#