LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-03-2006, 08:38 AM   #1
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Rep: Reputation: 15
ifconfig eth0 mac address update won't allow me to connect to internet


Hi all,

I have worked out why I couldn't connect to NTL with my laptop. It was because my mac address wasn't registered with them.

I now have another problem (which is actually the same problem)that my internet connection still won't connect.

I updated my mac address with the following commands:

/sbin/ifconfig eth0 down hw ether **:**:**:**:**:**
/sbin/ifconfig eth0 up


I then activated the network connection with system-config-network

I then typed /sbin/ifconfig eth0 to get the following:

eth0 Link encap:Ethernet HWaddr **:**:**:**:**:**
inet addr:**.**.**.*** Bcast:255.255.255.255 Mask:255.255.252.0
inet6 addr: ****::***:****:****:****/** Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:342 (342.0 b) TX bytes:7247 (7.0 KiB)
Interrupt:17 Base address:0xa400


This tells me that it went and got the IP and checking in system-config-network tells me that the connection is active.

The problem is that even though it says the connection is active I still can't seem to get on the net.

I pinged a machine that I know is always on line but to no avail.

The other problem is that when I reboot my machine it automatically loses the mac address that I updated.

Any help that could be rendered would be most helpful as I am at a complete loss on how to proceed.

Thanks in advance.

-Mike

Last edited by mike_morley; 11-03-2006 at 09:37 AM.
 
Old 11-03-2006, 10:12 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
One way to update your MAC address so it doesn't get lost is to install WebMin. You can then edit the MAC IP addresses etc, save them so next boot they are not lost. You can also remotley manage a bunch of stuff with WebMin.

It appears you edited out the IP address from the ifconfig output. Does the IP address you got make sense for the network you are connecting to? If yes, have you got DNS addresses in /etc/resolv.conf? If not, that is probably why you can not "connect".

BTW, what is 'NTL' ??? When you are half way around the world...
 
Old 11-03-2006, 02:32 PM   #3
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks Camorri.

The IP address is correct for the network and the DNS servers are listed in resolv.conf

NTL is an ISP, come cable, come telephone company

Thanks for the tip about webmin but is there a manual way of doing this so I can learn how to edit my own start up?
 
Old 11-03-2006, 03:09 PM   #4
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
GOT IT!!!

And for as a first it wasn't anything I was doing wrong.

Because I tried to connect with an incorrect mac address from my laptop multiple times and then attempted again after a couple of seconds with the correct mac address I must have been locked out of my ISP for a short time.

I found this out because after I tried to connect with my laptop, I plugged my PC back in (which was working) and found that I could no longer connect to the net.

It was at this point I unplugged the power from my cable modem and went down the gym for a couple of hours. When I got back I tried my PC again and found that it was working again.

I then plugged the network cable back into my laptop and went through the process of changing my mac address again. I reactivated my network device through system-config-network and found that low and behold I could connect to the net and post the solution on LQ.

I hope this solution is helpful for someone else out there who is having similar problems.

Thanks for the help Camorri.

Last edited by mike_morley; 11-05-2006 at 10:51 AM.
 
Old 11-03-2006, 06:08 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Yeah NTL caches MAC's on DHCP for about 4 hours normally, piss them off and you get locked out for a while. NTL's customer services bite ass, but getting online with them is so painfully easy compared to PSTN ADSL providers.
 
  


Reply

Tags
connection, fc5, ifconfig, mac, network


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
network card not working abhi0304 Linux - Laptop and Netbook 1 12-25-2005 06:02 AM
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 07:30 AM
Network card not working jmke2002 Linux - Distributions 8 11-12-2003 03:09 PM
Network card not working...? Schizo265 Linux - Hardware 12 07-10-2003 06:03 PM
Network card not working.... tinaa Linux - Hardware 17 05-14-2003 02:59 PM


All times are GMT -5. The time now is 06:28 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration