[问题]搞了xfce4后网上不了,急!

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
gqcheng
帖子: 10
注册时间: 2005-10-30 22:23
送出感谢: 0
接收感谢: 0
联系:

[问题]搞了xfce4后网上不了,急!

#1

帖子 gqcheng » 2005-10-30 22:49

昨天闲来无事,sudo apt-get install xfce4后,速度是快了许多了,可是不能上网了,删了xfce4也没有用.郁闷!
这是我的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
auto lo
iface lo inet loopback


# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0


iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0

ping 127.0.0.1 192.168.1.100都可以,就是ping 192.168.1.1不通.
幸亏是双系统,这个帖子就是在2003下发的.
谁来帮帮我呀?
:?:
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2005-10-30 23:16

网关ping不了,怎么ping100的。auto eth0去掉可以不。ifconfig看有数据没有。
● 鸣学
gqcheng
帖子: 10
注册时间: 2005-10-30 22:23
送出感谢: 0
接收感谢: 0
联系:

网还是不通呀!

#3

帖子 gqcheng » 2005-11-05 11:21

gqc@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:44:CF:5A
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe44:cf5a/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xd400

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:1208 errors:0 dropped:0 overruns:0 frame:0
TX packets:1208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:108806 (106.2 KiB) TX bytes:108806 (106.2 KiB)

gqc@ubuntu:~$ ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.128 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.094 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.101 ms
64 bytes from 192.168.1.100: icmp_seq=4 ttl=64 time=0.106 ms
64 bytes from 192.168.1.100: icmp_seq=5 ttl=64 time=0.097 ms

gqc@ubuntu:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.100 icmp_seq=3 Destination Host Unreachable
From 192.168.1.100 icmp_seq=4 Destination Host Unreachable
From 192.168.1.100 icmp_seq=6 Destination Host Unreachable
From 192.168.1.100 icmp_seq=7 Destination Host Unreachable
From 192.168.1.100 icmp_seq=8 Destination Host Unreachable

auto eth0 去掉还没有试.
gqcheng
帖子: 10
注册时间: 2005-10-30 22:23
送出感谢: 0
接收感谢: 0
联系:

auto eth0

#4

帖子 gqcheng » 2005-11-05 11:43

auto eth0 去掉还是没有用呀
头像
firehare
论坛版主
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
送出感谢: 0
接收感谢: 2 次
联系:

#5

帖子 firehare » 2005-11-06 9:55

代码: 全选

# 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
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
        script grep
        map eth0

# The primary network interface
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
auto eth0


参看我的配置,我觉得你的少了网络地址和广播地址,先试试,auto eth0不要删除先!
我心无畏,源自于我心无知。
图片
gqcheng
帖子: 10
注册时间: 2005-10-30 22:23
送出感谢: 0
接收感谢: 0
联系:

好了,谢谢!

#6

帖子 gqcheng » 2005-11-08 18:38

改为DHCP,好了,有点莫名甚妙呀!不过还是感谢各位大虾的关心! :D
回复

回到 “服务器基础应用”