로그인
Sign in
1. 현재 네트웍 인터 페이스를 출력

blue# ifconfig -a
lo0: flags=849 mtu 8232
       inet 127.0.0.1 netmask ff000000
le0: flags=863 mtu 1500
       inet 203.239.175.2 netmask ffffff00 broadcast 203.239.175.255
       ether 8:0:20:82:bf:4f

2. 만약  IP address를 203.239.175.3으로 바꿀경우

blue# vi /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost
203.239.175.2   blue.sjic.co.kr blue    loghost


변경후
127.0.0.1           localhost
203,239,175,3    blue.sjic.co.kr blue loghost
# reboot

rebooting 후

blue# ifconfig -a
lo0: flags=849 mtu 8232
       inet 127.0.0.1 netmask ff000000
le0: flags=863 mtu 1500
       inet 203.239.175.3 netmask ffffff00 broadcast 203.239.175.255
       ether 8:0:20:82:bf:4f

/etc/hostname.le0 (10 Mb) , /etc/hostname.hme0(100 Mb) 에있는 hostname과 /etc/hosts file에있는
hostname이 동일 해야함

# cat /etc/hostsname.le0
blue


3. defaultrouter의 IP address변경

# vi /etc/defaultrouter
  203.239.175.1        -> 이어드레스를 변경

# reboot을 하거나
# route add net default 203.239.175.254 1

4. netmask 변경

# vi /etc/netmasks

  128.253.0.0     255.255.255.0
  158.233.0.0     255.255.255.192

5.nameserver 변경

blue# more /etc/resolv.conf
domain sjic.co.kr
nameserver 203.239.175.1    -> 이 IP address를 변경


blue# more /etc/nsswitch.conf
#
# /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
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
automount:  files
aliases:    files
services:   files
sendmailvars:   files
blue#      
조회 수 :
694
추천 수 :
30 / 0
등록일 :
2007.12.18
15:12:04 (*.236.3.225)
엮인글 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=3030&act=trackback&key=a13
게시글 주소 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=3030
List of Articles
번호 제목 글쓴이 날짜 조회 수
151 솔라리스 10 컴파일 에러 문제 하록 2007-12-18 4927
» 기본 network setup 하록 2007-12-18 694
149 Volume Manager에서 Root Disk Mirroring 하록 2007-12-18 1349
148 ce 인터페이스 속도 설정 하록 2007-12-18 610
147 UNIX System Crash Dump 분석스크립트 (analysis.sh) 하록 2007-12-18 988
146 Process Name별로 Kill하는 Script 하록 2007-11-13 616
145 Solaris 10 보안 적용 스크립트 하록 2007-11-02 1812
144 ps 명령어 Full List 하록 2007-06-20 601
143 솔라리스 부트 매니저를 이용한 부트 디스크 미러링 방법 하록 2007-03-20 948
142 Sun One Webserver 설치 하록 2007-03-19 487
141 새로운 장치를 달고 device file을 만들려면? 하록 2007-03-06 546
140 ufsdump & ufsrestore Manual 하록 2007-01-31 1045
139 [SUN Disksuite] Metadb & Metadevice 구성 매뉴얼 하록 2007-01-22 810
138 SOLARIS한글 사용하기 하록 2006-11-30 524
137 솔라리스10 x86 에서의 POP3 서버 구축!! 하록 2006-11-23 779
136 IP Filter 사용법 하록 2006-11-23 974
135 Solaris Security tools 50종 하록 2006-11-23 710
134 fsck에 관한 내용, 갑자기 다운 되었을 경우 하록 2006-11-23 784
133 OBP(Open boot PROM) command 정리 하록 2006-11-23 745
132 솔라리스10 x86 에 sendmail 8.13.3 설치하기 하록 2006-11-23 1291