shop-wiz logo
Follow Us on Facebook Follow Us on Google+ Follow Us on Twitter Follow Us on LinkedIn
제목 네트워크(network) 설정
등록일 2012.01.17 HIT 4163 작성자 폰돌
3. 네트워크 설정

http://www.jopenbusiness.com/tc/oss/entry/CentOS-%EB%84%A4%ED%8A%B8%EC%9B%8C%ED%81%AC-%EC%84%A4%EC%A0%95

http://kr.blog.yahoo.com/aoutopian/240174.html


1. vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=C-SEARCH001.oneul.com
GATEWAY=14.41.58.129

2. vi /etc/host.conf
order hosts,bind

3. vi /etc/hosts
127.0.0.1       test.shop-wiz.com :test localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
14.41.58.156    test.shop-wiz.com test 

4. vi /etc/resolv.conf
search shop-wiz.com
nameserver 168.126.63.1
nameserver 168.126.63.2

5. vi /etc/sysconfig/network-scripts/ifcfg-*

6. vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
BROADCAST=14.41.58.191
HWADDR=00:50:56:A0:2F:58 <!-- 이것은 어떻게 생성하는가(없어도 에러는 발생하지 않음)
IPADDR=14.41.58.156 <!-- 변경
NETMASK=255.255.255.192
NETWORK=14.41.58.128
ONBOOT=yes

7. vi /etc/sysconfig/network-scripts/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback


8. /etc/sysconfig/network-scripts/route-* <!-- 파일 없음



9. /etc/services <!--파일없음
10. /etc/protocols <!-- 파일없음


service  network  restart
댓글보기
등록된 댓글이 없습니다.

Powered by shop-wiz since 2002, e-mail:wangta69@naver.com