sudo vi /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dynamic
고정 IP 변경
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
sudo vi /etc/resolv.conf
nameserver 8.8.8.8
재시작
sudo /etc/init.d/networking restart
이게 안되는 경우
$ sudo service networking restart
$ sudo ifdown eth0 && sudo ifup eth0
eth0 명치 변경하기
cat /etc/udev/rules.d/70-persistent-net.rules
댓글
댓글 쓰기