Solaris Network Setting

Solaris 2006. 2. 22. 08:05 posted by CecilDeSK
반응형

1. /etc/hosts file을 열고

127.0.0.1 localhost
xxx.xxx.xxx.xxx hostname loghost
(자신의 ip 주소) (system이름)

와 같이 수정해준다


2. /etc/defaultrouter file을 만들고

xxx.xxx.xxx.xxx (gateway 주소값을 넣는다.)


3. /etc/resolv.conf file을 만들고 다음과 같이 만든다.

domain xxxxxxx
(domain name)
nameserver xxx.xxx.xxx.xxx
(네임 서버의 ip주소)


4. /etc/nsswitch.conf file을 열고


#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns
ipnodes: files ~~~~~dns라는 말을 추가하여준다.
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files


5. /etc/inet/netmasks file을 열고

맨밑부분에 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. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
xxx.xxx.xxx.xxx
~~~~~~~~~~~~~~~~ 이부분에 netmask값을 넣어준다.

6 /etc/hostname.hme0 file을 만들고 hostname을 넣어준다.

7 마지막으로 시스템을 리부팅한다.

PS. 최근 추가로 수정해야되는 화일들..
/etc/inet/hosts
/etc/inet/ipnodes
/etc/hostname.[NIC 이름]
/etc/nodename


반응형