I reinstalled mandriva, thinking it would fix internet problem....help please!
Hello everyone, this makes no sense. When i first installed Mandriva 2006 Powerpack, awhile ago, at first there was no internet connection and also no sound. But after reb00ting it fixed both of those problems.
So linux and I were happy for awhile, making babies and such, and then all of a sudden my internet stopped working because i was trying to change my machine name, so it would say like coffe@mybox instead of coffee@localhost, when my interent was working the very first install, when i opened up the ternimal, it would say coffee@x1-30-29-20b and I was able to connect to the internet. But after installing mandriva ( a clean install) when I open a terminal it will say coffee@localhost. So now i'm stuck without being able to connect to the internet also! So what i'm trying to say is, I need some way to change the ternimal so it no longer sasy coffee@localhost because some guy told me, it will conflict or somthing if i keep my online machine as localhost. I'm connecting to the interent with a cable modem, and it hooks up into my ethernet card, it did recongize my ethernet card too. :confused: Any help would be great! |
Suggestion: Try to avoid the long run-on sentences--hard for people to follow.
Changing the machine name should not stop internet from working. Do you have a router? What is output of ifconfig? Can you ping anything? |
THanks for the responce pixellany.
Sorry i didn't realize how bad that run on sentence really was. I don't have a router, I have a motorola cable modem. Which is external, cable goes directly into the modem, then you connect it to your ethernet card with a cat5 cable. Mandriva thinks I have a LAN though I think, but I don't. Would that be considered a LAN? I also tried to go into the configurations and setup a "cable" internet connection. But when Mandriva did work, it worked under the LAN configurations, I just left everything default. How can I see what the output of ifconfig? Also how can I ping somthing in console? Is it just ping www.google.com ? When I double click the little LAN icon in the corner of the screen it has a x on it. So I tab to my ethernet card it it shows some sending and receving, then it stops. |
You can edit the hostname through the /etc/hosts file. You must have root access to do this.
Open a terminal and type ifconfig, give us the response from that. Your connection would be considered a LAN, at least those settings should work. Also, try pinging something. Open a terminal and type "ping www.google.com" without the quotes. If it works, you are connected. |
Thanks for the help guys, i trired the ping, no luck! here is my ifconfig:
Code:
[root@mybox coffee]# ifconfig |
its because of /etc/resolv.conf file .... by changing ur hostname u flushed that file ...try search the file by the name /etc/resolv.conf.bak
if ur lucky .. u will get the dns IP from that bakup file .. if not then .. u will have to get ur DNS ip and add in /etc.resolv.conf try this #cat /etc/resolv.conf.bak > /etc/resolv.conf now ur internet is gonna work .. given ur interface is working .. actually ur interent is still working but ur dns is not ... if u try ping 66.249.87.104 it will ping but when u try ping www.google.com it wont why? because ur request for name resolution is put down coz of no nameserver available .. check ur /etc/resolv.conf it shud be empty ... if it is .. enter the name of ur nameserver .. which must be in /etc/resolv.conf.bak if ur lucky enough all the best ... post back if this doesnt help also note that .. it will work for that session alone .. because u will have to save the content /etc/resolv.conf |
save the content of /etc/resolv.conf.bak in /etc/resolv.conf manually in anay text editor .. u will have to be root for this ... or u will be bumped with permission denied ..
|
Dipenchaudyhary, thanks for the help...
I couldn't find a backup file of resolv.conf.bak, so I totally did a clean install of mandriva 2006 again. I havn't messed with anything at all on the system, as is this is what my ifconfig file looks like, I also did a few other commands to show you what my hosts file looks like, and my resolv.conf file looks like, i also tried to ping an IP address rather then a www.google.com. eth0 is my ethernet card I believe! Code:
[root@localhost coffee]# ifconfig |
okk
assuming that ur nameserver IP's are proof checked ..and they are in fact the IP of ur DNS server ... i think its a problem of route .. wot is ur gateway ? can u elaborate on wot kind of connection do u have .. and is ur agte way is same as the one of ur ISP .. the one who is providing u internet .. listen ... u have IPV6 addressing enabled it may be a problem off IPV6 address .. seeing through ur ifconfig output .. only one interface card is configured .. the other two dont have a IP .. are u sure u have internet cable on eth0 .. the one which is configured ? i tried pinging to ur nameserver .. it is working ... try this to disable ipv6 in kernel echo "alias net-pf-10 off" >> /etc/modprobe.conf echo "alias ipv6 off" >> /etc/modprobe.conf make sure u have /etc/modprobe.conf file first ... if not then hold n post back .. crosscheck the gateway thing ... issue the route command and see the gateway IP.. and talk to ur ISP if its one of theirs ..!! ur dns server is pinging back to me .. but dunno if its resolving or a valid dns server .. but thats not a issue even .. coz ur not able to ping a IP even leave apart a domain .. so see ur route settings see wots ur gateway .. verify with ur ISP .. and also check if ur internet cable is in the right interface .. post back .. with more information .. specially abt the lft out 2 interfaces which u havent configured !! all the best .. do not reinstall linux again n again .. just hang out n know things ...it will sort out with proper diagnose |
okk
assuming that ur nameserver IP's are proof checked ..and they are in fact the IP of ur DNS server ... i think its a problem of route .. wot is ur gateway ? can u elaborate on wot kind of connection do u have .. and is ur agte way is same as the one of ur ISP .. the one who is providing u internet .. listen ... u have IPV6 addressing enabled it may be a problem off IPV6 address .. seeing through ur ifconfig output .. only one interface card is configured .. the other two dont have a IP .. are u sure u have internet cable on eth0 .. the one which is configured ? i tried pinging to ur nameserver .. it is working ... try this to disable ipv6 in kernel echo "alias net-pf-10 off" >> /etc/modprobe.conf echo "alias ipv6 off" >> /etc/modprobe.conf make sure u have /etc/modprobe.conf file first ... if not then hold n post back .. crosscheck the gateway thing ... issue the route command and see the gateway IP.. and talk to ur ISP if its one of theirs ..!! ur dns server is pinging back to me .. but dunno if its resolving or a valid dns server .. but thats not a issue even .. coz ur not able to ping a IP even leave apart a domain .. so see ur route settings see wots ur gateway .. verify with ur ISP .. and also check if ur internet cable is in the right interface .. post back .. with more information .. specially abt the lft out 2 interfaces which u havent configured !! all the best .. do not reinstall linux again n again .. just hang out n know things ...it will sort out with proper diagnose |
Thanks for the responce dipenchaudhary. I have a cable modem connection. I hook cable directly into this external moterola cable modem adn then i hook a cat 5 cable from the external modem into my ethernet port on my computer. No other computer hooks into this one nor shares internet connection.
This is what I did now, I deleted the other eth#'s because they weren't doing anything! So now I only have eth0 and lo. Some guy on another forum suggested that I might have: Quote:
Here is what it looks like now: I tried to configure my eth0 as static rather then letting DHCP find it, by using the information that windows told me about my ethernet card, and gateway/mask/etc. Now it says i'm sending and receving, but still won't let me ping anything and when I go to like www.google.com, it now doesn't right away show "page cannot be displayed" it takes like 2 minutes then it will pop it up. Code:
[root@mybox sysconfig]# cat network On windows it shows the following: Code:
Microsoft Windows XP [Version 5.1.2600] |
i have never worked on such kind of network ..also its a issue of 6 to 4 tunneling .. which is done by sit0 device ... manually configuring ip is stupidity if ur ISP support dhcp then its no point giving manual IP .. even if its same as of windows ..
did u check if default gateway matches with wot given in winxp 12.183.101.1 did the route command when issued gave the same default gateway ... okk are u able to ping a static ip ,.... like this ping 66.249.87.104 i think no !! its i guess a issue of ipv6 .. coz i have heard of dns not being able to resolve ipv6 requests .. u said ur able to send n recieve .. how did u know that .. did u ping anything ? okk will pingin to a ipv6 address work try pingin ur dns server ping fec0:0:0:ffff::1 wot is the output .. i cant try coz mine is a ipv4 network .. how did u come to know that its sendin n recievin packets ? |
Thanks Dipenchaudhary, you seem to know alot more about this than me! How do I use the route command to see if my default gateway matches the one given in windows, 12.183.101.1 in linux?
I could see it was sending and receving because mandriva 2006 has a "network monitor" and it shows i was sending and receving like little packets. Like 120 b/sec and sending like 60 b/sec when I manually typed in the IP address. But when I went to click, connect eth0, it wouldn't connect! also i'm not able to ping a static ip. Is there a way for me to convert ipv6 to ipv4? I have no idea what 6 to 4 tunneling is, and why my machine has it! Is it becuase I have Ipv6? I also tried to ping in windows before I tried to do it in linux and it didn't work! i got this: Code:
Microsoft(R) Windows DOS Quote:
|
hi
ipv6 thing is a network thing .. linux just support it .. we use tunneling because all networks are not IPV6 enabled so a ipv6 address is tunneled into a ipv4 address and so on and on ... i asked u some things to do ... were u able to ping ur dns's ipv6 address ? and route command is issued as root .. login as root and issue simply #route it will give u some output .. please paste it .. were u able to ping the static ip #ping 66.249.87.104 please paste the output of all commands and also #ping fec0:0:0:ffff::1 (i never tried this .. but as u have ipv6 it might help) i will not be able to help u .. if u dont paste the output .. coz i wudnt know the error .. u said that there is some transfering going on .. but again ur confusing me .. because previously u were using eth1 as interface for internet and now u talked abt eth0 [root@mybox sysconfig]# ifconfig eth1 Link encap:Ethernet HWaddr 00:50:8D:D1:C1:97 inet addr:12.183.102.170 Bcast:12.183.103.255 Mask:255.255.254.0 inet6 addr: fe80::250:8dff:fed1:c197/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1419 errors:0 dropped:0 overruns:0 frame:0 TX packets:423 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:102390 (99.9 KiB) TX bytes:29339 (28.6 KiB) Interrupt:16 Base address:0x8000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:532 errors:0 dropped:0 overruns:0 frame:0 TX packets:532 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:91203 (89.0 KiB) TX bytes:91203 (89.0 KiB) and now in last post u wrote : But when I went to click, connect eth0, it wouldn't connect! also i'm not able to ping a static ip. please be consistent ... also if u have some extra time .. please explain me .. how do u connect to internet .. wot command do u use .. coz i havent worked on that kinda network ... is it adsl .. do u use something like adsl-connect ? all the best ... please provide the output .. of all commands |
Thanks I think i got it working!
What i had to do is the following, I had to add another host definition. I put the static IP address as the address, for name, i put mybox, alias, mybox as well. Code:
[root@mybox coffee]# route Code:
[root@mybox coffee]# ping 66.249.87.104 Code:
[root@mybox coffee]# ifconfig This didn't work though: Code:
[root@mybox coffee]# ping fec0:0:0:ffff::1 Code:
[root@mybox coffee]# ping fec0:0:0:ffff::1 here is a link to show you what my configuration looks like and how its working http://img499.imageshack.us/img499/1...apshot12nf.png Thanks again for the help!! Is it bad that I made it into a static IP even though it does support dchp? |
All times are GMT -5. The time now is 01:51 PM. |