NetBSD static MAC address and static nemeserver

 

 

 

 

On NetBSD, the default MAC address is dynamic, which means that it changes every time the system is rebooted. In some cases this may be inconvenient and you will need a static MAC address. This is useful when your ISP uses MAC bindings or you may need to bind the MAC address to a specific IP address. To do this we need to perform some actions:

 

 

 

In a terminal we execute

 

Ifconfig emac0 link 00:11:22:33:44:55

 

Then do

 

ifconfig emac0 link 00:11:22:33:44:55 active

 

After that your MAC address will change but after next reboot it will become dynamic again. The following changes will have to be made in /etc/rc.conf to keep the MAC address you have entered above after a reboot:

 

 

ifconfig emac0 link 00:11:22:33:44:55

 

ifconfig emac0 link 00:11:22:33:44:55 active

 

 

You can also use static or static nemeserver for different purposes. You can do this by writing the nemeserver you use in /etc/resolv.conf

After a reboot of your NetBSD system, dhcpcd will overwrite the nemeserver, if you don't want it, you will have to add it to /etc/rc.conf

 

dhcpcd_flags="-C resolv.conf"

 

 

 

BSD is very simple and fun!