A week ago I installed Ubuntu 7.10 with LAMP and Webmin, and I’ve been playing around with it from time to time. Now I was able to Configure Apache to host two test site using two different ip address.
Here’s what I did to setup multiple ip’s or configure virtual interface in webmin:
- Open Webmin and go to Networking.
- Under Networking click on Network Configuration,
- Now On the right pane, click on Network Interfaces, you will then see a list of your NICs.
- Click on the NIC that you want to configure. If you only have one NIC installed you should see eth 0 by default.
- In my case my dell dimension e521 has only one NIC installed so I configure eth0.
- By the default eth0 is configured to obtain an ip address automatically from a dhcp server, if you want to assign a static ip address choose the Static option and enter your ip address, the subnet mask and the broadcast address. For more information on ip addressing and broadcast addresses click here.
- If you want to assign multiple or more than one ip address in your NIC (eth0) you should add a virtual interface under eth0. To add a virtual interface first you click on eth0 and click Add virtual interface. Give it a name, enter the ip address, subnet mask and again the broadcast address then click on Create and Apply.



Thanks! Came in handy.