静静聆听音乐,它能给你无比的精神享受;同时淡淡的碧螺春香能让你陶醉*-*
solaris 上网的设置
上一篇 /
下一篇 2007-12-21 11:35:07
查看( 141 ) /
评论( 2 )
I find there are many guys don't know how to setup files to connected to internet and ask the same question again and again. So, I post my configuration file here for those who need reference for internet set up. Hopefully this can help some one a little.
IXPUB技术博客Mg:U&R+L%X
diu2c8t/?vN#J0
OK, basicly there are 4 file you have to config at Solaris to go to internet:
IXPUB技术博客AQ*H7_!]uhO5m a
t}1s*b X[z#@.T0
1. /etc/hosts or /etc/inet/hosts
3R)e$`8e'A+v#|r0
2. /etc/resolv.conf
9RWoZe4R3O0
3. /etc/nsswitch.conf
IXPUB技术博客fSq+v8ZUw
4. /etc/defaultrouter
IXPUB技术博客
g0`k8DR3?"{T
}Rg,h5q cu0
What i have to say is that the files /etc/resolv.conf and /etc/defaultrouter are not existed by default system installation. you have to create that 2 file when you need setup internet.
8m%h$Z?6En!E,[b0
n-[*JB&{%t|0
The following are my configuration file: (192.168.0.3 is my solaris 9 system and 192.168.0.1 is the machine of Windows 2000/XP which has 2 network interfice, one connected to internet by 24.101.186.193 and one connected to solaris9 by interfice 192.168.0.1. You have to choose to share internet for the interface that connected to internet at windows as you have)
IXPUB技术博客$tQPF MB$_
1h` x7P,d I-I0
Cat /etc/hosts
!Pz)?JHAZ%Z0
IXPUB技术博客
_'yX@z({S
F
127.0.0.1 localhost
IXPUB技术博客omq-[%n/v1b8b
192.168.0.3 lion loghost
IXPUB技术博客.lv:O3pI]N1]Y
192.168.0.1 router
IXPUB技术博客p7{*O-PEt
^
IXPUB技术博客#k
X-d\w2B7P
u3H+[*~3}
---------------------------------------------
h9J,d
M!z&w7k0
Mv"h? bXXW/xU0
vi /etc/resolv.conf
IXPUB技术博客-wU"m_H&H2{
gi\|
IXPUB技术博客!j$K~G7v3h)U
nameserver 192.168.0.1
hp&NFw"{0
M\W
k1JU9m1o?0
-----------------------------------------------
IXPUB技术博客ym2w$RO_B.UD.T
vi /etc/nsswitch.conf
/V\Qn~0
M@8b3a
oIk
[0
hosts: files dns
IXPUB技术博客1h
N-_&oz G~+B$F9|
IXPUB技术博客D z|4Uo.Q
-----------------------------------------------
IXPUB技术博客ml,^l-m q
PN9As2E7v-\V0
vi /etc/defaultrouter
IXPUB技术博客S'd9D$_{
IXPUB技术博客B,vZ2NV$@
router 192.168.0.1
IXPUB技术博客/n
O5@dU
4W
hux+[iCf0
------------------------------------------------
IXPUB技术博客Nym7_u,^3p
LX$XMn]&V0
Good luck.
论坛模式
推荐
收藏
分享给好友
推荐到圈子
管理
TAG:
-
sun029
发布于2007-12-21 23:19:39
-
顶上!:D
-
云杉上的蝴蝶
发布于2008-02-22 23:19:00
-
此贴已收入主题列表
