Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

No eth0

Help
2008-08-22
2013-05-09
  • Edward Cherlin
    Edward Cherlin
    2008-08-22

    This is my third time installing coLinux. I followed the directions on

    http://wiki.colinux.org/Getting_Started_with_coLinux_-_Long_manual
    http://wiki.colinux.org/Network#Recommended_Setup

    Both appear to be somewhat out of date.

    Windows says my coLinux TAP connection is connected, and can ping it at 192.168.0.1, but coLinux can't send across it or even find it.

    ping says

    connect: Network unreachable

    ifconfig fails to find eth0, or indeed anything.

    Data:

        * coLinux release version 0.7.3
        * Ubuntu-7.10.ext3.2gb
        * Windows XP 5.1.2600 SP 2 Build 2600
        * Firewall on TAP only is turned off
        * No other changes made to Windows
        * TAP-Win32 V8 virtual adapter using Internet Connection Sharing

    /etc/network/interfaces minus comments

    iface lo inet loopback

    iface eth0 inet static
        address 192.168.0.40
        network 192.168.0.1
        netmask 255.255.255.0
        broadcast 192.168.0.255

    ifconfig eth0
    eth0: error fetching interface information: Device not found

    default.conf minus introductory comments

    # The default kernel
    kernel=vmlinux

    # File contains the root file system.
    # Download and extract preconfigured file from SF "Images for 2.6".
    cobd0="c:\coLinux\Ubuntu-7.10.ext3.2gb"

    # Swap device, should be an empty file with 128..512MB.
    cobd1="c:\coLinux\swap128.fs"

    # Tell kernel the name of root device (mostly /dev/cobd0,
    # /dev/cobd/0 on Gentoo)
    # This parameter will be forward to Linux kernel.
    root=/dev/cobd0

    # Additional kernel parameters (ro = rootfs mount read only)
    #ro

    # Initrd installs modules into the root file system.
    # Need only on first boot.
    initrd=initrd.gz

    # Maximal memory for linux guest
    mem=256

    # Network interfaces
    network index="0" type="tap" name="coLinuxTap"
    network index="1" name="coLinuxBridge" type="bridged"

    # Slirp for internet connection (outgoing)
    # Inside running coLinux configure eth0 with this static settings:
    # ipaddress 10.0.2.15   broadcast  10.0.2.255   netmask 255.255.255.0
    # gateway   10.0.2.2    nameserver 10.0.2.3
    #eth0=slirp

    # Tuntap as private network between guest and host on second linux device
    #eth1=tuntap

    # Setup for serial device
    #ttys0=COM1,"BAUD=115200 PARITY=n DATA=8 STOP=1 dtr=on rts=on"

    # Run an application on colinux start (Sample Xming, a Xserver)
    #exec0=C:\Programs\Xming\Xming.exe,":0 -clipboard -multiwindow -ac"

    in Windows,

    ipconfig /all with IP addresses for site x'ed out.

    Windows IP Configuration

            Host Name . . . . . . . . . . . . : maskless-133122

            Primary Dns Suffix  . . . . . . . : corp.maskless.com

            Node Type . . . . . . . . . . . . : Unknown

            IP Routing Enabled. . . . . . . . : Yes

            WINS Proxy Enabled. . . . . . . . : No

            DNS Suffix Search List. . . . . . : corp.maskless.com

                                                corp.maskless.com

                                                maskless.com

    Ethernet adapter Local Area Connection:

            Connection-specific DNS Suffix  . : corp.maskless.com

            Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controller

            Physical Address. . . . . . . . . : xx-xx-xx-xx-xx-xx

            Dhcp Enabled. . . . . . . . . . . : Yes

            Autoconfiguration Enabled . . . . : Yes

            IP Address. . . . . . . . . . . . : x.x.x.x

            Subnet Mask . . . . . . . . . . . : 255.255.240.0

            Default Gateway . . . . . . . . . : x.x.x.x

            DHCP Server . . . . . . . . . . . : x.x.x.x

            DNS Servers . . . . . . . . . . . : x.x.x.x

                                                x.x.x.x

            Lease Obtained. . . . . . . . . . : Friday, August 22, 2008 11:29:56

            Lease Expires . . . . . . . . . . : Saturday, August 23, 2008 11:29:56

    Ethernet adapter coLinuxTap:

            Connection-specific DNS Suffix  . :

            Description . . . . . . . . . . . : TAP-Win32 Adapter V8 (coLinux)

            Physical Address. . . . . . . . . : 00-FF-16-1E-4D-A7

            Dhcp Enabled. . . . . . . . . . . : No

            IP Address. . . . . . . . . . . . : 192.168.0.1

            Subnet Mask . . . . . . . . . . . : 255.255.255.0

            Default Gateway . . . . . . . . . :

     
    • Henry N.
      Henry N.
      2008-08-22

      Hello Edward,

      > # Network interfaces
      > network index="0" type="tap" name="coLinuxTap"
      > network index="1" name="coLinuxBridge" type="bridged"

      I think the Wiki needs to be more clean, that the xml config is outdated.
      Please change your config into:

      eth0=tuntap
      eth1=pcap-bridge,"coLinuxBridge"

      Henry

       
    • Henry N.
      Henry N.
      2008-08-22

      The Bridge needs to have the name of your real network adapter. I would say this is correctly:

      eth0=tuntap
      eth1=pcap-bridge,"Local Area Connection"

       
    • Edward Cherlin
      Edward Cherlin
      2008-08-22

      Fixed it. I needed to add the line

      eth0=tuntap

      to my default.conf

      We need to update the Wiki to replace XML configuration information with text format, and we need to organize something like a decision tree for users to find their installation and configuration requirements.