■ 리눅스에서 네트워크 설정파일
cat /etc/sysconfig/network
NETWORKING=yes → 통신여부
NETWORKING_IPV6=no
HOSTNAME=JSLTD → 호스트네임
GATEWAY=127.0.0.254 → 게이트웨이설정
■ 네트워크 인터페이스 설정파일
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5764M Gigabit Ethernet PCIe
DEVICE=eth0 → 하나면 eth0 두개면, eth1
BOOTPROTO=static
BROADCAST=127.0.0.255
HWADDR=D4:85:*:*:1A:AD
IPADDR=127.0.0.1
NETMASK=255.255.255.0
NETWORK=127.0.0.1
ONBOOT=yes → 네트워크 인터페이스를 부팅시 활성화 후 사용할것인지 여부
■ 기본 DNS설정파일
cat /etc/resolv.conf
nameserver 168.126.63.1
■ netconfig
/usr/sbin/system-config-network
■ 리눅스서버 라우팅테이블
[root@~]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.32.1.254 0.0.0.0 UG 0 0 0 eth0
■ 네트워크 인터페이스 확인
[root@~]# ifconfig
eth0 Link encap:Ethernet HWaddr D4:85:*:*:1A:AD
inet addr:127.0.0.1 Bcast:127.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::d685:64ff:fe99:1aad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:102952 errors:0 dropped:0 overruns:0 frame:0
TX packets:1598 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12399590 (11.8 MiB) TX bytes:142598 (139.2 KiB)
Interrupt:58 Memory:f7000000-f7010000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2454 (2.3 KiB) TX bytes:2454 (2.3 KiB)