98 文字
1 分
Debian 複数 IPアドレス
Debian 5.0.7 にて1枚のNICに複数のIPアドレスを割り当てるメモ
[root@dev2 /etc/network]# cat /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).
# The loopback network interfaceauto loiface lo inet loopback
# The primary network interfaceallow-hotplug eth0
auto eth0iface eth0 inet static address 192.168.0.41 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1
auto eth0:0iface eth0:0 inet static address 192.168.0.42 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 Debian 複数 IPアドレス
https://blog.teraren.com/posts/debian-ip-alias/