LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-27-2002, 01:02 PM   #1
pmoss
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Rep: Reputation: 0
Question Aliasing ethernet hw address?


How would you go about using a diffrent hw address for an ethernet card. I can do IP aliasing - so I tried:

ifconfig eth0:0 hw ether xx:xx:xx:xx:xx:xx

and got a:

SIOCSIFHWADDR: Device or resource busy

The cable modem provider uses the mac address to verify. I am setting up a Linux router - and I'm not ready to pull out the ehternet card from my other working computer yet. As I want to test every thing out first.

I've looked/sweated over the Adv routing, Ethernet, IP Masquerading Howto's but haven seen this subject. So far its taken me about 2 weeks to get where I'm at: RedHat 7.2, 2 3Com Ethernet III cards, iptables with masquerading.
 
Old 02-27-2002, 02:25 PM   #2
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
Questions

Try giving eth0:1 instead of 0, because 0 is itself. Try that and let us know.
 
Old 02-27-2002, 02:54 PM   #3
pmoss
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
eth0:1 didn't work - same measage.
 
Old 02-27-2002, 04:24 PM   #4
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
How did u do it?

When I configured my virtual IP address, this is how i did it:

- create a file named ifcfg-eth0:1 in your /etc/sysconfig/network-scripts directory;
- write this in that file:

DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
# here you should make some adjustments
IPADDR=192.168.1.1
# here too
NETMASK=255.255.255.224
# and here
GATEWAY=192.168.1.1

- restart your network service
 
Old 02-27-2002, 04:24 PM   #5
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
How did u do it?

When I configured my virtual IP address, this is how i did it:

- create a file named ifcfg-eth0:1 in your /etc/sysconfig/network-scripts directory;
- write this in that file:

DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
# here you should make some adjustments
IPADDR=192.168.1.1
# here too
NETMASK=255.255.255.224
# and here
GATEWAY=192.168.1.1

- restart your network service
 
Old 03-01-2002, 12:33 PM   #6
pmoss
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
I was able to setup an ifcfg-eth0:1 file.
I included the "HWADDR=" tag and put a fake mac address to it.
restarted the Network and ran ifconfig:
But it ignored my fake mac address and used the real one.

I don't think that I can spoof my mac address using this method.

Thanks for your help.
 
Old 03-01-2002, 10:09 PM   #7
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

I think u cant spoof the MAC address. It is burned the Card Eprom itself.


Siddiqu.T
GNOC
 
Old 03-01-2002, 10:09 PM   #8
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

I think u cant spoof the MAC address. It is burned the Card Eprom itself.


Siddiqu.T
 
Old 04-22-2002, 05:10 PM   #9
Drew
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by siddiqu
Hi..

I think u cant spoof the MAC address. It is burned the Card Eprom itself.


Siddiqu.T
I think u *can* spoof the MAC address of the primary interface. In fact... I *know* you can. I think u can't spoof the MAC address of any aliases.

Down eth0 and then try...

ip link set eth0 address 00:50E:AD:00:2D
 
  


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
Cannot determine ethernet address for proxy ARP JohnKFT Slackware 6 05-19-2020 11:49 AM
Aliasing IP with Mac Address roopunix Linux - Networking 10 06-13-2005 02:40 AM
How to find ethernet card I/O address palanisaravanan Linux - Newbie 2 12-29-2003 12:53 PM
Setting Up 2 i.p address on one computer with one ethernet card gr8razorx Linux - Networking 3 11-29-2003 01:51 PM
Ethernet Problem resolved for NO IP address rlfederico Linux - Networking 0 05-31-2003 05:38 PM

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

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