사이트 내 전체검색
네트웍 스피디 설정
로빈아빠
https://cmd.kr/server/765 URL이 복사되었습니다.

본문

# lsmod

* /etc/conf.modules :
alias eth0 ne
options ne io=0x280 irq=5

# ifconfig eth0 192.168.10.5 netmask 255.255.255.0 up
# route add -net 192.168.10.0 netmask 255.255.255.0 eth0
# route add default gw 192.168.10.1 eth0

# ifup eth0 (ifdown eth0)

5-2. 네트웍설정 파일들 (예)

본인은 이 네트웍 설정 파일들을 "리눅스시스템의 꽃들" 이라고 말하고
싶다. 왜냐하면, 리눅스 시스템이 제기능을 다하기 위해는 특히 네트웍
설정을 빼놓고는 말하기 힘들기 때문이다.


5-2-1. /etc/HOSTNAME

----------/etc/HOSTNAME-----------------------------------
www.linux.ac.kr
----------end----------------------------------------------

자신의 완전한 호스네임(호스트+네트웍부분)을 기입한다.


5-2-2. /etc/host.conf

-----------/etc/host.conf------------------------------------
order hosts,bind
multi on
-----------end---------------------------------------------

바꾸거나 편집할 내용은 없다.


3-2-3. /etc/hosts

-----------/etc/hosts----------------------------------------
127.0.0.1 localhost localhost.localdomain
192.168.10.5 www.linux.ac.kr www
192.168.10.3 ns.linux.ac.kr ns
----------end----------------------------------------------


3-2-4. /etc/resolve.conf

-----------/etc/resolve.conf----------------------------------
search linux.ac.kr
nameserver 192.168.10.3
-----------end----------------------------------------------


3-2-5. /etc/nsswitch.conf

-----------/etc/nsswitch.conf--------------------------------
중략
hosts: files nisplus nis dns
(dns가 있는지 확인, 솔라리스 같은 경우 초기설치시 빠져있다.)
중략
----------end----------------------------------------------


3-2-6. /etc/conf.modules

-----------/etc/conf.modules---------------------------------
alias eth0 ne
options ne io=0x280 irq=5
---------------end-----------------------------------------


3-2-7. /etc/sysconfig/network

-----------/etc/sysconfig/network----------------------------
NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="www.linux.ac.kr"
DOMAINNAME=linux.ac.kr
GATEWAY="192.168.10.1"
GATEWAYDEV="eth0"
---------------end----------------------------------------

5-2-8. /etc/sysconfig/static-routes

-----------/etc/sysconfig/static-routes--------------------------
eth0 net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.1
----------------end----------------------------------------

구지 위의 내용을 추가할 필요는 없다. 다만 다음의 두번째 네트웍 인터
페이스 설정을 위한 하나의 예시 일 뿐이다.


5-2-9. /etc/sysconfig/network-scripts/ifcfg-eth0

-----------/etc/sysconfig/network-scripts/ifcfg-eth0-----------
DEVICE="eth0"
IPADDR="192.168.10.5"
NETMASK="255.255.255.0"
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
ONBOOT="yes"
BOOTPROTO="none"
----------------end----------------------------------------



_____________________________________________________________________
충돌검사
$ cat /proc/interrupts
CPU0
0: 12026070 XT-PIC timer
1: 176 XT-PIC keyboard
2: 0 XT-PIC cascade
3: 33156 XT-PIC eth1
5: 442877 XT-PIC eth0
12: 2 XT-PIC PS/2 Mouse
13: 1 XT-PIC fpu
14: 478515 XT-PIC ide0
15: 4 XT-PIC ide1
NMI: 0
ERR: 0

$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1

# /etc/rc.d/init.d/network

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=ltip&wr_id=213&page=6

댓글목록

등록된 댓글이 없습니다.

1,139 (2/23P)

Search

Copyright © Cmd 명령어 3.12.152.250