LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-18-2006, 10:07 AM   #1
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Rep: Reputation: 15
Talking 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.

Any help would be great!
 
Old 02-18-2006, 10:21 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?
 
Old 02-18-2006, 11:48 AM   #3
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
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.
 
Old 02-18-2006, 12:18 PM   #4
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
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.
 
Old 02-18-2006, 01:10 PM   #5
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks for the help guys, i trired the ping, no luck! here is my ifconfig:
Code:
[root@mybox coffee]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:8D:D1:C1:97
          inet addr:12.183.103.29  Bcast:255.255.255.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:509 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1486 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34608 (33.7 KiB)  TX bytes:89616 (87.5 KiB)
          Interrupt:16 Base address:0x8000

eth1      Link encap:UNSPEC  HWaddr 00-50-8D-00-00-D0-C1-97-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:5 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth2      Link encap:UNSPEC  HWaddr 00-02-3C-01-51-11-E9-25-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:5 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:763 errors:0 dropped:0 overruns:0 frame:0
          TX packets:763 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:96889 (94.6 KiB)  TX bytes:96889 (94.6 KiB)

[root@mybox coffee]# ping www.google.com
ping: unknown host www.google.com
[root@mybox coffee]#
 
Old 02-18-2006, 01:52 PM   #6
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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
 
Old 02-18-2006, 02:02 PM   #7
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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 ..
 
Old 02-18-2006, 04:10 PM   #8
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
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
eth0      Link encap:Ethernet  HWaddr 00:50:8D:D1:C1:97
          inet addr:12.183.103.29  Bcast:255.255.255.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:389 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1494 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23719 (23.1 KiB)  TX bytes:90684 (88.5 KiB)
          Interrupt:16 Base address:0x2000

eth1      Link encap:UNSPEC  HWaddr 00-50-8D-00-00-D0-C1-97-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:6 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth2      Link encap:UNSPEC  HWaddr 00-02-3C-01-51-11-E9-25-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:6 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:713 errors:0 dropped:0 overruns:0 frame:0
          TX packets:713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:64605 (63.0 KiB)  TX bytes:64605 (63.0 KiB)

[root@localhost coffee]# ping www.google.com
ping: unknown host www.google.com

[root@localhost coffee]# cat /etc/resolv.conf
nameserver 65.83.241.181
nameserver 67.32.118.46

[root@localhost home]# slocate resolv.conf
/etc/resolv.conf
/usr/share/man/man5/resolv.conf.5.bz2

[root@localhost home]# slocate resolv.conf.bak
[root@localhost home]# ping 66.249.87.104
connect: Network is unreachable
[root@localhost home]#     

[root@localhost etc]# cat hosts
127.0.0.1               localhost
 
Old 02-19-2006, 12:41 AM   #9
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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
 
Old 02-19-2006, 12:42 AM   #10
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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
 
Old 02-19-2006, 02:07 AM   #11
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
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.


Code:
[root@mybox sysconfig]# cat network
HOSTNAME=mybox
NETWORKING=yes
GATEWAY=12.183.101.1
GATEWAYDEV=eth1

[root@mybox etc]# cat hosts
127.0.0.1               mybox localhost
#               generated by drakhosts
12.183.102.170

[root@mybox etc]# cat resolv.conf
search 209550135
nameserver 65.83.241.181
nameserver 67.32.118.46

# ppp temp entry



[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)

[root@mybox sysconfig]#



On windows it shows the following:
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Mr. Coffee>ipconf /all
'ipconf' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Mr. Coffee>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : OWNER-E2F654771
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8169/8110 Family Gigabit
Ethernet NIC
        Physical Address. . . . . . . . . : **********
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 12.183.102.170
        Subnet Mask . . . . . . . . . . . : 255.255.254.0
        IP Address. . . . . . . . . . . . : fe80::250:8dff:fed1:c197%4
        Default Gateway . . . . . . . . . : 12.183.101.1
        DHCP Server . . . . . . . . . . . : 209.55.0.135
        DNS Servers . . . . . . . . . . . : 65.83.241.181
                                            67.32.118.46
                                            fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        Lease Obtained. . . . . . . . . . : Saturday, February 18, 2006 4:07:09
PM
        Lease Expires . . . . . . . . . . : Sunday, February 19, 2006 9:50:12 AM


Tunnel adapter Teredo Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : *********
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5445:5245:444f%5
        Default Gateway . . . . . . . . . :
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter 6to4 Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 6to4 Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : ***********
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 2002:cb7:66aa::cb7:66aa
        Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301
                                            2002:836b:213c::836b:213c
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

        Physical Address. . . . . . . . . : 0C-B7-66-AA
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:12.183.102.170%2
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        NetBIOS over Tcpip. . . . . . . . : Disabled
 
Old 02-19-2006, 05:24 AM   #12
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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 ?
 
Old 02-19-2006, 10:56 AM   #13
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
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?

Last edited by mr_coffee; 02-19-2006 at 11:10 AM.
 
Old 02-19-2006, 11:10 AM   #14
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
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:8D1: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
 
Old 02-19-2006, 11:51 AM   #15
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
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
This is what my ipconfig looks like now:
Code:
[root@mybox coffee]# ifconfig
eth0      Link encap:UNSPEC  HWaddr 00-50-8D-00-00-D0-C1-97-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:5 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:8931 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10503 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4994193 (4.7 MiB)  TX bytes:876213 (855.6 KiB)
          Interrupt:16 Base address:0x8000

eth2      Link encap:UNSPEC  HWaddr 00-02-3C-01-51-11-E9-25-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:4 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:1495 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1495 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:140269 (136.9 KiB)  TX bytes:140269 (136.9 KiB)

This didn't work though:
Code:
[root@mybox coffee]# ping fec0:0:0:ffff::1
ping: unknown host fec0:0:0:ffff::1
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:
Code:
[root@mybox coffee]# ping fec0:0:0:ffff::1
ping: unknown host 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?

Last edited by mr_coffee; 02-19-2006 at 11:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to the internet with Mandriva homesick Mandriva 2 02-07-2006 02:22 AM
Does anyone know how to fix kde in the new Mandriva?? Need lots of help Nauntilus Linux - Software 7 11-11-2005 08:03 PM
Internet Sharing with 3 eth devices problem, Mandriva 2006 muhon Linux - Networking 2 11-08-2005 07:08 PM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10:02 AM
internet randomly shut off on red hat 9 *prob simple fix* alimharji Linux - Wireless Networking 0 04-14-2004 10:16 PM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration