상세 컨텐츠

본문 제목

Ubuntu ip 설정

컴터 설정/리눅스

by 무C 2014. 11. 11. 16:55

본문

sudo vim /etc/network/interfaces

 

ip 자동 할당

-------------------------------------------------------------------------------

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

-------------------------------------------------------------------------------

 

ip 수동 할당

-------------------------------------------------------------------------------

# auto eth0
# iface eth0 inet dhcp

 

# menual
auto eth0  
iface eth0 inet static   
address 192.168.222.2  
netmask 255.255.255.0  
netwrok 192.168.0.0   
broadcast 192.168.222.255
gateway 192.168.222.1
dns-nameservers 168.126.63.1 168.126.63.2 8.8.4.4

-------------------------------------------------------------------------------

 

네트워크 재시작

sudo /etc/init.d/networking restart

 

ping 8.8.4.4

반응형

'컴터 설정 > 리눅스' 카테고리의 다른 글

Ubuntu 20.10 root auto login  (0) 2022.03.10
Ubuntu log 보기  (0) 2014.11.11
The Mozilla plugin  (0) 2014.10.29
우분투 14.04 nvidia 드라이버 설치  (0) 2014.08.29
우분투 성능 개선 compiz off  (0) 2014.07.10

관련글 더보기

댓글 영역