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.
Originally posted by JordanH Firstly, IANA has set aside specific ip address ranges for private use. 90.0.0.0/8 is not one of them. That particular network is reserved and although you *can* use that as your network, it is not a good idea.
Secondly, I can't think of a way to use Linux as a hub. As I see them, your options are hub/switch -or- separate your network into subnets. The hub/switch solution is best, however, for the $0 budget, you can split it into two subnets.
Lastly... SMB... To tell you the truth, I don't know. I suspect you should be able to share your files just fine however, I'm not the person to ask on this subject althought I would put my money on it.
Tell you how to config your network? ok.
Linux machine
eth0 192.168.0.1/24
eth1 192.168.1.1/24
Ensure routing table sends traffic to the correct cards
Ensure your iptables firewall allows forwarding between internal NICS
So many good questions in one thread. We should have really broken this one up.
The /yy part is the network mask. It defines the network as opposed to just one address. Check out this link for a good discussion on the subject: http://www.linuxquestions.org/questi...hreadid=123068
Post there if you have more questions and I will follow-up with you.
Regards,
J.
Here are the steps in short - follow them in order.
1. Setup your USB modem... sorry, I have no experience here.
2. Configure your ethernet cards. If you have trouble, ask in the Networking forum.
3. Setup your Firewall. The above script will let you share your ADSL connection with your LAN.
4. Setup your client machines to use your Linux machine as the "Default Gateway".
Again... your questions are good but please post them in a NEW thread.
Regards.
I got myself a switch like you suggested and now there are 5pc's all on this one connections. Thankyou Very much again. Without ne mods it works. Bulletproof ^_^
Hi Mike,
I'm a little confused by your question, perhaps you can give me more details about what you want to know.
The firewall script above does not specify anything about gateways so perhaps that isn't the term you meant to use. If you are talking about Internet gateways, that is a function of your routing table... you can use the route command to show to which gateways your NICs are pointing.
In my case, I only have one gateway specified and it is assigned to my ppp0 adapter (the default route). This is the other end of the ppp connection to which I need to route traffic. My ethX NICs do not have an associated gateway.
Try your question again and I'll see if I can answer it more clearly.
It should work just fine with dial-up. Dial-up is pretty much the same as ADSL so your external interface will be ppp0 instead of say eth0. Make sure you change the ext and int variables to your external interface (ppp0) and internal interface eth?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.