[SOLVED] Connect to an AP by MAC address & Change NM behavior

Hello guys,
Here is my situation: I'm currently connected to the Internet through public hotspots. The problem is that sometimes I can get a connection at the first try and sometimes I have to try for half an hour. Eventually I found out that it's because a lot of hotspots (14) in my vicinity have exactly the same SSID (i.e FreeWifi because they are all public hotspots activated by an ISP on its customers' boxes) but since a couple of them are closer (and thus have a stronger signal), I'd like to connect to these ones only.
So first question, is there any way to connect to an access point by specifying its MAC address rather than its SSID? I've taken a look at wpa_supplicant.conf man page, but didn't find anything about MAC addresses.
A workaround would consisit in blacklisting the AP MAC addresses I don't want to connect to (networlkmanager.conf man page) but maybe there is a more straightforward way of doing it...
Then I have another problem which is somehow related to first one. Within the 14 access points with the same SSID, only 2 of them seem to be working fine for me. So I'm usually connect to either one of these 2 access points. The problem is Networkmanager often switch from one to the other and everytime it happens, I lose my connection since I have to re-identify myself. I guess it might be because the signal strength is fluctuating and that Networkmanager automatically switch to another known access point with a stronger signal (and in this case there should be a thresold configured somewhere).
Is my guess right? In this case, is there any way to inhibit this behavior?
Once again, I could do the same as suggested earlier (i.e blacklist the MAC address of one of the 2 acess points) but once again there may be a more elegant way.
Thanks for your help!
Last edited by sclarckone (2012-03-13 08:24:19)

Have a look at the "BSSID" field in your networkmanager configuration for the hotspot. You can configure the mac from the applet. Alternatively, have a read at the option "ap" and managed mode of iwconfig.

Similar Messages

  • Mac address changed after coming to IOS7

    After ipad retina upgrade to IOS7 mac address changed to a strange one starting with 02:00:00. So wierd.... Someone has the same magical thing?

    Same thing here. I believe this is causing netflix to freeze; as soon as someone else with the same MAC address initiates a Netflix session, mine gets bumped one notch until the next session with the same MAC initiates and then it's freezing time.
    Apple, fix please.

  • Printers connected to E3200 USB port - MAC address and IP address

    HI - I have a printer connected to the USB port of my E3200. It is working perfectly as a network device. It happens to be an Epson Stylus Photo 1400. My question:
    Does this printer now have its own MAC and/or IP address? If yes how can I determine what they are?
    I am on Windows 7.
    Thanks much!
    Solved!
    Go to Solution.

    wooleysdad wrote:
    Jake - Makes perfect sense. Thanks. Do you know how I can get the printer's MAC Address? Eliot
    It should be on the printer itself. Just look for the sticker. Most of the time it is at the bottom of the device or at the back it should say MAC address or look for the number that looks like this : 00:00:00:00:00:00.

  • CSCsy35054 - NP1/2 UDP conns not updated when MAC address changes

    We have a customer that appears to be experiencing this bug but with FWSM 4.1(15).
    There is a Linux HA solution on one side of the FWSM and when a failover occurs the Linux HA sends a Gratuitous ARP which updates the FWSM ARP cache however not all connections are updated.  If we sniff traffic exiting the FWSM we can see the destination MAC address for 'some' existing connections have the wrong MAC address (the old MAC address).  The clients are constantly sending traffic (SIP) to the Linux server so the connection states are continually refreshed.  If we manually clear the connections or let them time out by disconnecting one of the SIP clients for 30-minutes (the default SIP control channel session timeout) it recovers, however this isn't practical.
    We have recommended introducing a layer-3 hop between the FWSM and the Linux HA devices as we suspect this will solve the problem (i.e. the destination MAC will be the L3 next-hop and not the Linux server itself).  In looking at the issue we identified the behaviour as the same as that documented under BugID: CSCsy35054, however this says it appeared in 3.2(6) and was fixed in 3.2(12.1) & 4.0(5.4) however we are running 4.1(15) which is the latest release.
    Any other ideas?
    Andy

    Well your configuration looks great to me... nothing is obviously standing out at least..
    If the routers ping request makes it to your client, then the router must at least be able to arp for you.
    Have you tried to ping the gateway from the WLC itself? (vlan 171 it appears)
    I'm curious if the WLC even gets the ping through.  'show arp switch' on the WLC would show its arp table as well...
    I'm not very proficient with the router debugging, but perhaps there is some kind of ARP debug you can run to verify if the ARP request is even coming out of the WLC from your client?  
    Again, the config looks go to me, so either this is a situation where a nice save config and reboot would come in handy (perhaps coupled with shutting down the interfaces and turning them back on).....  or something just isn't right....
    Does this happen with the other vlans you have coming in to the WLC?  Perhaps there is just something going on the router side where it isn't responding to the arp....   which comes back to the whole shutting down interfaces and/or rebooting.   Obviously this isn't root-cause, but should at least provide sanity-check.

  • SG300 inter-VLAN routing and MAC address changes in incoming packets

    Hello
    I have SG300-20 working in Layer3 mode
    VLAN1 is not used
    Internet gateway is in VLAN211
    Clients are in other VLANs
    Switch is default gateway for clients and itself has internet gateway as default route.
    MAC address of switch is XX:XX:XX:XX:XX:63
    When client sends trafic to Internet destination MAC address in outgoing packets is XX:XX:XX:XX:XX:63
    But in incoming packets source MAC address is XX:XX:XX:XX:XX:69
    Why does it change? And how can I setup switch to use only XX:XX:XX:XX:XX:63 MAC address?

    Hi Robert,
    I'd like to pick up this old thread because we have a huge problem with the behavior of the SG300 router/switch regarding the "spoofed" MAC source addresses. We have connected this switch to another router which has some special routing capabilities. It routes certain IP packets directly to MAC addresses which it learned from snooping on special traffic.
    When connected to a SG300 router with an Ethernet base address of XX:XX:XX:XX:XX:48 we receive packets with Ethernet source addresses like e. g. XX:XX:XX:XX:XX:49 or XX:XX:XX:XX:XX:4D (depending on which hardware port they came from). Our special router "learns" these MAC addresses and tries to send associated outgoing packets directly to these addresses using e. g. XX:XX:XX:XX:XX:49 as the MAC destination address.
    Our problem is that the SG300 does not forward the packet if the MAC destination address is not equal to the switch's Ethernet base address (XX:XX:XX:XX:XX:48 in our case). This renders the SG300 series useless for our systems.
    Is there new firmware available which fixes this problem for us? We don't care which MAC source address the SG300 uses in incoming packets we receive, but we expect that the SG300 handles packets correctly for outgoing packets we send with this MAC address as the destination address.
    Thanks,
    Chris

  • 851W - mac address changes destination port on bridge

    Hello,
    We have a 851w configured in bridge mode between the wireless lan and the wired local lan.
    The mac addresses of the machines connected through wire keep changing the destination port on where they are registered.
    If they are on FastEthernetX everything works ok, when they are on VLAN1 we loose connection between wire and wireless clients.
    NORMAL OPERATION
    Destination Address  Address Type  VLAN  Destination Port
    0019.7d83.xxxx          Dynamic        1     Vlan1
    0021.8656.xxxx          Dynamic        1     FastEthernet0
    0022.9064.xxxx          Self               1     Vlan1
    ERROR: NO NETWORK
    Destination Address  Address Type  VLAN  Destination Port
    0019.7d83.xxxx          Dynamic        1     Vlan1
    0021.8656.xxxx          Dynamic        1     Vlan1
    0022.9064.xxxx          Self               1     Vlan1
    I tryed to debug using the various debug arp commands but didn't find  any useful info.
    Why does it change the destination port?
    How can I make it stable?
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname UM01
    boot-start-marker
    boot system flash:/c850-advsecurityk9-mz.124-11.XW6.bin
    boot-end-marker
    logging buffered 51200 warnings
    dot11 ssid UM01
       vlan 1
       authentication open
       authentication key-management wpa
       guest-mode
       wpa-psk ascii 7 00101615105E3F233C1569
    ip cef
    bridge irb
    interface FastEthernet0
    no ip address
    ip virtual-reassembly
    no dot11 extension aironet
    encryption vlan 1 mode ciphers aes-ccm
    ssid UM01
    speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
    channel 2412
    station-role root
    no cdp enable
    interface Dot11Radio0.1
    encapsulation dot1Q 1 native
    no cdp enable
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 spanning-disabled
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    interface Vlan1
    no ip address
    ip tcp adjust-mss 1452
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 spanning-disabled
    interface BVI1
    description Bridge to Internal Network
    ip address 10.10.189.254 255.255.255.0
    no ip http server
    no ip http secure-server
    no cdp run
    control-plane
    bridge 1 protocol ieee
    bridge 1 route ip
    line con 0
    privilege level 15
    no modem enable
    line aux 0
    line vty 0 4
    privilege level 15
    transport input ssh
    scheduler max-task-time 5000
    end

    FYI, the solution we found was to force the mac address of each wired computer to a physical interface and vlan 1.
    This seems to have stabilize the communications, no more mac address hopping between destination port.

  • Satellite C850D-104 - MAC address changes

    On the new C850D-104 laptop I have an issue with the mac address.
    Well in short: it changes.
    My firewall (also) filters on mac address so I need to add any new machine's mac address.
    Which seemed to work fine until I warm rebooted the laptop. No connection possible.
    And looking on the firewall, I see indeed a different mac address trying to connect.
    To be sure I rebooted again, and again I get a new address (another one).
    Rebooting cold ie. shutting down and restarting seems to reset the address to it's first one.
    And after a warm reboot same thing, new address.
    Now work around is simple, do a cold reboot, but it still remains annoying.
    On the internet I found issues with the netword card driver some versions back, but my current driver is some versions up from the one that should have fixed the issue.
    Any suggestions?

    Hi.
    I had the same problem in a C850-154 (with a Realtek wireless adapter) and the driver was from the beginning of this year.
    I've updated with the driver from 14/09/12 (version 2.00.0020) and the problem was resolved.

  • MAC address change under MacBook Pro MB133PL/A (Penryn) with Mac OSX 10.5.2

    Hi,
    Do you know how to change MAC address of ethernet LAN card (not Wi-Fi) under MacBook Pro MB133PL/A (Penryn) with Mac OSX 10.5.2 (Leopard) ?
    Thanks,

    I use the terminal.
    sudo ifconfig en0 lladdr /enter valid mac address here without the slashes/
    press return
    enter superuser password
    press return
    This will change the regular wired ethernet port on you MBP. To change the wireless MAC you should replace the en0 with an en1 but if you have a Airport v1.0 card then it will not work. It might work if you have a v2.0 but people seem to have off an on success with that. Also you can attempt putting ether in place of lladdr if you still have issues that need troubleshooting.
    I know there are some legit reasons to change the MAC address and many non-legit ones but lets just say for instance a friend of yours has a network or wireless and they forgot their password to control the settings on that network. Long ago when they made the network they limited access to it by binding it to certain MAC addresses namely theirs. Now they have given you permission to use the network but you can't because your computer does not have their mac address. They cannot make the network give you permission because they forgot their password so they give you thier MAC address and let you trick their network into thinking your computer is actually your friend's and then you are able to surf the internet. They won't just let you use their computer cause they need to write an essay offline for a few hours. This does not violate any terms of service, you got permission and unless there are some other extenuating circumstances this is a legit move. I assume this is the exact reason you want this information.

  • Will my MAC Address change after updating OS?

    I am using wi-fi network that needs the mac address. If I update my Firefox OS version, will the mac address be changed again?

    Here is a few things that you can try.
    1. Try booting to safe mode by holding the shift key while starting up.
    2. Reset the SMC
    3. Reset the PRAM
    Hope this helps!

  • MAC address changing

    How can I change the MAC address on Nokia e51.

    ice84 wrote:
    How can I change the MAC address on Nokia e51.
    I´m just being curious: why would you want another MAC address?
    By clicking the "Kudos!" or the "Solution?" button on the right you can say "Thank You" and you´ll show the author and others that the post is useful.
    The day we stop improving is the day we stop being good.

  • DHCP reservation BAD_Address and Mac Address changes.

    Ok.  I understand about Bad_Address and the things that can cause it.  That said, I am using Window 2003 and we are running DHCP.  Yesterday we had a series of short power outages.  Some were right after the other (1 or 2 seconds) others
    were 10 to 40 seconds in between.  The server (of course) has a UPS and so does most of our infrastructure (switches etc).
    But it seems that one type of Printer that we have, were all switched to bad_address and they could not pick up their reserved IP address.  Some of them seemed to remember their IP and are still functional, even though their reservation says bad_address. 
    I assume they will fail either at lease renewal or the next time they are power cycled.  What surprised me was that these bad_address entries' reservations were changed to have an invalid MAC address.
    All of them start with a 0 or a 1 and are only 8 characters long.  0401150a, 1701150a, 1901150a, hmmm.   i see a pattern forming.  They all have unique first 3 characters, but everything after that is 1150a.  That led me to figuring
    out what this number is.  It's an inverted hexadecimal representation of the ip address that is being complained about.  Why would the DHCP server replace the MAC with this convoluted string?   Is this covered in any manual?  
    I am pretty sure it's not in the DHCP RFC. 
    Not sure why it was having the problem, unless somehow the printers were powering and made the DHCP request then discovered that the old lease information was kept somehow (remember, some of the outages were very brief) after the request had gone out. 
    But that, and nothing else I can think of makes sense.  And it only happens on one model of our printer.  At least so far.  And this isn't the first time we've seen it happen this way. 
    Any ideas appreciated.
    Chris

    Hi Chris,
    Firstly, it seems that the Unique ID of the DHCP Reservations are inverted to the IP addresses in hex. And, the most possible cause is IP conflict.
    For example:
    0401150a -> 04 01 15 0a (hex) -> 4 1 15 10 (decimal) -> 10.15.1.4 (IP address)
    Meanwhile, I agree with the possible cause as you said, however, would you please kindly let us know the following:
    1. How many DHCP Servers do you have? Or, is the DHCP Server multihomed?
    2. Do the printers have multiple NICs?
    3. Are the printers both statically configured and have DHCP Reservations in the DHCP Server?
    4. DO other DHCP clients in the same scope have the same issue?
    5. Is there any trace in DHCP log?
    In addition, if Conflict detection is enabled in your DHCP Server, please disable it and see how it works.
    Also, please check if you can get some clues from this TechNet Thread:
    DHCP server bad address issue
    In addition, as the issue only occur with the same model of printers, it is worth to contact the vendor for their insight on it.
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Ethernet MAC address has changed and I can no longer connect to the network

    I have a new iMac, 21.5" running 10.6.4. It was purchased in the past month.
    I am using it on an ethernet network and using DHCP to obtain the address. It has been working for the past few weeks. I turned it on today and it is failing to connect. After some digging around, it seems that the MAC address (Ethernet ID) has been reset to 00:10:18:00:00:00. This is different to the one it has been using last week.
    I have not changed any network settings. Airport is working fine.
    If I pull out the ethernet cable and reinsert, the machine tries to obtain an IP address. After a while, it returns with a self-assigned IP Address.
    Last week, I did notice that it was taking a relatively long time (a minute or so) to obtain the IP address over ethernet. Plugging the same ethernet cable in a macbook, I am able to obtain the IP address for the macbook much more quickly.
    I see that I could use ipconfig to change the interface address to what I believe is the correct address. Would this be sensible?
    Why would the machine have reset the MAC address anyway?
    Regards,
    Neil

    Dear all,
    I am having the same problem with a new MacBook Pro, bought end of October - for me it became apparent for software (Matlab, Comsol) that are registered with a licence file which was created based on the MAC address, and also when trying to register the computer to the company network. That software will only work those times that the computer "knows" its real MAC. Also, I found that audible audio books, managed through itunes, will not synchronize with the ipod at those times when the MAC address is at the producer's default (00:10:15:00:00). I never had network issues other than this computer registration, - no probs at home or elsewhere - , so it will depend on the individual setup which issue users observe.
    I have had long phone discussions with different Apple support people, they have done checks based on Capture Data that I sent to them via email, etc.. They can't find the problem in the software/setup and they advised me to go the Genius Bar and have those guys look at the computer's guts.
    Restarting sometimes did set the MAC to the real one, also running the code that someone suggested in Terminal sometimes helped.
    Other than that, looking through the web, it does not seem to be an Apple-unique problem, but certainly one would like to see support to take care of that issue for Macs soon.
    Also, thanks a lot for this thread! Otherwise the support guys on the phone would not have believed my : "the Mac address changes on a daily basis" and would just have brushed me off.
    All the best,
    Susanne
    Message was edited by: semperula

  • Need to see MAC addresses connected directly to AirpOrt Extreme

    I need to see my MagicJack MAC address so I can reserve it an I.P. address or something.
    Anyone know how to see what mac addresses are connected? I know how to see which wireless addresses are connected, but wired ones.
    Thanks.
    Dwaine

    AirPort Utility in Lion does not display MAC address information for connected wired clients. The MAC address for the MagicJack should be on a label on the back or bottom of the device.
    If you are still using Lion, you have the option to download and install AirPort Utility 5.6 for Mac OS X Lion
    Open AirPort Utility, select the AirPort Extreme and click Manual Setup
    Click directly on Wireless Clients near the bottom of the summary page to see Wireless Clients. Click DHCP Clients to see wired devices.

  • Ethernet Mac Address suddenly changed

    Hello all.
    I experienced a really unexpected issue today when I connected my laptop as I do every day when I get to work, but found that I had no access to any of my servers / sites that I usually connect to.
    When I checked my network configuration on the Network System Preferences pane, noticed that my IP (assigned by DHCP) has changed... As if this was not enough, I reviewed the "Advanced..." settings and then the "Hardware" tab to check my mac address and noticed that the one being showed, did not match the one I had saved on my records.
    I'm very aware that there are software that changes the NICs mac address at will, but I have not installed any of this software on my machine.
    As additional information, I connect my laptop through an Avaya telephone / extention and it has been resetted recently because I found that my telephone had an error showing on its display screen and I incline to think that the issue with my phone may have had something to do with my mac address change.
    For the record, the new mac address assigned is 00:01:01:22:1d:64
    Please any help will be really appreciated.
    Thank you so much.
    Renato

    Another odd behaviour yesterday:
    As many of other ML users out there, I'm experiencing frequent crashes when I quicklook a link inside Apple Mail. That was the case yesterday when I tried to preview a link without opening Safari, my Macbook panicked and rebooted... The surprise was that when the machine was up again, guess what? The ethernet's mac address changed again but this time went back to it's original number
    Problem solved? I don't think so, but there is something that is messing around with my system at the lowest level... I have thought about voltage peaks on the ethernet cable, even a (Mac) virus, I'm lost here.
    I examined the console logs but to be honest, I don't even know what or where to look for...
    A hardware test will be a start.

  • So why does Lenovo put MAC addresses on Box?

    What I'd like to know is why Lenovo puts your devices' MAC address on the outside of the box. When I received my Thinkpad W541 over a month ago, I should have made this post then. For security purposes I don't think a MAC address should ever be published on the outside of a box. Just my $0.02
    Solved!
    Go to Solution.

    When you say "box", I assume you're talking about the cardboard box that the computer ships in.  The reason the MAC address (and corresponding bar code) is on the outside of this box is for enterprise management purposes.  IT admins scan this label to read the MAC address which is used for deployment purposes, such as Microsoft MDT/SCCM.  The MAC address may also be used to allow that specific PC onto their corporate network, so the IT admin needs an easy way to get it.  When you are talking about an IT admin that deploys thousands of PCs at a time, you can't expect them to open every box and then power on every PC to get to the MAC address which they need before they can do anything else.
    From a security perspective, every time you connect to a network, your MAC address is broadcast out to your subnet.  In addition to this, MAC addresses are sequential and predictable.  For example, the W541 that came out of Lenovo factory before yours, and after yours, you can guess their MAC addresses.  So while MAC addresses are unique, there is nothing random or secure about them.

Maybe you are looking for