- 论坛徽章:
- 0
|
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
# lspci | grep Ethernet
02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 41)
# dmesg | grep eth0
[ 4.003233] e100: eth0: e100_probe: addr 0xd0215000, irq 10, MAC addr 00:02:a5:6e:9c:ac
[ 27.257068] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.260150] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
[ 27.260275] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 37.776040] eth0: no IPv6 routers present
# ifdown eth0
ifdown: interface eth0 not configured
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:02:a5:6e:9c:ac
inet addr:10.0.20.132 Bcast:10.0.20.255 Mask:255.255.255.0
inet6 addr: fe80::202:a5ff:fe6e:9cac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43137 errors:0 dropped:0 overruns:0 frame:0
TX packets:40145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9679140 (9.6 MB) TX bytes:3694982 (3.6 MB)
为什么能正常上网?地址是DHCP获得的吧,什么程序控制他获得地址的?配置文件在哪?
[ 本帖最后由 houshuang 于 2009-5-20 09:48 编辑 ] |
|