当前位置: 技术问答>linux和unix
请大家帮我看看是什么没有配对?
来源: 互联网 发布时间:2014-11-05
本文导语: 我的计算机名为:cayu IP:192.168.100.25 主机为:192.167.100.1 (也是网关 winnt4.0) 并通过它上internet DNS: 211.96.129.161 —————————————————————————————— 如果我去打开局域网就会显示 "无法联...
我的计算机名为:cayu
IP:192.168.100.25
主机为:192.167.100.1 (也是网关 winnt4.0) 并通过它上internet
DNS: 211.96.129.161
——————————————————————————————
如果我去打开局域网就会显示 "无法联接到主机localhost"
我的配置如下:
[root@cayu root]#netconf
[Host name and IP netWork devices]
Host name + domain : #我不明白这里写什么好
Config mode : Manual
Primary name + domain : #我不明白这里写什么好
Aliases(opt):cayu
IP address :192.168.100.25
Netmast(opt):255.255.255.0
Net device :eth0
[Name server specification(DNS)]
default domain:
IP of name server 1:211.96.129.161
------------------------------------------------------------
[root@cayu root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:564 errors:0 dropped:0 overruns:0 frame:0
TX packets:564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:36618 (35.7 Kb) TX bytes:36618 (35.7 Kb)
lo:0 Link encap:Local Loopback
inet addr:192.168.100.25 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
--------------------------------------------------------------------------
ping 时会有一个警告
[root@cayu root]# ping 192.168.100.25
PING 192.168.100.25 (192.168.100.25) from 192.168.100.25 : 56(84) bytes of data.Warning: time of day goes back, taking countermeasures.
64 bytes from 192.168.100.25: icmp_seq=0 ttl=255 time=737 usec
64 bytes from 192.168.100.25: icmp_seq=1 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=2 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=3 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=4 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=5 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=6 ttl=255 time=51 usec
64 bytes from 192.168.100.25: icmp_seq=7 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=8 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=9 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=10 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=11 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=12 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=13 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=14 ttl=255 time=56 usec
64 bytes from 192.168.100.25: icmp_seq=15 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=16 ttl=255 time=56 usec
64 bytes from 192.168.100.25: icmp_seq=17 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=18 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=19 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=20 ttl=255 time=55 usec
--- 192.168.100.25 ping statistics ---
[root@cayu root]# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1) from 192.168.100.1 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=243 usec
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=2 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=3 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=4 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=5 ttl=255 time=56 usec
64 bytes from 192.168.100.1: icmp_seq=6 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=7 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=8 ttl=255 time=52 usec
64 bytes from 192.168.100.1: icmp_seq=9 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=10 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=11 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=12 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=13 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=14 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=15 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=16 ttl=255 time=53 usec
--- 192.168.100.1 ping statistics ---
22 packets transmitted, 22 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.051/0.062/0.243/0.040 ms
IP:192.168.100.25
主机为:192.167.100.1 (也是网关 winnt4.0) 并通过它上internet
DNS: 211.96.129.161
——————————————————————————————
如果我去打开局域网就会显示 "无法联接到主机localhost"
我的配置如下:
[root@cayu root]#netconf
[Host name and IP netWork devices]
Host name + domain : #我不明白这里写什么好
Config mode : Manual
Primary name + domain : #我不明白这里写什么好
Aliases(opt):cayu
IP address :192.168.100.25
Netmast(opt):255.255.255.0
Net device :eth0
[Name server specification(DNS)]
default domain:
IP of name server 1:211.96.129.161
------------------------------------------------------------
[root@cayu root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:564 errors:0 dropped:0 overruns:0 frame:0
TX packets:564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:36618 (35.7 Kb) TX bytes:36618 (35.7 Kb)
lo:0 Link encap:Local Loopback
inet addr:192.168.100.25 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
--------------------------------------------------------------------------
ping 时会有一个警告
[root@cayu root]# ping 192.168.100.25
PING 192.168.100.25 (192.168.100.25) from 192.168.100.25 : 56(84) bytes of data.Warning: time of day goes back, taking countermeasures.
64 bytes from 192.168.100.25: icmp_seq=0 ttl=255 time=737 usec
64 bytes from 192.168.100.25: icmp_seq=1 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=2 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=3 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=4 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=5 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=6 ttl=255 time=51 usec
64 bytes from 192.168.100.25: icmp_seq=7 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=8 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=9 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=10 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=11 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=12 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=13 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=14 ttl=255 time=56 usec
64 bytes from 192.168.100.25: icmp_seq=15 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=16 ttl=255 time=56 usec
64 bytes from 192.168.100.25: icmp_seq=17 ttl=255 time=55 usec
64 bytes from 192.168.100.25: icmp_seq=18 ttl=255 time=54 usec
64 bytes from 192.168.100.25: icmp_seq=19 ttl=255 time=53 usec
64 bytes from 192.168.100.25: icmp_seq=20 ttl=255 time=55 usec
--- 192.168.100.25 ping statistics ---
[root@cayu root]# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1) from 192.168.100.1 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=243 usec
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=2 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=3 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=4 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=5 ttl=255 time=56 usec
64 bytes from 192.168.100.1: icmp_seq=6 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=7 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=8 ttl=255 time=52 usec
64 bytes from 192.168.100.1: icmp_seq=9 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=10 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=11 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=12 ttl=255 time=55 usec
64 bytes from 192.168.100.1: icmp_seq=13 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=14 ttl=255 time=54 usec
64 bytes from 192.168.100.1: icmp_seq=15 ttl=255 time=53 usec
64 bytes from 192.168.100.1: icmp_seq=16 ttl=255 time=53 usec
--- 192.168.100.1 ping statistics ---
22 packets transmitted, 22 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.051/0.062/0.243/0.040 ms
|
哪里不行啊?网关是不是192.167.100.1啊还是192.168.100.1
ifconfig什么结果啊
ifconfig什么结果啊
|
至少你的子网掩(mask)是错的。如果是IP:192.168.100.25主机为:192.167.100.1没错的话,你的mask应该是255.0.0.0