LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-19-2009, 01:45 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
I have a question about mac addresses and my router...


I have a linksys wireless router with dd-wrt firmware installed. The router is also my gateway. I have a few computers behind the router. Now, when I connect via wireless I use
iwlist wlan0 scan

and I find my essid with a certain mac address for the linksys router. I connect easily with

iwconfig wlan0 essid xxxx
iwconfig wlan0 ap xx:xx:xx:xx:xx:06
iwconfig wlan0 key xxxxx
dhclient

However, when I check my arp cache I notice xx:xx:xx:xx:xx:04 as the mac address of my router. Why is the mac address last digit different?
 
Old 03-19-2009, 07:11 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
From man iwconfig :
Code:
ap     Force the card to register to the Access Point given by the address, if it is possible ....
So I guess it's not possible as the MAC of your AP is xx:xx:xx:xx:xx:04

So it just associates with your AP from the ESSID and key.
 
Old 03-19-2009, 07:14 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Original Poster
Rep: Reputation: 69
Interesting gonna test that out tonige by just inputing the essid and the key
 
Old 03-20-2009, 12:07 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Original Poster
Rep: Reputation: 69
I tested it out. I did

iwconfig ath0 essid xxx
iwconfig ath0 key xxx
dhclient ath0

and it worked!!. Then I ran

iwconfig ath0

and the Access Point read xx:xx:xx:xx:xx:06

So I ran

arp -a

and still the gateway(router and wireless ap) said xx:xx:xx:xx:xx:04

Why is that?

I've seen before on some modems where the mac address are listed and it usually lists two, each 2 integers apart like in this case. Which is which tho? I guess maybe, the gateway side would be xx:xx:xx:xx:xx:04 because it comes out on arp and the access point would be xx:xx:xx:xx:xx:06 because it's accessed from the inside, or maybe the wireless ap in the router has a separate nic just for wireless and a different mac (2 digits less) for ethernet.
 
  


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
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 09:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 08:17 AM
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 02:48 AM
Mac Addresses nixdisciple Linux - Security 6 07-01-2002 11:55 PM


All times are GMT -5. The time now is 08:33 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