LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-05-2003, 11:15 AM   #1
Moribund
LQ Newbie
 
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0
Unhappy Uber Newbie Networking Headache please help.




Ok If I explain what I am trying to do it might help.
Have just recently installed MDK 9.1. I have an Adsl connection for the internet (ppp0) and and Ethernet card for the local network (eth0) which is all connected up to a ccouple of windows boxes.

I can get Dhcpd working on linux and the windows machine connects ok to the internet.

However I am confused about DNS servers. I thought that the Linux box can have ppp0 set to receive both ip and dns from my ISP but that I could set it so the Linux box would do all that for the windows box.


Also I cant ping the linux box (ip 10.0.0.x/255.255.255.0) from the W2K box I get:
'reply from 194.106.32. 59 destination net unreachable'

which is confusing as I'm pinging 10.0.0.x

Also I cannot connect to the Linux box from W2k and I think I have smb.conf set up ok eg

[global]
netbios name = TheLinuxServer
server string = "Is It working yet?"
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
wins support = yes

[smbuser]
path = /home/smbuser
public = yes
guest ok = yes
writeable = yes

I have a user on both machines set up as smbuser.

I would be really grateful for any help with what might be several little problems battling with each other.

Thanks
 
Old 07-05-2003, 11:32 AM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
You do need to use samba for pinging services. If indeed you have dhcp working, then you can either enter your isps nameservers manually on the windows box or add al ine like this in /etc/dhcpd.conf

option domain-name-servers server.name.isp, server2.name.isp;

And to tell connecting machines that the Mandrake machine is being used as a router (if indeed it is)

option routers eth0.ip.of.mandrake.box

~Andrew
 
Old 07-07-2003, 04:38 PM   #3
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I am not sure about your situation but I think you have the linux box connected to the adsl modem and it has one other ethernet card which is connected to a router and then the rest of your machines connect to this router. You did not mention a router though but I dont see how you could connect more than one computer to the linux box without one. If that is the case, the ISP should provide the linux box with the DNS server and external IP. If you can surf from the linux box, then this is so. If you have another router (other than the linux box) in the network, make sure its dhcp server is disabled. With that, then you can configure the rest of the machines to use dhcp to get their IP address and DNS info from the linux box. In the linux box, there should be an option in /etc/dhcpd.conf to broadcast this dns address (actually this address should be pointed to your linux box, but using the dns address supplied by your isp should work also). If you are using static internal IPs for your lan machines then you must setup a default route for each of them to the linux box.
You dont need samba to ping machines in your local net. You need it to setup shares which other machines can use. For example, you can set up a part of your linux hard drive as a samba share so you can access that hard drive from another machine that uses the smb protocol. If you have not setup any shares on your linux box then there is nothing to connect to. SWAT is a very good program to use to set this up.
If your machines are networked properly, then you should be able to ping each machine using its IP name unless the firewalls block this. If your are using the linux box as a dhcp server and are sharing the internet connection between all your boxes, then you probably have IP masquerading setup in the linux box and probably a firewall . Make sure that the ethx interface connected to the rest of the lan is setup as a trusted interface so all connections to and from this interface are allowed.
Hope this helps.
 
  


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
Hi :- uber linux newbie -: russ18uk LinuxQuestions.org Member Intro 6 09-29-2005 07:05 AM
UBER-Newbie Wants To Attempt A Debian Install - PLEASE ADVISE Rexversusu Linux - Newbie 9 10-23-2004 12:36 PM
Urgh! Uber Newbie+D-link+Fedora==False OpenSrcPagan Linux - Newbie 0 03-24-2004 10:27 PM
*Uber* Newbie question! billytkid Linux - Newbie 5 12-09-2003 07:31 AM
Gah! Uber Newbie Distress!!! ferretmanus Linux - Newbie 4 09-13-2003 04:12 PM

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

All times are GMT -5. The time now is 12:51 AM.

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