LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-23-2006, 09:56 PM   #1
tokenringman38
Member
 
Registered: Apr 2006
Location: USA
Distribution: (ed)ubuntu
Posts: 85

Rep: Reputation: 15
Win2k and ubuntu router


I currently have a Win2k with internet connection, needing to attach the Ubuntu box into it. I have tried everything to get the things to match. There are currently no errors, nothing.

192.168.0.1 is router (fairly typical)

Any ideas?
 
Old 04-23-2006, 10:50 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Quote:
I currently have a Win2k with internet connection, needing to attach the Ubuntu box into it. I have tried everything to get the things to match. There are currently no errors, nothing.

192.168.0.1 is router (fairly typical)
In order to answer this question one would need to know what you mean by attach the Ubuntu box into it.
What you mean by tried everything.
Where are you looking for errors, and what errors were u expecting.
I am assuming that you are trying to get the Ubuntu box online? If so what is the output of
ifconfig
Can you ping the Win2k box?
 
Old 04-24-2006, 05:00 AM   #3
tokenringman38
Member
 
Registered: Apr 2006
Location: USA
Distribution: (ed)ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Win2k and Ubuntu on internet same time

Quote:
Originally Posted by lord-fu
In order to answer this question one would need to know what you mean by attach the Ubuntu box into it.
Attach = having both computers on the internet at the same time. Whether through router or whatever, I don't care at this point.

I am fairly comfortable in the Windows world, just needing to learn more for linux.

Quote:
Originally Posted by lord-fu
What you mean by tried everything.
Where are you looking for errors, and what errors were u expecting.
I am assuming that you are trying to get the Ubuntu box online? If so what is the output of
ifconfig
Can you ping the Win2k box?
TO be honest, was not sure what I was expecting re: errors. Does ipconfig (win) = ifconfig (linux)?
No ping to other computer
 
Old 04-24-2006, 07:15 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
First, is the router set up for DHCP? If so, then the Ubuntu box also needs to be set to DHCP.

Assuming that the router and the Ubuntu box are set the same, then you should be able to ping the router.

Please post the output of ifconfig, after checking the above
 
Old 04-24-2006, 01:00 PM   #5
tokenringman38
Member
 
Registered: Apr 2006
Location: USA
Distribution: (ed)ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
First, is the router set up for DHCP? If so, then the Ubuntu box also needs to be set to DHCP.

Assuming that the router and the Ubuntu box are set the same, then you should be able to ping the router.

Please post the output of ifconfig, after checking the above
Attempted update of BIOS and system crashed.

Meanwhile, running LIVE. Is there a need to run workgroups to connect the linux and win2k box or is there an easier way?
 
Old 04-25-2006, 09:27 PM   #6
tokenringman38
Member
 
Registered: Apr 2006
Location: USA
Distribution: (ed)ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Followup on ifconfig

Quote:
Originally Posted by pixellany
First, is the router set up for DHCP? If so, then the Ubuntu box also needs to be set to DHCP.

Assuming that the router and the Ubuntu box are set the same, then you should be able to ping the router.

Please post the output of ifconfig, after checking the above
Here is ifconfig info:

link encap: ethernet MAC: xx xx xx xx xx xx xx
inet address: 192.168.0.122
bcast: 192.168.0.255
Mask: 255.255.255.0

Interrupt: 11 Base Address: 0x5f00

What else is needed?
 
Old 06-04-2006, 05:09 AM   #7
Sproggit
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
OK
First off, I hate to tell you this, but the information supplied by you is still pretty sparse.
Once you have things working, you will see why I say that.

You have 3 possible scenarios:
1) You have a standalone router, IP address 192.168.0.1, your windows box is 192.168.0.x and the linux box is 192.168.0.122 (the standalone router is playing DHCP server and supplied the linux box with that 122 host IP).
If this is the case, make sure that the default route on the linux box is that of the router ("route -n" to make sure "route add default gw 192.168.0.1" to set)
A "route print" in a command window on the Windows box to double check.

2) Your Windows box is doing Internet Connection Sharing (and ITS Providing the linux box with the 122 host address), then the linux command needs to be the same. (PS: This is like using a quad to tow a pickup... i.e. bad idea)

3) You want the linux box to act as a router .. read up on setting ip_forward as well as use something like shorewall to help set up the masquerading rules in ip tables.


I recommend option 3.

You may want to temporarily switch off the windows firewall to make sure the boxes can ping each other as well
 
  


Reply

Tags
ifconfig, network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
out of the box HD with Ubuntu AND win2k al451f Linux - Hardware 3 03-17-2006 06:44 PM
Dual-boot Ubuntu/Win2k pixellany Ubuntu 8 11-30-2005 11:01 AM
ubuntu box as router tnadenichek Linux - Networking 6 05-09-2005 02:33 AM
Replacing a win2k router/firewall with Linux/BSD, which? sud_crow Linux - Networking 4 07-11-2004 02:31 AM
RH7 + Win2k + ADSL router plisken Linux - Security 1 02-07-2002 03:01 PM


All times are GMT -5. The time now is 11:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration