Linux / FreeBSD: Multiple IP Addresses on One Interface
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:
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Monitor or sniff Apache http packets
- Linux configure Network Address Translation or NAT
- FTP Maximum number of clients exceeded error and solution
- Openbsd change, add or display default gateway
- Linux creating or adding new network alias to a network card (NIC)
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: alias, aliasing, configuration files, ethernet interface, fedora, how tos, ifconfig command, ip address, ip addresses, ips, operating systems, red hat, Ubuntu Linux ~ Last updated on: May 2, 2008



May 2nd, 2008 (2 weeks ago) 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