Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779019 - macchanger settings make device fail to automatic UP, if static address has set
Summary: macchanger settings make device fail to automatic UP, if static address has set
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-29 06:04 UTC by labyrithfind
Modified: 2024-03-03 22:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description labyrithfind 2021-03-29 06:04:56 UTC
Hi all,

Recently I was thinking add MAC address randomization for my network device (eth0).

I've followed the introduction in net.example file, and add the following lines to the network configuration file:
  /etc/conf.d/net 
  mac_eth0 = "random-ending"

Previously, there's a static IP address settings for this device:
  config_eth0=xx
  routes_etho=xx

After I restart the net.eth0 service, then the MAC address do has changed, but the device isn't get auto UP. So I have to start it manually via:
  ip link set eth0 up.

==
To fix issue, I simply change the IP assign mode to dhcp:
  config_eth0="dhcp"
Then there's no issue with device not auto UP.


Could you please check with the possible cause of this issue? (settings or something..)
Thanks on this!
Comment 1 labyrithfind 2021-03-29 06:27:06 UTC
I'm guessing this might cause about routing ..


When mac_eth0 has been added, the log of starting the net service is something like:

..
 Adding routes
   default via xx.xx.xx.xx
Error: Nexthop has invalid gateway.

So even if I start this device manually, there's one route be missing, compared with the previously, not adding mac_eth0:
  default via xx.xx.xx.xx dev eth1 metric 2 (result of ip route)