9. 도서관/__사. Network

솔라리스에서 호스트 이름 혹은 IP 주소 변경하기

행복 금융 2008. 10. 15.

순서


개요

이 테크 팁은 운용중인 솔라리스 시스템의 호스트 이름 혹은 IP 주소를 바꾸는 방법에 대해 설명합니다.

이 정보는 썬 InfoDoc 21252, "How to Change the hostname and/or IP Address Without Running the sys-unconfig Command" 를 기반으로 만들어 졌습니다. (좀 더 자세한 정보는 SunSolve 를 참고하시기 바랍니다; 컨텐츠는 썬 서비스 플랜을 계약 하신 분께 공개되어 있습니다.)


옵션 1: sys-unconfig 이용하기

sys-unconfig 를 사용하면 여러개의 파일들을 기본값으로 되돌릴 수 있고, 그 다음에 호스트를 셧다운 시킵니다. 재부팅에 관해서 멘 페이지에서 설명되지 않은 것은 이러한 파일들을 재생성하도록 설정에 관한 질문을 받는 다는 것입니다. 이러한 질문들은 서버가 처음 배달 됐을때 혹은 운영체제를 제일 처음 로딩 시켰을때 받는 질문과 동일 합니다.

이제 부팅 과정에서 다음과 같은 화면을 보게 될 것입니다:

 Select the language you want to use: <select your language>

Select a Locale,
Please make a choice (0 - 59), or press h or ? for help:
<select your location>

What type of terminal are you using?
Type the number of your choice and press Return:
<select your terminal type, I use a DEC VT100>

F2 continue, F2 continue

Network Connectivity
Networked [X] Yes

DHCP
Use DHCP [X] No

Primary Network Interface
Primary network interface [X] eri0

Host Name <hostname>

IP Address <ipaddress>

Subnets
System part of a subnet [X] Yes

Netmask
<netmask>

IPv6
Enable IPv6 [X] No

Set a default Route
[X] Specify one
Default Route IP Address
Router IP Address: <defaultrouter>

Confirm Information
F2 continue

Configure Security Policy:
Configure Kerberos Security [X] No

Confirm Information
F2 continue

Name Service
Name service [X] DNS

Domain Name
<dnsdomain>

DNS Server Address
Servers IP Address: <nameserver1>
Servers IP Address: <nameserver2>
Servers IP Address:

DNS Search List
Search Domain: <dnsdomain>
Search Domain:
Search Domain:
Search Domain:
Search Domain:

Confirm Information
F2 continue

Time Zone
Regions [X] <select your region>

Time Zone
Time zones [X] <select your time zone>

Date and Time
> Accept the default date and time or enter new values.

옵션 2: 파일 수정하기

호스트 이름 변경

솔라리스7 이전 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.

/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

이제 시스템을 재부팅 합니다.

솔라리스7 에서 9 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.

/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes

이제 시스템을 재부팅 합니다.

솔라리스10 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.

/etc/inet/ipnodes

이제 시스템을 재부팅 합니다.

IP 주소 변경

솔라리스7 이전 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/hostname.<interfaces>

여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.

/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:

/etc/inet/netmasks
/etc/defaultrouter
/etc/resolv.conf

이제 시스템을 재부팅 합니다.

솔라리스7 에서 9 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/hostname.<interfaces>

여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.

/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes

만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:

/etc/inet/netmasks
/etc/defaultrouter
/etc/resolv.conf

이제 시스템을 재부팅 합니다.

솔라리스10 버전은 다음의 파일들을 수정합니다:

/etc/inet/hosts
/etc/hostname.<interfaces>

여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.

/etc/inet/ipnodes

만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:

/etc/inet/netmasks
/etc/defaultrouter
/etc/resolv.conf

이제 시스템을 재부팅 합니다.

'9. 도서관 > __사. Network' 카테고리의 다른 글

h.225  (0) 2008.10.16
VoIP 네트워크의 핵심, H.323 ②  (0) 2008.10.16
solaris IP 변경  (0) 2008.10.15
sub쿼리 말구//  (0) 2008.10.15
VoIP, 빌려쓰면 안되겠니?  (0) 2008.10.14

댓글

💲 추천 글