由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 求助: DHCP设置on solaris
相关主题
Solaris 10 能在家里用Router的动态IP吗谁有Solaris8 system administrator Exam(Certific)?
why?请教Solaris使用问题
how to configure networking after installation怎样恢复 Solaris Boot Manager? (Solaris8 - x86 )
How to understand 'global zone' in solaris?solaris8 and winxp dual boot on Dell laptop
怎么合法设置hostname?有人在Win98上,装过Solaris8吗?帮帮忙,谢谢!!!!
HELPS!! PC+Solaris+DlinkRouterCannot send email on Solaris8
SOLARIS8的几个问题新手如何在OS solaris 8下安装gcc?
Solaris8安装疑问 How do i get a list of all computers?
相关话题的讨论汇总
话题: solaris话题: ip话题: dhcp话题: pc话题: hostname
进入Unix版参与讨论
1 (共1页)
s***g
发帖数: 6
1
cable modem + D-Link router.
一台PC和一台Solaris接在router上. 用DHCP. PC work正常.
Solaris 可以得到IP address, 从PC可以telnet到Solaris上.
但是Solaris不能resolve domain name. 比如ping bbs.mit.edu 不行, 但是
直接ping ip 可以. solaris自己的hostname是unknown.
怎么办? 我试着在/etc/resolv.conf 里嫁了两个DNS server的IP, 然后reboot
但是没有用. 试着在/etc/hosts里嫁了一个hostname, 但是机器reboot后又被
改回unknown.
是solaris8
多谢多谢!!
c***z
发帖数: 152
2
1: Check /etc/nsswitch.conf, make sure there is one line looks like
hosts: files dns
2: Make sure you can successfully PING the DNS server address from your
system.
Good luck.

【在 s***g 的大作中提到】
: cable modem + D-Link router.
: 一台PC和一台Solaris接在router上. 用DHCP. PC work正常.
: Solaris 可以得到IP address, 从PC可以telnet到Solaris上.
: 但是Solaris不能resolve domain name. 比如ping bbs.mit.edu 不行, 但是
: 直接ping ip 可以. solaris自己的hostname是unknown.
: 怎么办? 我试着在/etc/resolv.conf 里嫁了两个DNS server的IP, 然后reboot
: 但是没有用. 试着在/etc/hosts里嫁了一个hostname, 但是机器reboot后又被
: 改回unknown.
: 是solaris8
: 多谢多谢!!

c******n
发帖数: 4965
3
I guess you have to set up you own dns server
in your home network---- the PC+Solaris,
for a router, it just do "IP masquerading" or NAT,
I doubt it has ability to do DHCP,
so you can set up DHCP on solaris, then each machine gets a
local IP automatically,
well, I suggest that you check the IP on PC, it must be a real
internet IP now, not a local IP, because you connect it directly
to modem, time-warner only allows one ip for each modem unless you pay
more.
the other way would be to directly set

【在 s***g 的大作中提到】
: cable modem + D-Link router.
: 一台PC和一台Solaris接在router上. 用DHCP. PC work正常.
: Solaris 可以得到IP address, 从PC可以telnet到Solaris上.
: 但是Solaris不能resolve domain name. 比如ping bbs.mit.edu 不行, 但是
: 直接ping ip 可以. solaris自己的hostname是unknown.
: 怎么办? 我试着在/etc/resolv.conf 里嫁了两个DNS server的IP, 然后reboot
: 但是没有用. 试着在/etc/hosts里嫁了一个hostname, 但是机器reboot后又被
: 改回unknown.
: 是solaris8
: 多谢多谢!!

s***g
发帖数: 6
4
果然是大侠!! 当时就work!
还有一个小问题: solaris还说自己的host name是unknown. 如果从PC ping
的话, 只能用IP ping通. 用unknown不行.
我试了在/etc/hosts 里把 unknown改成一个名字, 没用. 如果reboot的话,
它又自己改回unknown了. weird.
救人救到底.

【在 c***z 的大作中提到】
: 1: Check /etc/nsswitch.conf, make sure there is one line looks like
: hosts: files dns
: 2: Make sure you can successfully PING the DNS server address from your
: system.
: Good luck.

m****m
发帖数: 165
5
Say if you are using Solaris 2.6:
1.Put your machine's hostname in the /etc/nodename file.
2.Edit the /etc/rcS.d/S30rootuser.sh script. Around line 150 there's an
if/then statement that sets the hostname to "unknown". Comment out the whole
if/then statement (3 lines).

【在 s***g 的大作中提到】
: 果然是大侠!! 当时就work!
: 还有一个小问题: solaris还说自己的host name是unknown. 如果从PC ping
: 的话, 只能用IP ping通. 用unknown不行.
: 我试了在/etc/hosts 里把 unknown改成一个名字, 没用. 如果reboot的话,
: 它又自己改回unknown了. weird.
: 救人救到底.

1 (共1页)
进入Unix版参与讨论
相关主题
How do i get a list of all computers?怎么合法设置hostname?
[转载] hostname 问题HELPS!! PC+Solaris+DlinkRouter
How to set the titile of the terminal?SOLARIS8的几个问题
How to add network card under solaris?Solaris8安装疑问
Solaris 10 能在家里用Router的动态IP吗谁有Solaris8 system administrator Exam(Certific)?
why?请教Solaris使用问题
how to configure networking after installation怎样恢复 Solaris Boot Manager? (Solaris8 - x86 )
How to understand 'global zone' in solaris?solaris8 and winxp dual boot on Dell laptop
相关话题的讨论汇总
话题: solaris话题: ip话题: dhcp话题: pc话题: hostname