catandrat 发表于 2011-11-14 01:16

求助:IP都配置好了。PING不通局域网的其他机子。

bash-3.2# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
      inet 10.50.129.35 netmask ffffff80


bash-3.2# cat /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost       loghost
10.50.129.35 sbj
#::1    localhost       loghost

bash-3.2# cat /etc/inet/netmasks
10.50.129.0 255.255.255.128

bash-3.2# netstat -rn

Routing Table: IPv4
Destination         Gateway         FlagsRef   Use   Interface
-------------------- -------------------- ----- ----- ---------- ---------
224.0.0.0            10.50.129.35         U         1          0 lo0

bash-3.2# ping 10.50.129.36
ICMP Host Unreachable from gateway sbj (10.50.129.35)
for icmp from sbj (10.50.129.35) to 10.50.129.36
ICMP Host Unreachable from gateway sbj (10.50.129.35)
for icmp from sbj (10.50.129.35) to 10.50.129.36
ICMP Host Unreachable from gateway sbj (10.50.129.35)
for icmp from sbj (10.50.129.35) to 10.50.129.36
^C
网线是一定正常的。。。。

catandrat 发表于 2011-11-14 01:31

在线一直等~~~~~:em27:

alex_xie 发表于 2011-11-14 10:05

你这是什么机器? Sparc 的? lo0 的地址应该一直 就是127.0.0.1 才对。 由相关信息可以看到,目标地址和本地地址之间没有路由。

查看一下以下文件有没有配置:

1, /etc/hostname.xxx   其中xxx为机器的网口名,可以通过/etc/path_to_inst来确定;
2, /etc/defaultrouter
3,/etc/nsswitch.conf查看 host 这一行是否加了"dns"项

--------------------
passwd:         
group:         
shadow:         
hosts:          dnsfiles               <<<<<--------------------
networks:       nis   files

--------------------

4, /etc/resolv.conf


完了后,重启网络服务,再ping一下看看。

东方蜘蛛 发表于 2011-11-14 10:13

:em06:估计是没配/etc/hostname.xxx

catandrat 发表于 2011-11-14 15:19

回复 3# alex_xie


    是solaris10 X86 .
   

    bash-3.2# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
      inet 10.50.129.35 netmask ffffff80

    您看一下,这是不是只有回环啊。没有网卡?

    您说的路由我自己加了啊,/etc/defaultrouter内容是 10.50.128.126..

catandrat 发表于 2011-11-14 15:22

估计是没配/etc/hostname.xxx
东方蜘蛛 发表于 2011-11-14 10:13 http://bbs.chinaunix.net/images/common/back.gif


    一开始就没有这个文件。。=。 =
   bash-3.2# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
      inet 10.50.129.35 netmask ffffff80

   但问题您我的hostname.<interface>   interface是什么?不是能lo0吧。。。。这个是回环吧?

cwnlinux 发表于 2011-11-15 01:28

more /etc/path_to_inst看看网卡识别没有?S10的话用dladm show-dev也可以看。

财版 发表于 2011-11-15 11:05

sys-unconfig

gm_zhou 发表于 2011-11-15 11:26

是不是应该先“ifconfig 网卡名 plumb” 呀

sunshine8654 发表于 2011-11-15 12:17

要先ifconfig XXX plumb系统会自动生成/etc/hostname.xxx文件
页: [1] 2 3
查看完整版本: 求助:IP都配置好了。PING不通局域网的其他机子。