AuthorTopic: two pc lan configuration problems (Read 6259 times)

I buyed a router and connect my two pc to it. My Vector Linux pc have Windows Me installed in a partition too. From Me and XP in my other pc i have Internet access and I can transfer files between machines. But when I tried to boot my vector linux (5.9 standard) It fails to boot in graphic mode, even reinstall do not fix the problem (this same installation always worked well before configure the network, even after plugged the pci net card), this started after configure the network by running netconfig.

If I start x from text mode it starts but I don't have access to internet. If I do ping it says "net unreachable".

Also, I don't know why an error in the net configuration results in no graphic boot.

I would think that if you can 'startx' successfully then booting to graphics (GUI) mode should work as well. You can verify this by booting to the text mode, login, and change modes by typing 'init 4' and hitting Enter. This should switch you to GUI mode. If you succeed in switching modes then it may just that you chose a TUI mode during install, and can be fixed via VASM(CC).

You network situation may just be that the network is not started, or not configured properly. Can you post the output from 'ifconfig -a'? Also, is your network static or dhcp?

I would think that if you can 'startx' successfully then booting to graphics (GUI) mode should work as well. You can verify this by booting to the text mode, login, and change modes by typing 'init 4' and hitting Enter. This should switch you to GUI mode. If you succeed in switching modes then it may just that you chose a TUI mode during install, and can be fixed via VASM(CC).

That's not my problem. I chose GUI mode during install, and I was able to boot in GUI mode until I tried to configure the network, after change the network configuration and reboot, the screen is blank (and I cannot ask for another terminal nor kill x, still blank) when booting with the default entry in the lilo menu (the one saying "linux" that is GUI in my case) so I must choose "linux TUI" (lilo menu third entry) in order to be able to see something and at least work in the console. Also, do startx works if I boot first in TUI mode but the first time appeared a message saying something like: "xfce can't access the network and may not work properly, want to continue?" or something like that, I don't remember as it appeared only once.

Quote from: newtor

You network situation may just be that the network is not started, or not configured properly. Can you post the output from 'ifconfig -a'? Also, is your network static or dhcp?

I have found that many times when I try to setup/change my network that I will get the same message and my resolution has been to edit, as root, /etc/hosts to insure that it has a line with your ip address and the name of your machine. For some reason, it gets wiped out during this exercise.. In my case, however, I could continue entering gui but, IIRC, my network wouldn't work

I tried what you said. The original hosts file had two lines, both starting with 127.0.0.1. I commented out those lines and write a third one following your instructions: "192.168.1.3 ......". But the problem persist. Any other idea? Is that line the only one I must write?

Your /etc/hosts file should have a line that starts with 127.0.0.1. This is needed for your local host loopbacking.

I still dont understand why you can't log into GUI mode just because of the lack of a network connection.What kind of error do you get?.XFCE4 will complain if your /etc/hosts file is incorrect, but running vasm -> network -> netconf should fix this for you

Your /etc/hosts file should have a line that starts with 127.0.0.1. This is needed for your local host loopbacking.

ok, I uncommented those lines again, ran netconfig and add 192.168.1.3 + my HOSTNAME to /etc/hosts. Now the message when xfce is loading does not appear any more. But still no net and no GUI boot.

Quote from: M0E-lnx

I still dont understand why you can't log into GUI mode just because of the lack of a network connection.What kind of error do you get?.

When booting, when vector linux is loading modules, before my first attempt to configure the network it shows: "initializing network... [OK]". Now it shows nothing when initializing the network. And when the boot process is finalizing, when the "vector login" text is shown, if I'm in TUI mode, it shows an output similar to ifconfig and then the cursor appears and I can login, if i'm in GUI mode it shows an error with eth0, I have no time to read it because the screen turns blank, and as I said before, I cannot kill x or ask for another terminal because the screen continues blank, if I press Num Lock the light changes its state so the system is not stopped, at this point I reset my PC by pressing the reset button. To avoid this blank screen I must choose TUI mode in lilo menu, so I can start x later.

I was in a mistake in my previous post, actually my network is not dhcp.

So I configure it again, now I can boot in GUI mode but I have no access to internet and if I try to run Sea Monkey it shows the "server not found" message and my mouse stops, if I try to kill x the system crashes. This same happened with different live cd distros I tested like knoppix or puppy, I lose the mouse in they all if I try to use internet. It seems to be a problem with my network adapter driver. All distros detect my network adapter but it is not the correct one. I tried to compile the driver from the network adapter driver disc but it had a lot of errors so I searching for a newer version.

my network adapter is a tp-link tf-3239 series. I installed the card in my computer about a week ago and my problems started, must be it. All distros i have tested detect it as a realtek-xxx...... (sorry but I don't remember all digits) chip based networkd adapter, but it seems that driver is not working.

Quote from: hata_ph

For no internet connection, did u key in and DNS IP in your VL client?

I did it after reading your post.

Quote from: hata_ph

For the hostname resolve between windows and linux, add wins to /etc/nsswitch.conf as show below

I did it, in the original file it was written "hosts: files dns". I replaced that with "hosts: files dns wins winbind". But nothing changed.

I am surprised that your network configuration affected your ability to start the gui. Maybe xfce needs to be able to connect to the loopback address (127.0.0.1)?

As to your network configuration it will be much easier if you start the dhcp server on your router and let it set the addresses on all your local machines. It will also set other important settings like gateway, dns server(s), and will set local network addresses that work with each other and the router itself.

In order to troubleshoot your networking issues you can use "ping", moving outward from localhost. Verify that you can ping 127.0.0.1 by number, then localhost, then the IP of your local machine, then the IP of another machine on your local net, then the router, then yahoo.com. Please let us know if or where a problem occurs.

If all ping checks are not successful, "route -e" will show your routing table. Make sure that the default route points to your router's internal IP address. For example:

Mon Jan 12 22:32:27 2009----------------At this point, the kernel generated an output saying "Disabling IRQ 10". I suspect this has something to do with my no gui boot problem. The output was not quoted because all these quotes are from logsave command, and it seems it is not receiving kernel output, but I saw it in screen.

Again I would suggest you set your machine to dhcp and let the router's dhcp server sort it all out. Is there some reason your machine has to be statically set?

I use p2p programs and need have some ports forwarded, also I've a ftp server on my other machine. Tried to make these work with dhcp enabled and no luck.I'll follow your new instructions once I restart this machine and boot with Vector Linux.

Quote from: nightflier

What is the content of your "/etc/resolv.conf" file?

I edited that file to add my two isp ip. Don't sure (I've to restart this machine and chose linux tui in lilo menu in order to check it) but the current content of that file may be:

Nameserver ???.???.???.4Nameserver ???.???.???.5I'll check it later when restart this machine and I'll edit this post if necessary. I don't remember now my isp ip so I used ? in my post for unknown digits. I can get it from my router but I think it is not necessary. Note: the two ip are correctly written on the file, I checked it many times.

About my no GUI boot problem and my stopping mouse, it is solved now. Since I tried to configure my network adapter in Vector Linux, my problems started. No GUI boot and my usb mouse stopped when trying to access internet. Also an extrange message saying "Disabling IRQ 10" when using the console.

Solution

Disable Plug and Play OS in BIOS. Now I can boot in GUI mode and my mouse act normally. The network adapter was not the cause of the problem it was the trigger.

One of two problems solved.

------------------------------------------------------

Now to the second one:

Use route add is useless, all changes lose after reboot. How can I do it permanent?I tried:

route add -net 192.168.1.0 gw 192.168.1.1 netmask 255.255.255.0 dev eth0after it, repeat the ping test. The result where the same, up to step 3 and no more. Can't access my router or the other machine, or yahoo.com. I tried reboot firt, but the changes were lost, route -e returns the original configuration after reboot, with my changes lost.

search linux.netnameserver 200.108.192.4 # it is my ispMaybe because I tried to configure the network from the beginning again and forget to edit this file the second time. I restored it to what I said in my previous post.

Also I find out something:

By booting puppy linux in my other machine (onboard ethernet adapter, via chipset) and answer to the network configuration wizard, I was able to surf the internet. I went to google.com and did a pair of searches. Then, returning to my vector linux machine, I boot the same live cd and answer the same wizard, except that i changed the machine ip from 192.168.1.2 to 192.168.1.3, all other parameters where the same, and I was unable to reach internet.

I only can conclude that my network adapter is not compatible with linux, as all distros I've tested in this machine failed to access internet. They detect it, and say it is ok, but no internet. Even ping to router fail.

If buy another pci network adapter card is the only solution, can somebody tell me where to find a list of tested cards? This way I'll sure that my next card will be supported.

The driver disc has a driver for linux. I did not use it at first because the card was detected. Then I tried to compile it but there were errors and the compiled file wasn't created. The driver is for kernel 2.4.x and does not compile under 2.6.