Results 1 to 4 of 4

Thread: Adding static IPs and Apache Virtual hosting

  1. #1
    Join Date
    Dec 2009
    Beans
    8

    Angry Adding static IPs and Apache Virtual hosting

    i'm running ubuntu 10.04 server 64bit. i need to add some static ips. i edited the /etc/networking/interfaces so it looks like this



    iface eth0 inet static
    address xxx.x.xxx.31
    netmask 255.255.255.0
    network xxx.x.xxx.0
    broadcast xxx.x.xxx.255
    gateway xxx.x.xxx.75

    iface eth0:1 inet static
    address xxx.x.xxx.43
    netmask 255.255.255.0
    network xxx.x.xxx.0
    broadcast xxx.x.xxx.255
    gateway xxx.x.xxx.75


    then i restarted the service /etc/init.d/networking restart

    i can ping it from the server but i can't ping it from another machine on the same network? i checked ufw and it's disabled. is there any other firewall configs i missed? is it a firewall issue? the first static ip works. i can ping it locally and on other machines. there are 2 websites hosted on the 1st ip. now i need to host other websites with their own ip.

    please help.
    Last edited by w1n78; September 29th, 2010 at 08:27 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Adding static IPs and Apache Virtual hosting

    My own preference is to set static IPs in my router rather than at Ubuntu's end, partly because it's sometimes easier, and partly because it can help avoid conflicts if you need to hook up your machine to someone else's network for some reason.
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  3. #3
    Join Date
    Dec 2009
    Beans
    8

    Question Re: Adding static IPs and Apache Virtual hosting

    Thanks but unfortunately I don't have access to the router. The IT guys just give me IPs, dns info and gateway info. Any other ideas? I'm a noob to linux, kinda.

    Quote Originally Posted by lisati View Post
    My own preference is to set static IPs in my router rather than at Ubuntu's end, partly because it's sometimes easier, and partly because it can help avoid conflicts if you need to hook up your machine to someone else's network for some reason.

  4. #4
    Join Date
    Dec 2009
    Beans
    8

    Smile Re: Adding static IPs and Apache Virtual hosting


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •