티스토리 뷰
우분투는 한개의 파일에서 인터페이스 설정이 가능하다.
기존에 GUI에서 인터페이스 설정을 했다면 해당 파일을 삭제해주면 된다.
/etc/NetworkManager/system-connection 밑에 보면 인터페이스별로 설정파일이 존재한다.
해당 파일을 삭제한 후 아래 설정을 하면 된다.
Ubuntu Desktop relies on Network Manager to set up interfaces properly. From the list of files in the package we can found that it has its own configuration file /etc/NetworkManager/NetworkManager.conf
. From NetworkManager.conf(5) manual page we get the necessary info:
- All connection settings set up in the NetworkManager are written into ini-files under
/etc/NetworkManager/system-connections
. - NetworkManager does read /etc/network/interfaces using ifupdown plugin by default. Default settings also ask NetworkManager to ignore connections in interfaces(5) file so both mechanisms could work without conflicting each other.
- Plugins are used in order they are specified in NetworkManager's config file. The default is:
plugins=ifupdown,keyfile
which means ifupdown takes precedence if it can manage required connection. - Finally, you can ask NetworkManager to control connections written in the interfaces(5) file by adding this to its config:
[ifupdown] managed=true
You may also rely on just NetworkManager itself by removing connection settings from interfaces(5) file.
참조 : http://serverfault.com/questions/362244/how-does-ubuntu-desktop-read-network-configuration
# vi /etc/network/interface
# The loopback network interface
auto lo
iface lo inet loopback
eth0은 IP를 고정시켰으며,
# eth0
auto eth0 #꼭 해주어야 리부팅시나 서비스 재구동시 인터페이스 올라옴
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 168.126.63.1
eth1은 DHCP를 통해 IP를 자동할당
# eth1
auto eth1
iface eth1 inet dhcp
위 파일을 수정한 후
# /etc/init.d/networking restart
Logincal Interface 설정 시
auto eth0:1
iface eth0:1 inet static
address 192.168.1.10
netmask 255.255.255.0
dns 설정은
# vi /etc/resolv.conf
nameserver 168.126.63.1
'Study > System' 카테고리의 다른 글
Cacti 에러 로그 - SPINE: Poller[0] FATAL: Connection Failed, Error:'1040', Message:'Too many connections' (Spine thread) (0) | 2012.08.16 |
---|---|
Ubuntu 설치 후 할일(Ubuntu 12.04 LTS 기준) (0) | 2012.08.14 |
우분투 방화벽(UFW) 설정 (1) | 2012.07.30 |
Ubuntu 12.04 LTS에 시냅틱 설치하기 (0) | 2012.07.30 |
마우스 오른쪽 메뉴에 터미널 추가하기 (0) | 2012.07.30 |
- Total
- Today
- Yesterday
- tcpdstat
- mergecap
- text2pcap
- metasploitable3
- editcap
- excel_aton
- cisco ssh
- docker
- MySQL csv
- dvwa
- bash parameter
- NX ASLR
- 리눅스 버전
- bash modification
- 윈도우 패스워드 복구
- megacli
- filesystem check
- 도커
- recovery file on linux
- tshark
- oracle 11gr2
- docker_dvwa
- capinfos
- history timestamp
- pcapng
- dvwa_bruteforce
- webhack
- ${1##*.}
- dvwa_command
- ssl decrypt
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |