Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
can't see internet connection from linux box
hi all, i've been running mandrake 9.1 for about 1 month. i have samba configured and am sharing files and devices (printers) w/ no problems. I have 1 windows machine ...win2k, hp psc 2110 all in one device, 1 nic (192.168.0.1 to keep things simple while i learn) and 1 mandrake 9.1 box, hp dj 610, 1 nic ( 192.168.0.2 again to keep things simple as i learn). samba runs fine , shares are no problem, i am able to share any and all files as well as print from either machine to the others printer (have not yet tried to scan from linux thru windows, that'll be another issue!) my prob is the linux box does not see or recognize the internet connection from the win box. my goal here is to be "windows free in 2003". i would just connect with the mandrake box, but, my isp does not support linux yet. so the windows box is my connection (that's sad)!!!! can't wait to get this linux box online and really test it. i have set the default gateway to 192.168.0.1 so that linux could see the path, i'm at loss. can anybody help please?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
camelrider hi, yes i tried ics from win2k and setup both nics to recieve ipaddresses automatically. the mandrake box however would not look at thewindows box for the address. could there be a service running on the linux machine that i am unaware of? thx for the response.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
hakcenter hi thx for the input. i am on a dialup connection. also i only have 1 nic in each machine. i'm not sure what you mean by the gateway has to be static. thx.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
hakcenter i think iget the static ip, if i am on dialup my default gateway is set at connection time. does that mean that i can't reset the gateway at every connection or i have to reset the gateway at every connection...i'm a little desperate here. thx.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
it is that is why i thought i could just set the default gatway to 192.168.0.1 and everything should work fine. could i just subnet both machines w/static ip and still use ics? as long as they are on the same subnet i don't see why that wouldn't work?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
hakcenter i've got to log off for now, i've got some work that's got to be done by morning. ( can't play w/ my new kool os anymore). thx for your help so far, i hope to share info w/you again. it has been insightful and it's got me thinking about some possible solutions. i'm going to try a few of these ideas in the next couple of days and i'll be back here at the forum to post victories and failures. thx again for your help.
am i even on the right path here? i would love to get this linux box online. i am hoping someone could shed some light on this. if i am correct the linux machine w/ curent setup will assign itself an ip addr. i need to change that so that it gets an ip from the windows machine. i'm just unsure if i am thinking in the right direction. any and all comments are welcome. thank you for your time in advance.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
i have set up ics again and the boxes are talking. i can ping from both boxes and get no errors. no packets dropped. i have set the gateway of the linux machine to the ip address of the windows machine. from linneighborhood the linux machine sees the win box and i can mount my shares. i cannot see the linux box from win network neighborhood nor from linneighborhood. most importantly i cannot see the internet from the linux box. the strange thing to me is the linux machine does not see itself. what info (if any) could i post to help anyone help me? i'm missing something here just can't quite see it on my own. one more thing is there any way to setup a static ip for both the linux machine and the windows machine and still share my internet connection from my win machine to my lin machine?
You said your ISP doesn't support Linux. Have them explain this to you, I'll bet they mean their tech support dosen't know linux. a PPP connection using dial up is the same regardless of the OS sending the request.
Sharing an Internet connection has nothing to do with Samba, it's all a TCP/IPA connection.
Windows machine setup -
delete EVERY network connection you have and start from scratch, so you know all the info being used.
Set a DUN connection to get on the Internet.
Set the NIC to static address IP 192.168.1.1 subnet 255.255.255.0
Configure ICS to use the dial up and the nic WITHOUT the silly windows firewall running.
Linux machine setup -
Make sure ipchains, gnome firewall etc. are set to allow connections or just plain old turned off for now.
Set the NIC to static IP 192.168.1.101 subnet 255.255.255.0
Set the default gateway to 192.168.1.1
Set the /etc/hosts file to include localhost.localdomain
Check /etc/Host.Deny and make sure the Win machine didn't get in there somehow.
Pray.
If this dosen't work try the ICS on the Win machine to use DHCP and set the Linbox to allow incoming DHCP requests and use it for an IP and Gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.