기능/라즈베리파이
Raspberry multi IP address
darkdevilness
2019. 7. 8. 22:42
728x90
Legacy method
This /etc/network/interfaces text assigns three IP addresses to eth0.
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.42/24
gateway 192.168.1.1
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
address 192.168.1.43/24
auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
address 192.168.1.44/24
728x90