Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This is not a Linux question per se. I am trying to set up a simple network with 3 Linux boxes and two routers.
One box is a server and will be exposed to the internet. The other two boxes are workstations. I want the two workstations to have access to the internet, each other, and to the server box, but they will be behind their own router/firewall for security.
I realize there are other configurations to accomplish the same thing, but this is the one I want to set up (2 subnets).
I do not have much knowledge of subnetting. Please help.
Router 1 acts as a DHCP server assigning internal IP addresses to the Server Box and Router 2.
- Subnet Mask at Router 1 needs to be 255.255.255.192, right?.
- Do I set the subnet mask at Router 2 to 255.255.255.0?
- Do I set Router 2 acts as a DHCP server assigning its own internal IP addresses to the two Workstations?
- I'm a little confused about what all the IP addressed will be. Specifically, if I'm at one of the Workstations, what is the IP address of the Server Box? (ie, is it the same internal IP address that Router 1 assigned it?)
Note: I don't really want to run a DNS server if I can avoid it.
If you know of a link where I can see this exact example, please provide it.
* The netmask at router 2 can be whatever you want it to
* I think you're right that dhcp would have to reside on the second router.
* yes the server box will have the same address as the router1 assigns to it. No the server box will not necessarily have an ip equivalent to the workstations.
Router1 could contain a subnet of lets say 192.168.1.0 w/ netmask 255.255.255.128.
then server1 would have ip 192.168.1.1 and router2 would have ip 192.168.1.2
then router2 could contain a subnet of 192.168.5.0 w/ netmask 255.255.255.0
and workstation1 could be 192.168.5.1
w/ workstation2 = 192.168.5.2
Ok, you say "No the server box will not necessarily have an ip equivalent to the workstations."
Here's my main dilemma:
I'm running an email server (SMTP, IMAP, and POP3) on the Server Box. When accessing email from the workstations, I would prefer all the traffic stayed local (internal to Router 1 -- much faster and more secure). Can I access the Server Box from the workstations without using my external public IP address? Ideally, using your example, this would be 192.168.1.1 (Server Box). But, if I understand this correctly, anything like 192.168.xxx.xxx can't get from the workstations to outside of Router 2. Am I right? Or from the workstations would 192.168.1.xxx be a valid address external to Router 2, but not 192.168.5.xxx? (again using your example addresses).
I'm just trying to pin down a way to keep SMTP, POP3, and IMAP traffic between the workstations and the Server Box internal.
I hard coded nothing. All addresses shown in my last example were assigned by the routers with DHCP.
Here's some info from Router 2 configuration page:
WAN IP: 192.168.0.3
subnet mask: 255.255.255.0
Both primary and secondary DNS entries appear and look fine.
IP address: 192.168.1.1
subnet mask: 255.255.255.0
Everything looks ok to me. Unless I am not understanding the effect of subnet mask 255.255.255.0. Please confirm. This subnet mask will keep 192.168.1.xxx traffic internal to Router 2's network. All other traffic, including 192.168.0.xxx will be passed to Router 1 to handle.
Disabling Router 2's firewall makes no differenct. Can you see where I have gone wrong?
If so I've a feeling it's cos when it's 192.168.0 tries to respond to 192.168.1 then cos it's on a different network it's firing it out it's gateway into oblivion,probably same thing will happen with mine. What happens if you connect them using one of the normal presumably switched ports instead of the uplink one ? Just curious, going to catch a plane soon so I won't be around for a while.