LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2003, 07:56 PM   #1
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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?
 
Old 09-30-2003, 09:25 PM   #2
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Did you set up "Internet Connection Sharing" in W2k?

Last edited by camelrider; 09-30-2003 at 09:26 PM.
 
Old 10-01-2003, 05:43 PM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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.
 
Old 10-01-2003, 05:49 PM   #4
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
you cannot setup ICS and have the gateway device be dhcp

the connection that will be sharing the internet must be static...

Secondly if your ISP only support windows at this time, but you have 2 nics on your windows box...

What kind of service is it? adsl/cable work on linux..

You could set it up backwards more securely than having the gayblows box be your router.
 
Old 10-01-2003, 06:12 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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.
 
Old 10-01-2003, 06:18 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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.
 
Old 10-01-2003, 06:18 PM   #7
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
when you setup connection sharing for the dial-up

Your nic on windows should be forced to 192.168.1.1 or 192.168.0.1, and not on dhcp
 
Old 10-01-2003, 06:22 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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?
 
Old 10-01-2003, 06:30 PM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
hakcenter, i am runing iis on the windows box. would that possibly have something to do w/the problem?
 
Old 10-01-2003, 06:43 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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.
 
Old 10-05-2003, 06:00 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
i tried ics again and have had no luck. my linux machine still doesn't see the internet. could iis be the problem?
 
Old 10-06-2003, 06:42 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
i've done a little more research and i think i've found the problem, but, not sure. here is some output of a few commands...

cat etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.0.2
# nameserver 192.168.0.1


# ppp temp entry

cat etc/samba/smb.conf
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2003/09/17 18:29:04
# Global parameters
[global]
workgroup = MDKGROUP
netbios name = DJMDK91
server string = Samba Server %v
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

printcap name = cups
dns proxy = No
wins support = Yes
guest account = peacedog
printer admin = @adm
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = Yes

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = Yes

[pdf-generator]comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

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.
 
Old 10-07-2003, 05:46 PM   #13
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
would commenting the 192.168.0.2 and uncommenting the 192.168.0.1 do the trick? i'll keep trying a few things and reading. thx for any responses.
 
Old 10-08-2003, 05:54 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Original Poster
Rep: Reputation: 168Reputation: 168
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?
 
Old 10-08-2003, 06:47 PM   #15
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
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.
 
  


Reply


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
xp-box to share internet connection with linux-box CrazyHorse Linux - Networking 7 09-28-2006 11:05 PM
internet connection through a xp box tacca Linux - Networking 2 03-09-2006 04:34 PM
problem with internet connection through an XP box? nmares Linux - Networking 7 10-20-2004 05:05 AM
no internet connection on linux box but XP can logon to domain kenji1903 Linux - Networking 4 07-27-2004 09:02 PM
How do get my linux box to use my windows internet connection cypher0002 Mandriva 3 05-18-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration