기 타 네트워킹 설정 하기
2011.12.19 12:50
네트워킹 설정이 어떤 파일에 저장되는지 알고 싶습니다.
[root@jhkim /root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:27:36:03:D6
inet addr:210.53.249.49 Bcast:210.53.249.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16742 errors:0 dropped:0 overruns:0 frame:0
TX packets:2050 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0x7000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
[root@jhkim /root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
jhkim.wowlinux. * 255.255.255.255 UH 0 0 0 eth0
210.53.249.0 * 255.255.255.128 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 210.53.249.1 0.0.0.0 UG 0 0 0 eth0
위의 모든 설정은 다음의 파일에 모두 저장이 되어 있습니다.
#cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
210.53.249.49 jhkim.wowlinux.com jhkim
#cat /etc/HOSTNAME
jhkim.wowlinux.com
#cat /etc/conf.modules
alias eth0 ne <- NE1000/2000 호환모듈
option ne io=0x220 irq=10 <- 이더넷 카드의 IO포트와 IRQ 설정
#cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=jhkim.wowlinux.com
DOMAINNAME=wowlinux.com
GATEWAY=210.53.249.1
GATEWAYDEV=eth0
#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=210.53.249.127
IPADDR=210.53.249.49
NETMASK=255.255.255.128
NETWORK=210.53.249.0
ONBOOT=yes
#cat /etc/resolv.conf
search wowlinux.com
nameserver 168.126.63.1 (코넷 DNS)
#cat /etc/sysconfig/pcmcia : 노트북의 PCMCIA의 경우 별도의 이더넷카드 모듈을 올리지 않는다.
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=
댓글 [1]
-
개뿔 2011.12.22 14:48
좋은강좌들 고맙습니다.