solaris网络配置

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.
OK, basicly there are 4 file you have to config at Solaris to go to internet:
1. /etc/hosts or /etc/inet/hosts
2. /etc/resolv.conf
3. /etc/nsswitch.conf
4. /etc/defaultrouter
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.
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)
Cat /etc/hosts
127.0.0.1 localhost
192.168.0.3 lion loghost
192.168.0.1 router
---------------------------------------------
vi /etc/resolv.conf
nameserver 192.168.0.1
-----------------------------------------------
vi /etc/nsswitch.conf
hosts: files dns
-----------------------------------------------
vi /etc/defaultrouter
router 192.168.0.1
------------------------------------------------ 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值