Virtual Network Interface

From GridTrak

Jump to: navigation, search

Virtual Interfaces

Sep 2, 2008
Thank you Mark M. from the http://www.baltolug.org mailing list for your review and fix!
Reference: Section 10.6.1.7
Virtual Interfacing is used to assign multiple IP addresses to a single physical Interface in the /etc/network/interfaces file. The following example sets eth0's IP addresses to 192.168.5.1 and 192.168.5.2.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 192.168.5.1
  netmask 255.2555.255.0
  broadcast 192.168.5.255
  network 192.168.5.0

auto eth0:0
iface eth0:0 inet static
  address 192.168.5.2
  netmask 255.2555.255.0
  broadcast 192.168.5.255
  network 192.168.5.0

auto eth1
iface eth1 inet static
  address 69.17.29.133
  netmask 255.255.255.224
  broadcast 69.17.29.159
  network 69.17.29.128
  gateway 69.17.29.129

Private Network IP Address Scopes

  • Class A: 10.0.0.0 to 10.255.255.255; 10.0.0.0/8
  • Class B: 172.16.0.0 to 172.31.255.255; 172.16.0.0/12
  • Class C: 192.168.0.0 to 192.168.255.255; 192.168.0.0/16