LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-27-2005, 09:38 PM   #1
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
Set MAC/HW Address in /etc/rc.d/rc.inet1.conf?


I know how to manually set a mac address using ifconfig, is there an arguement to do so in /etc/rc.d/rc.inet1.conf? Just wondering. If not, I'll just make a script to set it and bring it up/down. Thanks.
 
Old 09-27-2005, 10:04 PM   #2
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
in distro's i use, i just put MACADDR=blah:blah:blah in those config files....maybe try that?
 
Old 09-28-2005, 03:10 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
Starting with Slackware 10.2, you can add this to /etc/rc.d/rc.inet1.conf :

Code:
HWADDR[0]="00:12:34:56:78:9A"
if your card is not 0 but 1 in the .conf file, change "HWADDR[0]" to "HWADDR[1]" of course. And the value for HWADDR is yours to change...

Cheers, Eric
 
Old 09-28-2005, 09:30 PM   #4
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
ho ho. That's kind of amusing, as I did try that already, (mirroring the same general setup I figured it would use) However, it didnt work (probably since I'm running 10.1!!) Thanks for the heads up. I guess I'll just *make do*.
 
Old 09-29-2005, 02:35 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
You can copy the rc.inet1.* and rc.wireless.* files that Slackware 10.2 uses - they work perfectly well in Slackware 10.1 (just replace the old rc.wireless and rc.inet1 with the newer ones). You don't have to replace your *.conf files with the new ones, but you should look at them anyway, to see the new options that you can use.

If you have trouble getting the files out of a Slackware 10.2 CD or package, I have them as individual file here as well: http://www.slackware.com/~alien/rc_scripts/

Cheers, Eric
 
Old 09-29-2005, 07:11 AM   #6
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
Can someone tell me what the advantage is to override the card's hardware MAC address?

Here at the universities network I can only use one network card (card1), which is registered using the MAC address connected to my username. Can I then connect with a different card (card2) by entering the MAC address of card1 in rc.inet1.conf?

Cheers, Leon.
 
Old 09-29-2005, 07:32 AM   #7
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by LJSBrokken
Can someone tell me what the advantage is to override the card's hardware MAC address?

Here at the universities network I can only use one network card (card1), which is registered using the MAC address connected to my username. Can I then connect with a different card (card2) by entering the MAC address of card1 in rc.inet1.conf?

Cheers, Leon.
I tried "changing" MAC address before using dhcpcd command. What it actually do is that when the dhcpClient ask for an IP address from the dhcpServer, it will report the SPECIFIED Mac address. That is when it matters most. Getting your machine a valid IP address and "registered" on the dhcp server.

When you probe your machine, it will still show the ORIGINAL MAC address.

I know that the dhcp server can be set to check your MAC address against an allowed list before giving out the IP address. So, yes, I think you can use a different card to connect using your old card MAC address. But, you can be using both card at the same time since both will have the same IP address.

I may be wrong.

My NIC was block once, I just "changed" the MAC address and it works.
 
  


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
DHCP seems to set hostname = Mac address, doesn't reverse lookup techsimian Linux - Networking 4 08-15-2006 04:11 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
rc.inet1 and rc.inet1.conf edafe Slackware 0 02-16-2005 09:51 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
slack 9.1 rc.inet1.conf ? topche Slackware 4 12-28-2003 10:35 AM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
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