Linux / FreeBSD: Multiple IP Addresses on One Interface

by on May 2, 2008 · 1 comment· last updated at May 2, 2008

Q. Can one Linux / BSD system respond to multiple IP address on a single Ethernet interface? I need to run multiple web sites and mod_ssl with a single server. How do I configure my box for multiple IP address?

A. Linux / UNIX and BSD like operating systems supports multiple IP address on a single interface using a feature called ip aliasing. You can add extra IP addresses with the ifconfig command. However, I recommend modifying configuration files so that operating system remember all ips after reboot.

See our previous FAQ and How-tos about IP aliasing:

  1. FreeBSD Setup 2 IP address on One NIC ( IP alias )
  2. How to bind a range of IP’s in Debian / Ubuntu Linux
  3. Red Hat / CentOS / Fedora Linux add multiple IP address


You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 1 comment… read it below or add one }

1 Viking May 2, 2008 at 7:55 pm

Hi,
it appears that You don’t have to have multiple ip’s to achieve this.You can do pretty much the same using TLS Extensions.Take a look:

Link

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , ,

Previous Faq:

Next Faq: