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.
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
you have to be more specific that to say no internet no lan .. that's clearly inaccurate at best.
Check your proxy server .. if it gives out ip addresses to the machines, the machines will work with that address .. with or without external "internet" connection.
Your name server could be dead .. your dns could be dead ... as a matter fo fact a lot of things could be dead if poorly designed/configured.
You need a dns server and name servers to talk to machines with "name"
Only explanation for your problem (and that's also is very very very questionable) is that when there is no internet your proxy server is badly hosed.
Unless you are rebooting machines every day and start the day with "no" internet connection .. causing your proxy server to be hosed, you should have no
problems. When you have your lan hosed, walk up to a few machines and type ifconfig and see what it says .. if the interface is up and it has an IP address then
the problem is somewher else. then ping the other machine on your subnet and see what happes (try both first ip and then the name) .. if name fails then
you know the problem is what ever is acting as your name & dns server (potentially).
--- and I think bruce is spelled with a "c" :=)
Check your routing tables - if you can't even ping, it may be that you have set your default gateway incorrectly.
For example, mine is:
Code:
[root@Arial root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
...so my default gateway is at IP address 192.168.0.1. If your default gateway is on the ISP's side of your (non-working) internet link, then your network connections will be hosed.
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
First things first.
run ifconfig eth0/1/2/3 .. whatever port you are using.
See the result of that command. Do you have an IP address .. if a machine doesn't have it nothing will work.
(ifconfig typically is in /sbin/)
if you don't have an IP address .. tryp ifconfig eth0/1/2 up .. or you have other scripts of there like ifup and ifdown.
you can try ifup eth0 .. or ifdown eth0 ..
to bring the interface up and down.
on almost all distro's you have to be root to do this.
Step 2 (or may be step 1)..
Check your "router" machine .. the one that's supposed to be giving up IP addresses .. (your DHCP proxy server).
See if IT has the IP address.
See why it's not giving out addressses.
worry about route and stuff once you get the first 2 steps cleared up. if you have an IP address .. then you can ping machines with their IP address at least.
with name server/ dns server in the network .. you can ping them by their names
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.