Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.