98 文字
1 分
Debian 複数 IPアドレス

Debian 5.0.7 にて1枚のNICに複数のIPアドレスを割り当てるメモ

Terminal window
[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 interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface 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:0
iface 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/
作者
Yuki Matsukura
公開日
2011-06-06
ライセンス
CC BY-NC-SA 4.0

コメント