poloshiao 写了:把下面指令 複製 貼進 虛擬機 Guest 終端機 執行
1. sudo lshw -numeric -class network
2. sudo ifconfig -a
3. sudo route -nv
4. sudo dhclient -v
把結果直接複製 貼上來
嗯。。。是这样子的。。。
:~# lshw -numeric -class network
*-network
description: Ethernet interface
product: 79c970 [PCnet32 LANCE] [1022:2000]
vendor: Advanced Micro Devices, Inc. [AMD] [1022]
physical id: 1
bus info: pci@0000:02:01.0
logical name: eth0
version: 10
serial: 00:0c:29:e5:7a:f8
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical logical
configuration: broadcast=yes driver=pcnet32 driverversion=1.35 ip=192.168.1.108 latency=64 link=yes maxlatency=255 mingnt=6 multicast=yes
resources: irq:19 ioport:2000(size=128) memory:e7b00000-e7b0ffff
:~# ifconfig -a //这里就只贴eth0了
eth0 Link encap:Ethernet HWaddr 00:0c:29:e5:7a:f8
inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee5:7af8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42339 errors:0 dropped:0 overruns:0 frame:0
TX packets:23515 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32922406 (32.9 MB) TX bytes:9193419 (9.1 MB)
Interrupt:19 Base address:0x2000
:~# route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
:~# dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
Listening on LPF/virbr0/a2:47:ba:37:c6:da
Sending on LPF/virbr0/a2:47:ba:37:c6:da
Listening on LPF/eth0/00:0c:29:e5:7a:f8
Sending on LPF/eth0/00:0c:29:e5:7a:f8
Listening on LPF/vboxnet0/0a:00:27:00:00:00
Sending on LPF/vboxnet0/0a:00:27:00:00:00
Sending on Socket/fallback
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 3 (xid=0x61c54841)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x791b9d85)
DHCPDISCOVER on vboxnet0 to 255.255.255.255 port 67 interval 3 (xid=0x5eed52e0)
DHCPREQUEST of 192.168.1.111 on eth0 to 255.255.255.255 port 67 (xid=0x791b9d85)
DHCPOFFER of 192.168.1.111 from 192.168.1.1
DHCPACK of 192.168.1.111 from 192.168.1.1
bound to 192.168.1.111 -- renewal in 3093 seconds.