Debian 複数 IPアドレス

Debian5.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 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

matsubokkuri

Please feel free to contact me via e-mail, twitter and facebook!

あわせて読みたい

コメントを残す