Ubuntu Networking :: Change WLAN0 MAC Address At Every Boot

Jul 29, 2011

change my WLAN0 MAC address in my Kubuntu Natty 64 bit at every boot. I have done quite a bit of searching and found some procedures that appear to have worked back in 9.04 and before days but I have been unable to get anything to work for me in my 11.04 install. I have tried adding a script to if.pre-up.d and also tried adding a bootmisc.sh and either I did them wrong or they are not working. I want to make sure that every time I bring the wireless up in Kubuntu that I have the changed MAC address. I usually keep wireless disabled and turn it on just when I need it.

Background so you don't think I am doing something nefarious... I am going on a cruise soon. The cruise line sells wireless internet subscriptions for the duration of the cruise but they tie it to a MAC address. I am bringing my CDMA android phone that unless I use VOIP will be unable to call at all or at least with very high charges. But I also want to be able to browse the internet with my laptop. I figure it will be easier to spoof my phones MAC with the PC than the other way around. I just need to turn one device off if I am using the other. I need the MAC address to be semi permanent so I don't turn it on by mistake and have forgotten to change the MAC.

View 2 Replies


Debian :: Change Mac Address For Wlan0 Without Using Macchanger Software

Sep 6, 2015

I have running Raspbian on my Raspberry Pi

I have two usb wifi dongles that both work and connect to my router when testing.

- Edimax EW-7811UN
- Adafruit Miniature WiFi (802.11b/g/n)

However when I try to change the Mac Address's of either of these usb devices when only one is plugged in and in use at one time I cannot do it as the effects seem to not take place.

I have tried using cmd

Code: Select all    ifconfig wlan0 down
    ifconfig wlan0 hw ether 00:00:11:11:00:00
    ifconfig wlan0 up

and also editing /etc/network/interfaces file wlan0 entry

Code: Select all    iface wlan0 inet static
            hwaddress ether 01:01:01:01:01:01

After doing this and running ifconfig I can see that either of the two USB'S device has the same MAC.

I have also tried rebooting the device but the mac address is the same.

I have heard there is a package called macchanger but I would like to do this without it, how could I go about doing this?

View 1 Replies View Related

Ubuntu Networking :: Wlan0 Is Flukey With Static Ip Address?

Feb 4, 2010

Recently, I've set up Ubuntu Server 9.10 x86_64 (no GUI). I have two NIC cards in this machine. One is a wireless card that I would like to set a static IP address to. The other is an integrated NIC. Everything works just fine when I have everything set up under DHCP. I can ping both NIC cards with no issues. But as soon as I change over to a static setting, things work unexpectedly...

Things to keep in mind:

-All machines are running under the same subnet
-All machines are connected to a wireless router (freshly flashed with the latest firmware)
-This is a fresh install of Ubuntu Server 9.10 x86_64

--Static IP address on the WIRED (eth0) NIC works great. No issues. Can ping from my wireless laptop, and can ping from the machine to the outside world (ping google.com) as well as the gateway itself with excellent response times.

If I then turn on the WIRESLESS (wlan0) NIC after setting up a static address for it in /etc/network/interfaces, then turning the wlan0 on by issuing "sudo ifconfig wlan0 up", wlan0 shows up, but does not have an IP address associated with it, even though I set it up as static. I also cannot ping wlan0 from my laptop. I assumed that was because I needed to restart the networking service. So after issuing "sudo /etc/init.d/networking restart", I am able to ping wlan0 from my laptop with no issues.

Here is where things get strange. Lets say that I physically pull the plug on eth0. After dong this, wlan0 stops responding to the ping request that was initiated by my laptop at the same exact time. If I plug the cable back in, both eth0 and wlan0 begin to respond once again. But soon after I try to SSH to wlan0, wlan0 decides that it no longer wants to respond to the ping. I should note that it does ask me for a username and a password, but after I entered my password, the ping stops responding. Why should the wlan0 be affected in any way if something happens to eth0?

This all started when I set the server up with only a static configuration on wlan0. It appeared to be working well. I was able to ping the machine from my laptop as well as SSH into the machine. I went to bed and the next morning, I was no longer able to ping the machine. I let the ping run for a small amount of time with a few responses here and there. Then after a little more time of letting ping run, it tends to respond. Almost like I bothered it enough to decide that it was appropriate to start working again.

Ideally, I would like to have ONLY a wireless connection. But if I need to have eth0 up, it would be great to have option work as well. Bottom line is that my wireless is flukey. And I would like to find out why.

View 9 Replies View Related

Fedora Networking :: Wlan0 Cannot Determine IP Address?

Apr 18, 2009

I am tring to get my linksys wireless router to connect to my laptop that i recently installed Fedora 10 on. Well it is actully running of an external HD. Any way when i boot in windows it connects and works fine, but when i try to activate wlan0 it says "Cannot activate network divice wlan0!" "determining IP info failed..."

View 11 Replies View Related

Ubuntu Networking :: Ignoring Unknown Interface Wlan0=wlan0?

Jun 6, 2010

Also having this problem on Ubuntu 10.04.If I do "iwlist scan" I can pick up networks on wlan0:

lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.


View 2 Replies View Related

Fedora Networking :: Bring Up Wi-fi PCI Card (ifup Wlan0 Or Ifconfig Wlan0 Up) Whole PC Just Hangs Until Power It Off

May 20, 2009

When I try to bring up my wi-fi PCI card (ifup wlan0 or ifconfig wlan0 up) my whole PC just hangs until I power it off.

I believe I have the right drivers, but cannot see what I am doing wrong.

I'd really prefer not to go down the ndiswrapper route.

Firstly, I can see the PCI card and the driver it is using :

[J@gx260-f10 ~]$ lspci -k
01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)


the PC just hangs for ever. No mouse movement, ctrl-alt-del, nothing.

I have downloaded a Linux driver from Realtek but it will not compile. I have the latest kernel-devel, headers, and gcc. I can post compiler errors if anybody would like. They're all apparently to do with missing parameters.

View 6 Replies View Related

Ubuntu Networking :: Wlan0 Missing Every Other Boot?

Feb 21, 2011

I just installed Ubuntu 10.10 on a Sony VAIO VGN-NR110E.Literally, every other time I boot the wlan0 interface is missing. I saw that there used to be some problems with network manager in the past. My NM is running fine. When this happensCode:sudo ifconfig wlan0 upreturns:wlan0: ERROR while getting interface flags: No such deviceIf I reboot the wlan0 comes back up

View 2 Replies View Related

Ubuntu Networking :: Autostart Wlan0 On Boot ?

Apr 4, 2011

I have an Ubuntu server installed at home, on an older machine. Unfortunately I am to far from my router to run cat5 and solve this issue. But I want to be able to have the wireless come up if the server restarts as then i could log in remotely.

View 1 Replies View Related

Fedora Networking :: Starting WLAN0 On Boot Instead Of Logon?

Nov 4, 2009

I would like to mount a bunch of folders/shares when I start my machine up. I will be adding the mounts into my /etc/fstab folder BUT my WLAN0 only comes "up" and connects to my WAP AFTER logging in.

how I get it to start on PC boot instead of log in?

I think I need to disable network manager but I'm unfamiliar with the procedure in Fedora

View 2 Replies View Related

Fedora :: Change Your MAC Address On Boot ?

Nov 22, 2009

I have a dual-boot laptop where both are configured as clients for bacula (backup software). Since it is a laptop and it gets used outside the network where the backup is done, I can't just assign a static IP and be done; it really needs to accept an address via DHCP.

Changing the MAC address is easy:


But if you do this manually, then you'll need to restart your connection. I don't want to do that, I want the laptop to just come up with the correct address in the first place because one day I will forget to change it and the backup system will be very confused (and I will be very sad when I find myself needing that backup).

The solution is to run an init script prior to starting the network. Below is the script I am using, with someone marginal comments. It is based on the network script in /etc/rc.d/init.d, heavily edited. You will need to add one parameter to your ifcfg-ethX configuration file to set the desired MAC address. That parameter MACADDR does not seem to be used by any of the init scripts. You will find it in some of the scripts in network-scripts, but it is not used as an input parameter, but rather set by querying the NIC, thus this use does not conflict.

Here's the script:


View 6 Replies View Related

Debian Configuration :: Unable To Get Ip Address For Wlan0 During Init?

Sep 23, 2010

This is embarrassing. I can't get a wireless address from my router with dhclient. The distribution is sid/lxde/liquorix kernel with no network manager on /dev/sdb1.

root@sid:/home/jheaton5# dhclient -4 -v wlan0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.


View 14 Replies View Related

Ubuntu Networking :: Can't Change MAC Address

Jan 13, 2011

As I try to change my if0 MAC address either from /etc/networking/interface, or from GUI application, when I try to reconnect (through GUI) the application automatically creates some sort of alias interface with the default MAC every time, and leaves the one with the changed MAC aside.

View 9 Replies View Related

Ubuntu Networking :: Change To A Static Ip Address?

Apr 11, 2010

I have followed some instructions to change to a static ip address and have now lost my connection to my router. The mistake I made was not copying the original "interfaces" file before making changes.The file originally had: auto wlan0 iface wlan0 inet (something - I thought it was loopback but didn't work when I added it).

The instruction told me to put:
auto eth0
iface eth0 inet static

Which I did, using my own ip numbers, except for "broadcast". I didn't add that in because I didn't have a clue what to put there. When it didn't work, I tried putting it back to what I originally had except I can't rememebr that last bit. I added dhcp instead of what I thought it was but this didn't work either.

View 9 Replies View Related

Ubuntu Networking :: Internal IP Address Change?

Apr 16, 2010

Now I'm not too clued up about networking and IP addresses. However, I know that I have an IP address for my router (which is dynamic) and then all of my machines have internal address e.g.

My server, had the internal address of but now has changed to what causes this to happen? I have to change my port forwarding on my router to allow access to my server from outside my network.

View 3 Replies View Related

Ubuntu Networking :: USB Wi-Fi Adaptor For MAC Address Change

Jun 10, 2010

My laptop has an internal Broadcom wireless adaptor. It works fine for basic Internet access, but I cannot change the MAC address with ifconfig. I would like to be able to change my MAC address. Since this is a laptop, the only option for me to do this is a USB wireless adaptor. But compatibility is very hit-or-miss. I've already tried two USB adaptors that had been stated to be compatible with Linux, and while both worked for basic functionality, neither allowed me to change the MAC address.

For whatever reason, this information seems very, very difficult to find. I have spent upwards of ten hours cumulatively searching forums (including this one) and other resources, and have found only vague, outdated, or outright false information regarding USB adaptors that support this. I believe I will be doing a great service to other users like myself by getting this question directly and conclusively answered for once, and the more responses, the better.

Do you have (or know of) a USB wireless adaptor that actually allows you to change the MAC address?

If so, what is the specific brand and model number, and what steps were necessary to install the drivers?

View 8 Replies View Related

Fedora Networking :: How To Change The Mac Address

Feb 17, 2009

Some people may need to change the mac address of their ethernet network cards. This can be easily done with fedora with command line. Just follow the steps below:

1. Log as root on a textual console (ctrl+F2) or through "su -" command in your console

2. Print your network configuration with ifconfig

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:8B:6A:7E:9E
inet addr: Bcast: Mask:
inet6 addr: fe80::218:8bff:fedb:7e9e/64 Scope:Link


Here, eth0 is the ethernet interface of your system. The mac address is put in red.

3. Change your mac address using the following syntax

ifconfig eth0 hw ether 00:18:8BA:7E:90

The new value (in green) must be hexadecimal

4. if you have a dhcp server that distributes the adresses automatically, then request a new adress for your eth0 interface

[root@localhost ~]# dhclient eth0

5. Now, your interface is up and have a new mac and IP addresses. This feature may be useful if the network administrator ban you according to the mac adress, for example .........


View 1 Replies View Related

Fedora Networking :: Change IP Address In KDE?

Mar 26, 2011

I've just reinstalled F14 with KDE rather than Gnome and I'm finding that I'm unable to assign a static IP address to my wired connection.

KDE automatically connects via DHCP, but when I go into KDE's network manager, the eth0 connection isn't listed. In fact, no wired connection is listed. If I manually add one with the correct settings (including a static IP), it switches back to DHCP upon rebooting.

How can I get around this? Should I install the networkmanager-gnome package?

View 5 Replies View Related

Networking :: Change Mac Address - To Be The Same As Another Computer ?

Mar 3, 2010

I need to change my Mac address to be the same as another computer. My university for some reason only allows 2 computers per jack i think! and i have 3. for some reason when i plug my 3rd PC in i lose connection on my other two. i have a win 7 laptop and a Ubuntu laptop. I want to setup a small server since my school blocks all ports off campus i can't use it off campus but i want to use it on campus.

My 3rd PC is a ubuntu Desktop is there a program i can use or a command i can use to spoof the mac address.

View 1 Replies View Related

Networking :: Change MAC Address BCM4313

Dec 11, 2010

I purchased a Dell Notebook n4030, that came with the wireless adapter from Broadcom BCM4313. It's been a while since I've been battling with the Broadcom driver to make it work perfectly. I did it!

But some servers I work with wireless in my town and I need to always be changing the MAC Address of my wireless adapter. Whenever I make the change, which is in the Linux distribution is already using it, when I enter the command:

Come to me the message:

Then I give an UP interface, but after that the adapter does not get the IP address of the network.

View 14 Replies View Related

Ubuntu Networking :: Change Eth1 Mac Address Permanently 9.10?

Jan 22, 2010

how can I change eth1 mac address permanently in an easy way?

View 1 Replies View Related

Ubuntu Networking :: Change From DHCP To Static IP Address?

Nov 14, 2010

Does anyone know an easy way to do this? I can't seem to figure it out.

View 6 Replies View Related

Fedora Networking :: How To Change Wlan Mac Address ?

Mar 3, 2009

I couldnt find something for changing mac address for wireless. how to do that....

View 4 Replies View Related

Fedora Networking :: Change In Gateway Address?

May 26, 2009

OS:Fedora core 6

I have just changed my gateway address,now I can access internet with my browser but unable to run add/remove software as it says no network connection available,system updates are not working as well. What should I do make these working?

View 4 Replies View Related

Networking :: Can't Change From Dhcp To Static Ip Address

Jan 16, 2010

Can't change from dhcp to static ip address.I've installed Oracle's version of Linux Redhat 5, but I'm having no success changing from dhcp to a static IP address. My machine is plugged directly into a Belkin router which has the IP address: I use the gui: /usr/bin/system-config-network and set the network device to dhcp,it works fine. But if I set the IP address manually, I get no internet traffic, and if I ping an internet website, "network unreachable".The installation instructions for Oracle say that they want a full domainname. I've tried gateway.2wire.net. This worked in the last place I did a successful installation.It was the address of my ATT router. If I plunked that into a browser, I got the router configuration.

View 7 Replies View Related

Networking :: Change Mac Address In Pclinux 2010 Kde?

May 2, 2010

how can i change mac address in pclinux 2010 kde and can i do it by hand in interface file

View 1 Replies View Related

Networking :: Change Static Gateway Ip Address?

Mar 31, 2010

when I do "route -n", I got:


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 0 0 0 eth0 U 0 0 0 eth0 U 0 0 0 lo UG 0 0 0 eth0

I need to change the static configuration, like I, I don't know how it got there also I want to delete from a static gateway. How can I do this?

View 2 Replies View Related

Networking :: Find And Change Mac Address In Fedora 14

Jul 5, 2011

How to find and change mac address ?

View 5 Replies View Related

Ubuntu Networking :: Cancel Change And Return It To The Real MAC Address Of NIC?

Nov 9, 2010

In order to change the MAC address I do: ifconfig eth0 down hw ether ff:ff:ff:ff:ff:f0 When the ff:ff:ff:ff:ff:f0 is the new MAC address. Now how do I cancel that change and return it to the real MAC address of my NIC?

View 1 Replies View Related

Ubuntu Networking :: Change Ip Address Of Second Internet Sharing Network Card?

Sep 2, 2010

I have a second network card in my ubuntu desktop that I have sharing my internet connection with a wireless router. I have set the router to a static ip address within the network cards range. But, every time I restart the computer, the network card uses a different ip address. One time it will be, the next time it will be, ect. This makes me have to hard reset my router every time it does this. How can I set the network card to use the same ip address all the time?

View 6 Replies View Related

Networking :: Change Desktop Image To Display All Of IP Address?

Feb 14, 2010

I have a script that will change my desktop image to display all of my network IP address. I need to call this script whenever a change in the network occurs. Example, if I disconnect from one network and then connect to another network and get a new IP address.

View 1 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved