나미/라즈베리파이
우분투 마테 멀티ip
규남
2018. 9. 14. 17:54
반응형
라즈베리파이3에 멀티ip를 사용할 일이 생겨서 셋팅을 하고 테스트를 해보았다
일단 인터넷에 나와 있는 방법을 사용해 보았으나 전혀 되지 않았다......
그래서 일단 인터페이스부터 추가해서 하나씩 진행하였다.
1. 인터페이스 추가
vim /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="b8:27:eb:1c:3e:1b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
위와 같이 입력하고 저장..
단, ATTR(address)=="00:00:00:00:00:00" 이부분은 본인의 hw mac 주소를 입력(ifconfig 쳐서 확인하면됨)
vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.***.***.***
netmask 255.255.255.0
gateway 192.***.***.***
auto eth0:1
iface eth0:1 inet static
address 192.***.***.***
netmask 255.255.255.0
gateway 192.***.***.***
이렇게 설정하고 걍 reboot!!
다시 재접속후 ifconfig 하니 잘나온다.
ping도 날려보니 정상적으로 간다.
728x90
반응형