Johns Hopkins Linux Users GroupMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Virtual Network Interface

From Johns Hopkins Linux Users Group

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

Retrieved from "http://www.jhlug.org/wiki/index.php/Virtual_Network_Interface"

This page has been accessed 213 times. This page was last modified on 4 April 2009, at 17:10.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More…