I reinstalled mandriva, thinking it would fix internet problem....help please!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 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.
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.
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!
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:
Hmmm... why are there three ethernet devices? Do you really have three ethernet cards on your box?
Check if you or your system accidently activated lo (local Loopback) instead of eth0 as primary networking device. This happened on one of my laptops once and it took me half an hour to notice it. Also disable your firewall for now if you have set one up.
PS: What do your network config files look like? Maybe a typo somewere? Did you use static IP or DHCP for connecting?
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.
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
(C)Copyright Microsoft Corp 1990-2001.
C:\DOCUME~1\MRE041~1.COF>ping fec0:0:0:ffff::1
Pinging fec0:0:0:ffff::1 with 32 bytes of data:
Destination net unreachable.
Destination net unreachable.
Destination net unreachable.
Destination net unreachable.
Ping statistics for fec0:0:0:ffff::1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\DOCUME~1\MRE041~1.COF>
I just googled vip6 to 4 tunneling and it says in mandriva 2006 beta 2,
Quote:
drakxtools 1.3-0.4mdk
* diskdrake: fix update boot loader on renumbering partitions, write /etc/mdadm.conf when creating a new md;
* drakconnect: allow to use WEP keys in wpa_supplicant, use ifplugd for wireless interfaces, handle access point roaming using wpa_supplicant, initial IPv6 support (6to4 tunnel), keep MS_DNS1, MS_DNS2 and DOMAIN variables in ifcfg files;
* drakhosts, draknfs: do not crash when config file is empty.
So doesn't this mean I should have 6 to 4 tunneling support if i have mandriva 2006 powerpack?
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
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
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
12.183.102.0 * 255.255.254.0 U 10 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 10 0 0 eth1
I pinged that static IP address and it worked! I got:
Code:
[root@mybox coffee]# ping 66.249.87.104
PING 66.249.87.104 (66.249.87.104) 56(84) bytes of data.
64 bytes from 66.249.87.104: icmp_seq=1 ttl=242 time=111 ms
64 bytes from 66.249.87.104: icmp_seq=2 ttl=242 time=112 ms
64 bytes from 66.249.87.104: icmp_seq=3 ttl=242 time=113 ms
64 bytes from 66.249.87.104: icmp_seq=4 ttl=242 time=144 ms
64 bytes from 66.249.87.104: icmp_seq=5 ttl=242 time=120 ms
--- 66.249.87.104 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 111.624/120.301/144.093/12.317 ms
I have no idea why device, eth0 or eth1 keeps switching on me! but it does! Sorry, i just paste what the console shows me. Now that my internet is working I get the following when i type in ifconfig:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.