OS & System
ubuntu network 설정하기
대단한넘
2013. 1. 15. 14:21
CentOS 와는 또다른 형태이다.
레드헷 계열의 CentOS는
/etc/sysconfig/network-scripts/ifcfg-eth0 이 네트워크 세팅관련 스크립트 파일의 위치였는데,
ubuntu는
/etc/network/interfaces 파일이 관련 파일이다.
내부 설정내용은 비슷하지만 참고삼아 메모한다.
vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.100.220
gateway 192.168.100.1
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
interfaces 파일이 없다면 만들어준다.