Re: virtual interfaces

From: Adam Aube (aaube01_at_baker.edu)
Date: 12/06/04

  • Next message: Steve Block: "Re: Question about usbkey lights"
    To: debian-user@lists.debian.org
    Date: Mon, 06 Dec 2004 00:10:43 -0500
    
    

    Antonio Rodriguez wrote:
    > On Sun, Dec 05, 2004 at 11:07:55PM +1100, Sam Watkins wrote:
    >> On Sat, Dec 04, 2004 at 11:07:08AM -0500, Antonio Rodriguez wrote:

    >> > 1. adding the needed paragraph to /etc/network/interfaces to reflect
    >> > the virtual iface with 'anotherIP',
    >> > 2. adding the corresponding file in /etc/apache2/sites-available,
    >> > 3. creating the symlink in /etc/apache2/sites-enabled
    >> > 4. stopping, starting, reloading again networking and apache2

    >> > still can't get the added domain to respond. My question is: is there
    >> > any other step that I am missing, or should I make the assumption that
    >> > the 'anotherIP' is not pointing to my physical machine?

    >> Did you type "ifconfig" to check that the IP alias is set up?
    >> it should show up as eth0:1 or whatever number you gave it.

    >> can you ping the new IP address from the machine running apache2?
    >> what about from a different machine?

    > Here is what happens:
    > dedicated-deb-17boom:/etc/apache2# ping 'anotherIP'
    > PING 'anotherIP' ('anotherIP') 56(84) bytes of data.
    >>From 'mainIP' icmp_seq=1 Destination Host Unreachable
    >>From 'mainIP' icmp_seq=2 Destination Host Unreachable
    >>From 'mainIP' icmp_seq=3 Destination Host Unreachable

    > It seems to be a configuration problem in my side, here is what I
    > have:

    > dedicated-deb-17boom:/etc/apache2# ifconfig
    > eth0 Link encap:Ethernet HWaddr 00:01:29:94:A2:1B
    > inet addr:'mainIP' Bcast:'mainIPfragment'.255

    > eth0:0 Link encap:Ethernet HWaddr 00:01:29:94:A2:1B
    > inet addr:'anotherIP' Bcast:'mainIPfragment'.255

    Here's the problem - eth0 and eth0:0 are identical, so you have defined the
    interface twice.

    > and also 'cat /etc/network/interfaces' shows

    > # The secondary network interface (virtual 1)
    > auto eth0:0
    > iface eth0:0 inet static

    Change these to eth0:1 and you should be all set.

    Adam

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Steve Block: "Re: Question about usbkey lights"

    Relevant Pages

    • Re: Antwort: Re: Xen 3.0.3 and VLAN
      ... auto eth0.94 ... iface eth0.94 inet static ... netmask 255.255.255.0 ... If your data center is using a Cisco network (and chances are, ...
      (Debian-User)
    • Re: Failing to use Linux PC as router
      ... iface lo inet loopback ... auto eth0 ... iface eth0 inet dhcp ... dhcp access for BOTH computers ??? ...
      (Debian-User)
    • Re: unable to bring up eth0
      ... and eth0 is your connection to the ... auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet dhcp ...
      (Debian-User)
    • Re: Have to Bring Up Wireless Network Manually
      ... I have had difficulties in the past with this card but have ... iface lo inet loopback ... auto eth0 ... iface eth0 inet dhcp ...
      (Ubuntu)
    • Re: Feisty Meta physics
      ... wireless and works. ... iface lo inet loopback ... auto eth1 ... iface eth1 inet dhcp ...
      (Ubuntu)