免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
打印 上一主题 下一主题

网络问题~设置了IP、路由~!能ping 通局域网,ping 不通网关!? [复制链接]

论坛徽章:
0
41 [报告]
发表于 2006-06-14 19:28 |只看该作者
现在应该都可以了!
总结一下问题:
# cat /etc/nodename
root

# cat /etc/hostname.hme0
root

# cat /etc/inet/hosts
127.0.0.1       localhost
192.168.1.198   root    loghost

# cat /etc/defaultrouter
192.168.1.1

#cat /etc/defaultdomain
www.greatalent.com

# cat /etc/inet/netmasks
192.168.1.0     255.255.255.0

因为我的nvram 没电了,而sun的MAC从它那里获取。
所以,我的MAC地址为全零
因此,手动加上MAC地址!ifconfig hme0 ether 00:50:56:c0:00:01 (重启电脑后 MAC地址又为零!)
要在:/etc/rc2.d/S72inetsvc  最下面加上:ifconfig hme0 ether 00:50:56:c0:00:01  reboot 机器!(重启后 MAC地址仍然在!)

配置DNS:
# cat /etc/resolv.conf
domain  greatalent.com
nameserver      192.168.1.198

# cat /etc/named.conf    
               
options { Hostname
DIRECTORY "/var/named";osts file.            
};  
acl "nets"{           
{192.168.1.0/24;};        
#!/sbin/s
};  
file "named.ca";
};
zone "one.edu" in {
type master;
file "one.zone";
allow-transfer {"nets";};
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "loopback-domain-info";
};
zone "greatalent.com" in {
type master;
file "db.greatalent.com";
allow-transfer {"nets";};
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "db.192.168.1";
};
/* This is a comment */
// This is a comment
# This is a comment

# cat /var/named/db.greatalent.com
$TTL    86400
@       IN SOA greatalent.com.  root.   greatalent.com. (

                        5
                        10800
                        3600
                        604800
                        86400   )

        IN      NS      greatalent.com.
        IN      MX  5   greatalent.com.

www     IN      PTR     192.168.1.198

# cat db.192.168.1
$TTL    86400

@       IN      SOA     greatalent.com. root.   greatalent.com. (

                        5
                        10800
                        3600
                        604800
                        86400 )

@       IN      NS      greatalent.com.

198     IN      PTR     www.greatalent.com.

论坛徽章:
0
42 [报告]
发表于 2006-06-15 04:45 |只看该作者
是不是因为你的机器名叫:root造成的。
换个名字试试看。

-----------------
# cat /etc/inet/hosts
127.0.0.1       localhost
192.168.1.198  root
------------------

论坛徽章:
0
43 [报告]
发表于 2006-06-15 22:46 |只看该作者
配制看来没有问题。是否可以PING通其他的主机?
用ifconfig unplumb 再ifconfig plumb把网络重新启动一下。如果不可以ping 127.0.0.1看你的网络是否通
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP