Category
show
전체 (775)
웹표준, 웹접근성™ (5)
웹프로그래밍™ (360)
웹기획™ (0)
웹디자인™ (5)
서버™ (32)
데이터베이스™ (43)
개발자료 (9)
트랜드 (60)
Study English (2)
블루비 (70)
오피스 다이어리 (19)
Textcube (2)
이슈 (20)
컴퓨터 악세사리 (18)
엔터테인먼트 (24)
좋은글 (73)
재테크 (1)
이벤트 (4)

우분투 (7.10) Server Network, DNS 설정

서버™/Ubuntu 2007/12/06 05:42 by 블루비 Total 1340 : Today 5 : Yesterday 0

고정아이피 설정

dev@ubuntu:~$ vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.78
netmask 255.255.255.0
network xxx.xxx.xxx.0
broadcast xxx.xxx.xxx.255
gateway xxx.xxx.xxx.1


DNS 설정은 다음과 같이 합니다 (/etc/resolv.conf 은 처음에 없어서 만들어서 사용하였음.)

dev@ubuntu:~$ cat /etc/resolv.conf
nameserver xxx.xxx.xxx.1
nameserver xxx.xxx.xxx.1

물론 상황에 따라 마음대로, 예를 들면 Kornet의 주소인 168.126.63.1 과 같은 주소.


참고로 DHCP 를 사용한다면.. (유동아이피.)

/etc/network/interfaces 는 이렇게..

auto lo
auto eth0
iface lo inet loopback
iface eth0 inet dhcp

/etc/resolv.conf 는 DHCP 클라이언트가 알아서 해주므로 안해두 된다.

DHCP 클라이언트 설치는

# apt-get 사용시 -
apt-get install dhcp-client
# aptitude 사용시 -
aptitude install dhcp-client

(dhcp-client 가 설치된 경우 실행가능한 명령 'dhclient' 가 부팅시 네트워크 데몬에 의해 실행됨)

기타:
1. 랜카드 감지 확인은 'dmesg' 로 가능.
2. 설정 적용은 '/etc/init.d/networking restart' 나 'ifdown' 후 'ifup' 으로 가능.

출처 : http://2.azki.org/153
2007/12/06 05:42 2007/12/06 05:42

TRACKBACK :: http://blueb.net/blog/trackback/973

Leave a Comment
[로그인][오픈아이디란?]
1  ... 261 262 263 264 265 266 267 268 269  ... 775 

달력

«   2008/11   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30