리눅스
리눅스 Secondary ip 설정
랩퍼우26
2018. 11. 12. 21:49
728x90
# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth0:1
# vim ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.1.2
NETMASK=255.255.255.0
# ifup eth0:1 또는 service network restart
728x90