全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2339|回复: 3
打印 上一主题 下一主题

[Windows VPS] debian下连不上网,求助

[复制链接]
跳转到指定楼层
1#
发表于 2012-2-3 10:24:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
VBox下的虚拟机,装的debian 6,公司的路由是静态ip,各种折腾,上不了网,求助
  1. root@debian:~# ifconfig
  2. eth1      Link encap:Ethernet  HWaddr 08:00:27:47:32:8d  
  3.           inet addr:192.168.1.179  Bcast:192.168.1.255  Mask:255.255.255.0
  4.           inet6 addr: fe80::a00:27ff:fe47:328d/64 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:702 (702.0 B)  TX bytes:9402 (9.1 KiB)

  10. lo        Link encap:Local Loopback  
  11.           inet addr:127.0.0.1  Mask:255.0.0.0
  12.           inet6 addr: ::1/128 Scope:Host
  13.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  14.           RX packets:23 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:0
  17.           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

以上这种配置,上不了网。
2#
发表于 2012-2-3 10:27:03 | 只看该作者
这个问题应该去chinaunix论坛问
3#
发表于 2012-2-3 10:27:47 | 只看该作者
vbox不知道了,vm的话,设置桥接就ok了
4#
 楼主| 发表于 2012-2-3 10:28:53 | 只看该作者
好了,桥接,。。。。。。折腾了半天,多谢楼上
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-4-13 03:22 , Processed in 0.069046 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表