LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-14-2010, 08:39 AM   #1
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Rep: Reputation: 1
Network Hardware Address, from the actual physical card


I have rather annoying problem here, god I really wish I hadn't done this lol.

I am basically trying to get one of my 2 network cards to accept dynamic IP's from my ISP right?

It used to be a dhcp server in itself, infact it will be but going through eth1 anyways.

I thought ah the easiest thing to do would be to note down the MAC/hardware address of the Interface card right (that obviously holds the internet connection or rather provides it).

Copy over the other configs from the other card and rewrite the MAC address to what I noted down.

Now its not working.

Is there anyway of preferably resetting these files in /etc/sysconfig/network-scripts/ifcfg-eth* (the astrix being the actual cards configs?

Or I if failing that is there anyway of maybe rewriting them once again and then reconfiguring it manually, if so how would I get the actual mac address?

Just a bit confused, any helps appreciated.

I have a virtual host I have configured to try any suggestions out, its in the same situation as my actual physical test bed server but this is killing me for understanding how to approach it lol.

I really appreciate any replies,
Jez.
 
Old 12-14-2010, 04:47 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Assuming you have console access to the box :-

- service network stop
- rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
- service network start
- system-config-network-tui

If you want to do things manually, take a look at /etc/sysconfig/network-scripts/network-functions .. there are tons of helpful functions you can call to obtain info, configure networking etc

cheers

Last edited by kbp; 12-14-2010 at 04:49 PM.
 
  


Reply



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
How can I find the actual Virtual -> Physical Memory Map Pages? VorlonInfoTech Linux - General 0 12-23-2008 09:17 AM
Read/Write data to SD card physical address by USB Reader in Fedora 7 yuanlaidewo Linux - Newbie 0 07-14-2008 10:18 PM
What is UDP port & hardware address of my network card?? coolblue Linux - Networking 3 09-19-2007 10:33 PM
many VNIC's (Virtual Network card) on one physical NIC posterman Linux - Networking 9 07-06-2006 12:03 PM
get the actual hardware memory address of kernel oops edman007 Linux - General 0 02-24-2005 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 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
Open Source Consulting | Domain Registration