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
oldan
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!

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

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


(2)
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="172.16.123.3 broadcast 172.16.255.255 netmask 255.255.0.0"
gateway="172.16.123.1"


(3)
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: 172.16.123.2
  • Subnet mask: 255.255.0.0
  • Default Gateway: 172.16.123.1
  • Click OK finish and Close to complete the configuration.



(4)
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. . . : 172.16.123.2
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.16.123.1


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


ifconfig should now show a network connection for eth0
Code:
inet addr:172.16.123.3 Bcast:172.16.255.255 Mask:255.255.0.0


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


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


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


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
anyways.

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!
also: ALL YOUR POLLITICAL BASE ARE BELONG TO HILLARY IN '08!!
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