Chinaunix首页 | 论坛 | 博客
  • 博客访问: 262571
  • 博文数量: 44
  • 博客积分: 1431
  • 博客等级: 上尉
  • 技术积分: 558
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 12:53
文章分类
文章存档

2012年(1)

2011年(28)

2010年(15)

分类:

2011-01-03 15:58:39

How to configure solaris10 network

vi /etc/defaultrouter
192.168.1.1

vi /etc/nsswitch.conf
modify 
hosts:    files   as   hosts:   files  dns

vi /etc/inet/hosts
#
# Internet host  table
#
::1    localhost
127.0.0.1     localhost    
192.168.1.130   mysolaris    loghost


vi /etc/inet/ipnodes
#less ipnodes
#
# Internet host  table
#
::1    localhost
127.0.0.1     localhost    
192.168.1.130   mysolaris    loghost


vi /etc/inet/netmask
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.1.1     255.255.255.0

vi less hostname.rtls0 (rtls0 is your network card)
mysolaris


vi /etc/resolv.conf
domain nspsx86.domain.com
nameserver 202.96.134.33

reboot your system


How to turn solaris firewall
# svcs -a |grep network |egrep "pfil|ipf"

enable        4:36:25 svc:/network/pfil:default 
online         23:41:33 svc:/network/ipfilter:default 
#svcadm disable  svc:/network/ipfilter:default


How to connect solaris 10 remotely
After you had deployed your solaris 10, by default, you can't connect your solaris host from remote machine,
Here is the way to fix this promble:
step 1: Turn off the default cde server
#svcadm disable cde-login
After you had run the command, you can verify the changes by running command: ps -ef|grep dtlogin 
if there is no dtlogin process, it means you got it.

step 2: cd /etc/X11/gdm
Find section [xdmcp], change Enable=false as Enable=ture,and cancele comments before port=177

step 3: run command:ps -ef|grep gdm,this can verify whether some gdm processes are still there.

step 4: start gdm server
# svcs -a|grep gdm
disabled Aug_07 svc:/application/gdm2-login:default
# svcadm enable svc:/application/gdm2-login:default

阅读(908) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~