linux network 설정
카테고리 없음2016. 7. 1. 19:00
network infomation 확인 - Shortcht (vi /etc/sysconfig/network-scripts/ifcfg-eth0)
[root@XXX bin]# cd /etc/sysconfig/network-scripts
[root@XXX network-scripts]# vi ifcfg-eth0
[root@XXX network-scripts]#
vi ifcfg-eth0 example
DEVICE=eth0
TYPE=Ethernet
UUID=xxxxxxxx-aaf5-4945-ba3a-xxxxxxxxxxxx
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:25:90:54:D7:0C
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
# phsical ip address
IPADDR=222.222.22.222
NETMASK=255.255.252.0
GATEWAY=222.222.88.1
DNS1=220.222.1.24
DNS2=220.222.4.25
기존 network 확인
[root@XXX network-scripts]# ls /sys/class/net
eth0 eth1 lo
eth0 -> 기본