Freebsd 16 , How do I completely disable Auto DHCP on VLANs ?

HI

By setting :

ifconfig_em0="up"

in /etc/rc.conf auto DHCP does not trigger and I can configure IPv4 manually
this seems to be harder when setting up VLANs.

during startup of server, entries are added automagically to /etc/rc.conf , and I see

ifconfig_vlan0="DHCP"
ifconfig_vlan1="DHCP"

in rc.conf after every reboot.

Where in the boot sequence can this behavior be turned off ? and DHCP client activities be fully stopped ?
the DHCP operations casuses the CISCO switch to put the port in shutdown down mode.
So I need to turn this "feature " off.
 
Topics about unsupported FreeBSD versions

during startup of server, entries are added automagically to /etc/rc.conf
No, it doesn't? What makes you think interfaces have been added automatically?

Maybe you are using net/cloud-init or something similar? There's nothing in the standard rc(8) scripts that 'automagically' adds interfaces to /etc/rc.conf, as a matter of fact nothing is added or removed from rc.conf at all.
 
What the fudge? Entries are added to /etc/rc.conf at boot? That'd be news.. So if you remove them, they come back at next boot if I'm understanding correctly. That should never happen unless you do something very custom yourself.
 
A common mistake I've seen newbies make, putting commands like sysrc(8) in rc.conf. Don't do that, don't put any command in rc.conf. This file is sourced countless times from within rc(8) scripts and your commands will get executed each and every time it is sourced. rc.conf should only contain variable assignments and nothing else.
 
Back
Top