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.
I am a Linux newbie and I have the following questions/problems. I have two boxes, one with Fedora Linux and the other one with Win XP Pro. Linux machine has two network cards. One connects to the internet through the router, the other one is connected direcly to the XP machine. Internet works fine on the Linux machine but I can't figure out how to make it share the connection with the Windows box.
Essentially, I want the Linux machine to be a server to share the connection AND files and have the Windows box work as a workstation.
My questions are:
1. how to configure the Linux machine
2. how to configre the Windows machine
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
Quote:
Originally Posted by vishivishi
Hello everyone,
I am a Linux newbie and I have the following questions/problems. I have two boxes, one with Fedora Linux and the other one with Win XP Pro. Linux machine has two network cards. One connects to the internet through the router, the other one is connected direcly to the XP machine. Internet works fine on the Linux machine but I can't figure out how to make it share the connection with the Windows box.
Essentially, I want the Linux machine to be a server to share the connection AND files and have the Windows box work as a workstation.
My questions are:
1. how to configure the Linux machine
2. how to configre the Windows machine
Thanks a lot,
Vishi
you mention you have a router....why not connect both machines directly to the router and the router to the internet...this way you should be able to have both box connected to the internet....then make sure you have samba installed and with the correct local ip addressing and permissions both bax talk to each other as well as the internet..
Hey, thanks for your reply. I like your quotes! I am glad I am not of one those who know nothing
Back to Linux. The thing is, I am teaching myself networking and since it is very possible real-world setup, I want to figure out how one should configure something like that, when literally one box is a linux server and the other is just a regular WIN XP client. Like I've said, I am new to Linux, I am reading some books but I am still somewhat confused and ignorant. For example, I know I need to configure Samba but what exactly I should do there? And what should I do in the Windows Machine? Just run usual network setup wizard?
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
Quote:
Originally Posted by vishivishi
Hey, thanks for your reply. I like your quotes! I am glad I am not of one those who know nothing
Back to Linux. The thing is, I am teaching myself networking and since it is very possible real-world setup, I want to figure out how one should configure something like that, when literally one box is a linux server and the other is just a regular WIN XP client. Like I've said, I am new to Linux, I am reading some books but I am still somewhat confused and ignorant. For example, I know I need to configure Samba but what exactly I should do there? And what should I do in the Windows Machine? Just run usual network setup wizard?
Thanks again,
Vishi
i have to leave for a flight,,,,but my girlfriend Liz may be able to get back to you tomorrow...
For those of you that wanted a real-world situation, this is it
I have a cable connection coming into our home in one room, with a router plugged into that. My wife's computer is plugged directly into the router. My computer, in another room, is attached to the same router via a long CAT5 and a hub (the hub is so that I can have multiple PC's on this side of the house without having to run multiple cables...besides, it's cheap).
I have just recently acquired a Unix Server which I plan to use for file hosting. The Server has it's onboard NIC as well as a Sun Multiport Ethernet card. My plan is to do away with the hub entirely and plug my computer, my son's computer, my laptop, and have an extra port on the Server for future machines - basically, I wanna set up the Linux Server as an additional router. I realize that my wife's computer will no longer be directly connected to the network - that's fine.
Essentially, my son's computer (the only one plugged into the Ethernet card at the time) cannot detect that it is even plugged in. I'm not completely braindead when it comes to networking, but I'm far from a genius when it comes to Linux. The Server can see the XP box, but XP cannot see the server...any tips?
...The Server can see the XP box, but XP cannot see the server...any tips?
Do you have samba installed on the server? Windows will only see a linux server if it has the samba server installed.
Quote:
Originally Posted by vishivishi
...I want to figure out how one should configure something like that, when literally one box is a linux server and the other is just a regular WIN XP client.
Because I don't know what distro you are using I can't help too much but if it's a Debian based distro then the tutorial at This page should help. Also internet connection sharing on linux it called NAT (Network Address Table) so searching for that and linux should help you out too.
Hmm...I'm not sure if this helps or not - remember, I have 1 XP box plugged into the extra Ethernet card, and the other plugged into the same network via a hub...but I can see the server from the hub-connected computer...just not from the one that is connected to the Ethernet card. Is there something special that I need to do to set up the Ethernet card to receive a connection or is that what the Samba is for? I'm thinking something needs to be set up for DHCP..is that Samba? Hrmm..these are probably questions that I can answer for myself given a bit of time...sorry
Ok...I've been trying to get the iptables set up, but I keep running into the same problem. Of course, it's something completely different than what I would expect
When I run the above commands, I get a "bad argument `nat'" error - yup, I've checked the spelling and the syntax...the full nine yards. From what research I've managed to do that I understood, it looks like I don't even have the nat table on my machine...I've tried upgrading iptables in the hopes that it would upgrade the various tables as well, but that has been ineffective to say the least.
I'm considering, at this point, to use a different distro. PCLinux had an extremely smooth install and it was very easy to get it to recognize the two CPU's, but this networking garbage is starting to tick me off!
Anyhoo...any suggestions would be more than welcome...I'm going to be doing some searching for a more "Do it yourself" type distro so I can avoid problems like this in the future (and God forbid actually *learn* something while I'm at it...). Any suggestions welcome, any ideas welcome
Ok, I'm a retard. The font changed what you typed...it merged your double-hyphens into what looked like one hyphen...that was the syntax error...sheesh...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.