ip를 바꾸기전에 네트워크를 닫은후 바꾼후에 네트워크를 연다.
네트워크 닫기
$ sudo ifdown eth0
네트워크 열기
$ sudo ifup eth0
cd /etc/network
vi /interfaces
or
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcase 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1 168.126.63.2
vi /etc/resolv.conf //도메인 주소
ip를 자동으로 할당받고 싶을때
vi /etc/network/interfaces 에서
iface eth0 inet static 이하의 부분을 iface eth0 inet dhcp로 수정
리눅스 디렉토리 설명 블로그
http://hax1212.ilug.or.kr/textyle/54743
vi편집기 명령어
http://blog.foxb.kr/1
'백트랙' 카테고리의 다른 글
백트랙 커스터 마이징 (0) | 2012.06.18 |
---|---|
업데이트및 추가적인 소프트웨어 설치 (0) | 2012.06.18 |
네트워크 서비스 시작 (0) | 2012.06.18 |
무선 네트워크 설정 (0) | 2012.06.18 |
WRITTEN BY
- rabbbit
필기
,