60.Unix2008. 11. 7. 13:13
반응형

solaris를 설치하고 나서 Network이 되지 않을 때 체크할 사항들입니다.

1. /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
[ IP Address ] hostname loghost

위 파일은 자신의 컴퓨터의 IP 주소와 이름(hostname)을 지정해 준다.
각각의 구분은 공백으로 구분하므로 반드시 공백을 띄워준다.
파일을 열어 [ IP Address ] 란에 자신의 IP 주소를 적어준다.


2. /etc/defaultrouter
기본 Gateway를 지정하는 파일이다.
기본적으로 생성되어 있지 않기 때문에 새로 만들어 준다.
# cat /etc/defaultrouter
192.168.0.1

아래와 같이 커맨드로 바로 지정해 줄 수도 있다.
# route add default xxx.xxx.xxx.xxx 1

3. /etc/nsswitch.conf
Nameserver를 지정하는 파일이다.
nameserver로 DNS를 사용할 것이기 때문에 다음과 같이 추가해 준다.
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
passwd: files
group: files
hosts: files dns
ipnodes: files
networks: files
....
위와 같이 "hosts: files" 줄의 마지막에 칸을 띠고 dns를 추가해 준다.

4. /etc/resolv.conf
DNS 서버를 지정해 준다.

# vi /etc/resolv.conf
domain [domain name]
nameserver xxx.xxx.xxx.xxx(DNS server IP)

5. /etc/netmasks
위 파일을 열어 자신의 Netmask 값을 넣어 준다.
#
# The netmasks file associates Internet Protocol (IP) address
......... 중 략 .................
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
[네트워크 주소][서브넷 마스크]

6. Reboot
# reboot



1. /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
[ IP Address ] hostname loghost

위 파일은 자신의 컴퓨터의 IP 주소와 이름(hostname)을 지정해 준다.
각각의 구분은 공백으로 구분하므로 반드시 공백을 띄워준다.
파일을 열어 [ IP Address ] 란에 자신의 IP 주소를 적어준다.


2. /etc/defaultrouter
기본 Gateway를 지정하는 파일이다.
기본적으로 생성되어 있지 않기 때문에 새로 만들어 준다.
# cat /etc/defaultrouter
192.168.0.1

아래와 같이 커맨드로 바로 지정해 줄 수도 있다.
# route add default xxx.xxx.xxx.xxx 1

3. /etc/nsswitch.conf
Nameserver를 지정하는 파일이다.
nameserver로 DNS를 사용할 것이기 때문에 다음과 같이 추가해 준다.
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
passwd: files
group: files
hosts: files dns
ipnodes: files
networks: files
....
위와 같이 "hosts: files" 줄의 마지막에 칸을 띠고 dns를 추가해 준다.

4. /etc/resolv.conf
DNS 서버를 지정해 준다.

# vi /etc/resolv.conf
domain [domain name]
nameserver xxx.xxx.xxx.xxx(DNS server IP)

5. /etc/netmasks
위 파일을 열어 자신의 Netmask 값을 넣어 준다.
#
# The netmasks file associates Internet Protocol (IP) address
......... 중 략 .................
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
[네트워크 주소][서브넷 마스크]

6. Reboot
# reboot

Posted by 1010