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:
Code:
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:
Code:
View 6 Replies
ADVERTISEMENT
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
View Related
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:10.1.128.244 Bcast:10.1.255.255 Mask:255.255.0.0
inet6 addr: fe80::218:8bff:fedb:7e9e/64 Scope:Link
[code].....
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 .........
[URL]
View 1 Replies
View Related
Oct 15, 2009
I'm using fedora 11-KDE version but I'm not change my dns adress.Can you write here it step step =) Only I want use opendns fedora 11-kde =)
View 4 Replies
View Related
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
Mar 3, 2009
I couldnt find something for changing mac address for wireless. how to do that....
View 4 Replies
View Related
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
Mar 30, 2009
I've been trying to research this, but I don't really understand IP routing and it's bugging me that I can't fix this problem. I have a dedicated server (fedora core 7) with 3 IP addresses on the same eth0 interface. On the default IP address 62.193.226.127, there is some routing problem because I can't connect from the server to some other sites. Using one of the other IP addresses, like 62.193.252.129, I can connect fine. Additionally this address is better for sending mail because it coincides with the main domain name from which the mail is sent.My question is: how can I configure networking so that outgoing traffic from the box goes via 62.193.252.129?
View 2 Replies
View Related
Jul 5, 2011
How to find and change mac address ?
View 5 Replies
View Related
Jun 15, 2011
Dual booting Windows 7 and Fedora 15. What I would like to know is if I can change the boot order to boot Windows 7 first and Fedora 15 as other or second.
View 5 Replies
View Related
Jan 5, 2010
I'm using crunchbang (jaunty) on an old desktop at home that I intend to use as an ssh server. I have everything set up and ready to go, I can ssh just fine if I'm on the same network (on my laptop) as the server, but when I tried remote access, I realized that I had the general IP (192.168.1.100) and that I needed to change the IP address to ssh remotely.I have tried to manually change the /etc/network/interfaces file but have only gotten confused.The question is what do I change and where in order to get a unique IP address for my ssh server to ensure a successful remote connection?
View 2 Replies
View Related
Jul 27, 2011
I use GNU MAC Changer. It changes my local network connection mac adress properly. But it does not changes my wireles mac adres. I try it with sudo ofcourse the error which i get is : "ERROR: Can't change MAC: interface up or not permission: Too many open files in system". I disable the wireles connection and then try to change the mac but i get the same error. I try these commands :
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up
[code]....
View 3 Replies
View Related
Aug 13, 2011
HOW DO I CHANGE MY IP ADDRESS ? I read the how tos and did something in the terminal..but I am not sure..I am stupid and I dont know what I am doing.
View 9 Replies
View Related
Aug 11, 2010
I have setup a machine with Ubuntu 10.04 server and i have installed a KNC card for Streaming the channels. Everything is good so far and here is the real deal .. i wanna change the MAC address of the KNC card to try different things. I know how to change the MAC address of the LAN card but not sure about the KNC card. I tried few things by installing macchanger.. but didn't work out. Can any one tell me whether its possible to change the MAC of the KNC card and other tricks.Here is a little info:-
[ 11.344208] saa7146: register extension 'budget_av'.
[ 11.344704] budget_av 0000:04:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 11.344739] IRQ 22/: IRQF_DISABLED is not guaranteed on shared IRQs
[code]...
View 8 Replies
View Related
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
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
Jan 3, 2011
I have an old Suse 8 installation on a vmware-host, where I had to change ip-addresses. Now something isn't working as it shouldn't:
- Proftpd isn't recognizing the old pw's (coming from a my-sql db)
I am not a real expert on linux, where is the address "192.168.1.37" configured on my machine? The Mysql daemon is running on this IP.
I can ping it: Code: web10:~ # ping 192.168.1.37
PING 192.168.1.37 (192.168.1.37) from 192.168.1.37 : 56(84) bytes of data.
64 bytes from 192.168.1.37: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 192.168.1.37: icmp_seq=2 ttl=64 time=0.023 ms ifconfig result:
Code: web10:~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:79:47:DF
inet addr:88.198.100.35 Bcast:88.198.100.39 Mask:255.255.255.248
inet6 addr: fe80::20c:29ff:fe79:47df/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:563 errors:0 dropped:0 overruns:0 frame:
TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58845 (57.4 Kb) TX bytes:23467 (22.9 Kb)
Interrupt:19 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5807 (5.6 Kb) TX bytes:5807 (5.6 Kb)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
route: Code: web10:~ # route -n
Kernel IP routing table ....
Where else the IP 192.168.1.37 is configured?
View 7 Replies
View Related
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
Jan 9, 2010
how to change ip address on centos 5.3 ?i could not search the file such as "interface" ,
View 3 Replies
View Related
Jul 30, 2010
How can I change the MAX address string using sed. What I need is to add or subtract number from MAC address, e.g.
Input string:
ethaddr=00:21:04:4D:BB:00
Output string
ethaddr=00:21:04:4D:BB:05
I'm not experienced with sed.
View 5 Replies
View Related
Apr 12, 2010
I need a way to change the machine MAC address via a C code in linux. Ive find a way to retrieve it but not to change it.
View 4 Replies
View Related
Nov 4, 2009
1.) How do I change my root password?
2.) How do I change my SSH port number?
3.) How do I change my Local IP address?
4.) What's a good program or command to renew my MAC address?
5.) How do I install Flash Player?
View 5 Replies
View Related
Oct 25, 2009
What file would I need to access to change what OS grub boots up to?
View 2 Replies
View Related
Mar 20, 2011
I have a dual boot Fedora/Windows 7 setup. When I start the computer grub presents a menu that allows me to boot either Fedora or Win 7. Which file do I edit to alter that menu?
View 3 Replies
View Related
Jun 16, 2011
how slow XP was on my laptop, a casual friend (who moved away and I have since lost touch with) installed Fed 11 as a dual boot with XP, Fed 11 first. It has worked great for email and some net surfing. Now the machine is going to my wife, who does not want have to go to the boot menu to get XP. How do I change the order so that XP boots first and you have to go to the menu to get Fed 11? I've tried going through the forums, but since I'm not really a computer person, there are some basics I don't know (for example "open a terminal" - how does one do that?)
View 5 Replies
View Related
Apr 3, 2010
I've recently changed the motherboard of a redhat server that's been running fine otherwise. The new motherboard is different to the old one. I can't boot in now; getting "Kernal panic: VFS : Unable to mount root fs on 00:00" messages. I've run mkinitrd to rebuild the image file and have changed the grub.conf line to point to the new image file but it still occurs.
title Red Hat Linux (2.4.25)
root (hd0,0)
kernal /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd.img.2.4.18-14
However; during the bootup I spy some "unknown IDE device" errors along with some "IRQ resource cannot be reserved" and/or "Could not enable IDE device" or similar messages. As per attached image.
I can detect the harddisk when I bootup using rescuecd and that's how i rebuilt the image file. I have tried changing the "ro root=" to "ro root=/dev/hda3" or other hdax figures; but still the same.
View 5 Replies
View Related
Dec 5, 2010
Despite what the man page says, and what I have read out on the web, I cannot get the mail command to let me change the "from address"
I have tried to change the reply address (-R my@address.com)
I have tried to change the from address (-f my@address.com)
..... and so on
Anyone have any luck, from the command line (as I am setting up cron jobs) in changing the "from" address?
echo test | mail -s "This is a test" user@domain.com (this is the basic command I wish to use, but change the "from address")
View 9 Replies
View Related
Aug 13, 2011
I have to change my MAC address in order to get an IP lease via DHCP. But almost no installer CDs have ifconfig and dhclient.
ifconfig eth0 down
ifconfig eth0 hw ether 00:22:15:C0:27:23
ifconfig eth0 up
dhclient eth0
Is there any way to change a MAC address within Debian or Ubuntu installer CDs?
View 2 Replies
View Related
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
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
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
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.
192.168.0.2
192.168.0.3
etc...
My server, had the internal address of 192.168.0.4 but now has changed to 192.168.0.7 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