LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-08-2003, 10:53 AM   #1
ardi76
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Rep: Reputation: 0
Connecting in network


Hi, everyone!
I have some troubles connecting one machine to netwoork via router. So, my network card is well configured, but the DNS not, and dhcp is not well configured. If I give a default router IP address all the other machines lose the connection( all of them use Windows).
I would like to know, how to access the internet thru the router?
Thanks in advance for help!
 
Old 04-08-2003, 11:54 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
what do you mean writing "If I give a default router IP address"?
where the dhcp run? at router box?
im my opinion the router equipped in two eths should have at least one static ip (on the LAN side)
 
Old 04-08-2003, 10:08 PM   #3
ardi76
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
dorian33, thanks for answering me!
Here my problem is: I installed Linux SUSE 8.1, and configured my networking card, after I wanted to access internet connecting to router. I made a mistake by giving the IP address that exist to the network card. So to have a connection to internet and after to see the others computers I need to have the DNS name, DHCP running and one valid IP address to connect to the router. So now my question is what address to give to the networking card, name to the DNS and how to run DHCP!
Thanks again for reply!
P.S. I've run rcdhcp but there was a misconfiguration.
 
Old 04-09-2003, 01:38 AM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Please correct me if I am wrong: you have linux box with one eth card and you just want to play with network.

You have two ways - call ISP to get needed ips (for your eth and DNS) or better way: run any dhcp client (I know two such clients: dhcpclient and dhcpc). Using them you will get all neded ips through the network.
 
Old 04-09-2003, 12:37 PM   #5
ardi76
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
when I put #ifstatus eth0
the result is:
...
configured routes for interface eth0
default 192.168.1.1
Active routes for interface eth0
192.1681.0/24 proto kernel scope link src 192.168.1.40
default via 192.168.1.1
0 of 1 configured routes for interface eth0 up

So if you can check to see if this is right!
IP of router is 192.168.1.1
IP of linux box is 192.168.1.40
DNS name is bind 9 after I run #rcnamed start
Thanks for your time!
 
Old 04-09-2003, 01:08 PM   #6
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
looks ok, but it is impossible for me to check if gateway address is correct.
so try :
1. ping 192.168.1.1
if no response - stop and check the firewall

2. ping 192.168.1.40
if no response - stop and check firewall

3. ping any external address (f.ex. 64.179.4.146)
if no response - stop and check default route ('route' command); next check firewall

4. ping www.linuxquestions.org
if no response - check /etc/resolv.conf file should be the line nameserver _ip_of_dns_server_

if no effects show me:
test results + output of 'route' + resolv.conf content
 
Old 04-09-2003, 06:33 PM   #7
ardi76
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thx for the help! Now the internet is working and I installed apache server 1.3 and samba. I have one more question:
How to get the files from windows machine in Linux when I am using only the router!
 
Old 04-10-2003, 12:44 AM   #8
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
1. it would be nice to know what was the fault reson...
2. I do not understand the question:
what does mean "when I am using only the router"?
and where the samba and apache are running? at router? you have a problems with access to the router's sevices? - check firewall
 
Old 04-10-2003, 08:12 AM   #9
ardi76
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
The fault reason was that I didn't know the address of the router (newbie on Linux) and I was leaving dhcp to find the IP address for the networking card.
Now about the network. In Linux box are installed samba and apache, and I want to see the others computers(Windows), I'm using only one router. My Linux machine it will be a server runing apache 1.3
Thx dorian33
 
Old 04-10-2003, 11:46 AM   #10
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Samba allows The win clients to see the shares of the linux box. What shares you want to be available from Win client is set in smb.conf and smb/nmb daemons must be run.
With samba package there is also a lot of utilities. One of them allows you also to use usual mount command like
mount -t smbfs //john/c /mnt/john
which map the john's c drive into your directory tree.
To use it the smb/nmb daemons (called just smbd daemon) is not required to be run.

If above is not working now check firewall settings (ports 137-139)
The same concerns the apache. Maybe your linux box does not accepts the request with port number 80.
 
  


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
connecting to network via LAN mohtasham1983 General 10 12-08-2005 12:21 PM
Connecting to a network vital_101 Linux - Networking 4 09-21-2005 09:29 AM
Connecting to Wireless network ms82xp Linux - Wireless Networking 1 02-06-2005 08:44 PM
Connecting to a Network rgarg Linux - Newbie 1 06-19-2003 04:47 AM
connecting to network mxw320 Linux - Networking 1 02-12-2001 05:32 PM

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

All times are GMT -5. The time now is 03:45 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