Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Networking coLinux with NO Network Connection (HowTo)
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Tux's lil' helper
Tux's lil' helper

Joined: 11 Dec 2003
Posts: 137
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 30, 2004 2:23 pm    Post subject: Networking coLinux with NO Network Connection (HowTo) Reply with quote

So I was able to get coLinux working under WinXP on my laptop. But I needed to do some Linux work while not on a network. So, I decided to see if I could set up my networking TAP so that I could use the Windows side of the laptop to access the coLinux session with a browser even when disconnected. Gee it worked! Here's how I did it!

My coLinux configuration file, default.colinux.xml, is pretty standard:
coLinux conf wrote:

<?xml version="1.0" encoding="UTF-8"?>
<block_device index="0" path="\DosDevices\c:\coLinux\gentoo-i686-ext3-1gb"
enabled="true" />
<image path="vmlinux" />
<memory size="96" />
<network index="0" type="tap" name="coLinux TAP"/>

I modified my /etc/conf.d/net file to set up the coLinux session's net0 on an internal network:
/etc/conf.d/net wrote:

# /etc/conf.d/net:
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
iface_eth0=" broadcast netmask"

I set the IP address on my Windows Network Bridge to match the connection (sorry for the Windowish stuff!):
Windows Network Bridge wrote:

  • Start
  • Control Panel
  • Nework and Internet Connections
  • Network Connections
  • Right Click on the Network Bridge

Select Internet Protocol (TCP/IP) from the list "This connection uses the following items:" and click Properties. You can leave the General section set to obtain an IP address automatically if you wish. But this will impose an IP addressing scheme on your coLinux session when you are connected to a network. And that is another How-To.

  • Select the Alternate Configuration tab.
  • Choose the User configured radio button and set
  • IP address:
  • Subnet mask:
  • Default Gateway:
  • Click OK finish and Close to complete the configuration.

You need not reboot. Windows resets the configuration automatically and while coLinux is up ipconfig should show:
ipconfig wrote:

Ethernet adapter Network Bridge:
Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

On the coLinux side, restart eth0 using the command
/etc/init.d/net.eth0 restart

ifconfig should now show a network connection for eth0
inet addr: Bcast: Mask:

You should now be able to ping the coLinux host from the Windows system!
ping wrote:
Pinging with 32 bytes of data:
Reply from bytes=32 time<1ms TTL=64
Reply from bytes=32 time<1ms TTL=64

For even further enjoyment, you can add the address to your Windows hosts file:
/windows/system32/drivers/etc/hosts wrote: localhost coLinux

That should do it! Your thoughts?
Back to top
View user's profile Send private message

Joined: 22 Jan 2004
Posts: 442
Location: Utica, New York, USA

PostPosted: Thu Sep 02, 2004 12:13 pm    Post subject: Reply with quote

maybe i'll try this.
i just got coLinux up and going after putting it off a while.
it seems quite decent, and it runs suprisingly fast for a win32 os on top of it

only i coudn't get my darn networking up and running. hopefully this will
do ze trick :)
When the FBI/CIA/NSA/FDA/and other three-letter government agencies come looking, you don't know me, you never saw me, never heard of me. get it? got it? good!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum