LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 12:45 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
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, 06:11 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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, 06:14 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
Interesting gonna test that out tonige by just inputing the essid and the key
 
Old 03-19-2009, 11:07 PM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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