MAC address randomly changes when bringing interface up [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Every time I start my network interface, I get a different MAC address! If I try to force the MAC address value using
ifconfig usb0 hw ether AA:BB:DD..:FF
it will be again different after issuing
ifconfig usb0 up
What make this MAC address change? How can I stop this to happen and stick to HW burned MAC address?
I am using a panda board (omap4/armv7) on a angtrom distribution. The inteface is a smsc95xx USB 2.0 Ethernet.
Thanks,
Fabrice.

There is an issue with the smsc95xx driver.
[PATCH] smsc95xx: generate random MAC address once, not every ifup
There is also something in the work to get a 'repeatable' MAC generation going, but it didn't get much uptake:
Beagleboard xM smsc95xx MAC address from die id
Edit just searching for smsc95xx mac address gives a ton of competing patches, with some more explanations (the smc hub+NIC frequently doesn't have an EEPROM, so also no MAC)

MAC addresses are typically coded in the chipset, but mutable.
It might be that your distro is randomising it for security reasons.

Related

Cannot connect to my raspberry pi anymore [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I wanted to use my android phone as a display for my Raspberry Pi 4B, so I searched the internet, found an instruction and copied the code into my Pi, I was connected to (via SSH). This is the code I put into /etc/network/interfaces:
iface usb0 inet static
address 192.168.42.42
netmask 255.255.255.0
network 192.168.42.0
broadcast 192.168.42.255
This sets the IP to a static one (192.168.42.42).
I rebooted and tried to SSH with IP 192.168.42.42, because I thought, this was the new IP for the Raspberry Pi.
Long story short, it doesn't work. I also tried some other IP's, I cant find the IP in NUTTY or with nmap.
How can I connect to my PI now? (I don't have a monitor or a crossover LAN cable)
I'm using an older MacBook Pro with Linux Mint 19
Where I got the code from: https://joshuawoehlke.com/android-raspberry-pi-display-over-usb/
You could take the SD card out of the Pi and put it in your Mac/Linux machine and correct/remove the /etc/network/interfaces file from the SD card.
Or, you could go to the SD card's /boot partition and touch ssh in that directory so that sshd starts and also create in that same directory a wpa_supplicant file to match a temporary WiFi hotspot you create on your phone or Mac. Then you can ssh into it over WiFi and whatever you want.

No network interfaces on Debian 8 Lenovo install [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
So I recently got the Lenovo x270, and installed Debian on it instead of the default Windows OS. I've come to find out WiFi, as well as ethernet are both shipped not working. I've tried to fix it, but nothing has worked so far. I switched from straight Debian 8 to Kali to see if it was just a problem in base Debian, but it wasn't. Laptop specs related to issue:
Intel® Dual Band Wireless-AC 8265
Kali Linux (Kernel 4.0.0)
1 Ethernet port
I installed the Intel drivers needed for the 8265 (http://www.intel.com/content/www/us/en/support/network-and-i-o/wireless-networking/000005511.html). However, this requires a kernel version of 4.6, which it doesn't seem I can get without apt-get which I can't use because I don't have internet.
I also attempted to manually add the ethernet using https://wiki.debian.org/NetworkConfiguration#Setting_up_an_Ethernet_Interface and a few other sources I've now lost, but that didn't work either. The main problem I'm having is it seems you need internet to be able to install various packages that allow you to get internet, so I'm not sure what to do. Any ideas would be a great help.
Thank you.
Without knowing the specific NIC, it's hard to say which specific driver is required though Lenovo lists the x270 has having an intel NIC. Running lspci should give you the manufacturer and device ID of the NIC, which enables you to lookup the device on sites such as http://pcidatabase.com/.
The kernel messages might contain useful debugging information, try running dmesg, it might give you information on detected devices or driver-issues.
The kernel might not have loaded the relevant module for the intel WNIC, try forcing it by running sudo modprobe iwlwifi.
Wireless networking devices require non-free firmware. For the intel 8265, this is available as a .deb-package at https://packages.debian.org/search?keywords=firmware-iwlwifi, .deb-packages can be installed using sudo dpkg -i packagename.deb.

How can I connect to internet with wireless USB adapter in Fedora 20? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am at the stage of learning Linux.
I have just installed Fedora20, but I cannot connect to internet with
my Wireless USB adapter....
Can anyone help me to use internet in Linux fedora 20?
This question is probably going to get migrated to somewhere like Super User, but just to give you a starting point, does the Wireless adapter register as an interface? Run ifconfig -a on the terminal and look out for a wlan0.
Then run ifconfig wlan0 up, and you can then do iw dev wlan0 scan to list access points that the card can see. You can then do some Googling about connecting a wireless card using wpa-supplicant.
If you can't see a wlan0 interface in ifconfig it could be that you don't have the drivers for your Wifi card. You'll need to Google which drivers are required and you might be able to get a kernel module or driver binary from somewhere on the internet.

How to avoid mac in rhel6 changes on every reboot? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a NVIDIA Corporation MCP61 Ethernet which mac address changes eveytime I reboot my box.
[root#sun etc]# dmesg |grep eth0
forcedeth 0000:00:07.0: ifname eth0, PHY OUI 0x732 # 1, addr 66:b6:95:ea:3e:29
udev: renamed network interface eth0 to eth3
udev: renamed network interface eth0 to eth1
This time it's 66:b6:95:ea:3e:29. How to avoid this?
This is offtopic for here, but its a known bug for a long time. See this extensive discussion at Ubuntu's bugtracker.
It also has a fix proposed some 10 years back.
I know its Ubuntu's bugtracker, but the problem is with the linux kernel drivers. The link there will lead you to some work arounds to solve the problem.

how to set up multiple IP addresses on my linux? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm doing some computer network homework and I'm supposed to develop some sort of Peer to Peer file sharing software, and when I wanna test it I need to run a few (5) instances on my linux/ubuntnu 11.10 . which means each one need to has a unique IP address. I heard I can do that but I dunno how. how can I have many IP addresses on a single computer? thanks
I think you are talking about two different problems:
How to assign multiple IP addresses to a single machine? That is possible, that is a standard functionality of any modern operating system. And that is also off-topic on StackOverflow. In Linux the way to persistently configure it can be very distribution-specific. ip addr add $IP_ADDRESS dev $INTERFACE is the general way, but won't survive a reboot or network reconfiguration.
How to allow an application instance use a selected one of the machine addresses? That is quite easy – you must bind your server socket to an address. Usually you will only provide a port number (the IP address set to INADDR_ANY for the standard C IPv4 socket API), but you can use any IP address on the machine there. Details depend on the API you are using.
We solved that by using some Virtual Machines.. Every VM has its own IP and it behaves like a standalone OS.
//Edit:
VirtualBox is my favourite: http://www.virtualbox.org/
If you are programming future-oriented, your program deals with IPv4 as well as IPv6. In this case, you can have several IPv6 addresses on one PC and maybe tell each instance to bind to a distinct address.

Resources