Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-08-2003, 10:53 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Posts: 9
Rep:
|
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!
|
|
|
04-08-2003, 11:54 AM
|
#2
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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)
|
|
|
04-08-2003, 10:08 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
04-09-2003, 01:38 AM
|
#4
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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.
|
|
|
04-09-2003, 12:37 PM
|
#5
|
LQ Newbie
Registered: Apr 2003
Posts: 9
Original Poster
Rep:
|
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!
|
|
|
04-09-2003, 01:08 PM
|
#6
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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
|
|
|
04-09-2003, 06:33 PM
|
#7
|
LQ Newbie
Registered: Apr 2003
Posts: 9
Original Poster
Rep:
|
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!
|
|
|
04-10-2003, 12:44 AM
|
#8
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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
|
|
|
04-10-2003, 08:12 AM
|
#9
|
LQ Newbie
Registered: Apr 2003
Posts: 9
Original Poster
Rep:
|
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
|
|
|
04-10-2003, 11:46 AM
|
#10
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|