全球主机交流论坛
标题:
debian下连不上网,求助
[打印本页]
作者:
nbweb
时间:
2012-2-3 10:24
标题:
debian下连不上网,求助
VBox下的虚拟机,装的debian 6,公司的路由是静态ip,各种折腾,上不了网,求助
root@debian:~# ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:47:32:8d
inet addr:192.168.1.179 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe47:328d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:702 (702.0 B) TX bytes:9402 (9.1 KiB)
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:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1863 (1.8 KiB) TX bytes:1863 (1.8 KiB)
复制代码
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
# 开机自动激lo接口
auto lo
# 配置lo接口为环回口
iface lo inet loopback
#
# The primary network interface (配置主网络接口)
#开机自动激活eth0接口
auto eth1
#配置eth0接口为静态设置IP地址
iface eth1 inet static
address 192.168.1.179
netmask 255.255.255.0
gateway 192.168.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4
以上这种配置,上不了网。
作者:
nop
时间:
2012-2-3 10:27
这个问题应该去chinaunix论坛问
作者:
ivv
时间:
2012-2-3 10:27
vbox不知道了,vm的话,设置桥接就ok了
作者:
nbweb
时间:
2012-2-3 10:28
好了,桥接,。。。。。。折腾了半天,多谢楼上
欢迎光临 全球主机交流论坛 (https://loc.fffk.eu.org/)
Powered by Discuz! X3.4