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’ve successfully set-up and configured a NAT router in Ubuntu. Doing a ‘What is my IP’ confirms this is working. Clients can ping the router and get a response and vice-versa.
The one issue that I do seem to have is that when computers boot up and joining the network, or when a new wireless network is selected on a laptop, for example, Internet access seems to take a good 2-3 minutes if not longer to actually work. Browsers show the ‘cannot be displayed’ message during this time, but then it eventually kicks-in.
Please post the hardware specifications. I assume this happens only for wireless devices? Does this happen for any device no matter how many are connected at one time, even with only one?
The initial slow connection is on the client PCs and the same happens when I connect another device, wireless or wired. Once the connection has been established, everything works as expected, it just seems to be the initial connection.
Currently, this is being tested with two MacOS client devices and the same result occurs.
The Ubuntu server is set-up with 4GB Ram, 2 Core, 160GB SSD drive and is exclusively for NAT. There are no other services needed or running on this server.
Cheers
Last edited by andrewK1602; 07-28-2023 at 03:39 AM.
Wired may be easier to diagnose. Do you have two wired adapters on the server?
Are they both 1 GB? How did you configure NAT? Did you follow an online guide?
Without knowing anything else about how the server is configured it is difficult to say what might be wrong.
If you followed the guide the LAN is configured as 10.10.10.0/24 (255.255.255.0) with the server setup as 10.10.10.1. The available client IP address range is 10.10.10.2 - 10.10.10.254. If you are going to use static IP addresses for the clients then each needs a unique address.
Since you posted you are using a static IP address for the WAN side if you are actually using a private address then it should be a different subnet from the LAN side.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.