Configure multiple ip address on ubuntu 7.10

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:

  1. Open Webmin and go to Networking.
  2. Under Networking click on Network Configuration,
  3. Now On the right pane, click on Network Interfaces, you will then see a list of your NICs.
    networkconfig1.jpg
  4. Click on the NIC that you want to configure. If you only have one NIC installed you should see eth 0 by default.
  5. In my case my dell dimension e521 has only one NIC installed so I configure eth0.
    networkconfig2.jpg
  6. 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.
  7. 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.
 

One response to “Configure multiple ip address on ubuntu 7.10”

  1. Mac

    Thanks! Came in handy.

Leave a Reply

Categories