Closed jarusRnD closed 2 years ago
If you've not set up
Edit: Sorry, I thought you said you were using ifdown./etc/network/interfaces
accordingly and disable other network managers, then ifupdown isn't the right tool.
Does sudo ip link set eth0 down
work?
Not having any issues with either ip link
or ifconfig
when trying to do the same. I'm also not seeing the message about VLAN 0
.
So basically I want to turn on/off wire & wireless network interface from program or terminal. For disabling/enabling wlan0 network interface I try below cmd that working completely fine.
But for eth0 same method not working below "/var/log/syslog" given for
sudo ifconfig eth0 down
syslog for
sudo ifconfig eth0 up
Nov 5 13:21:29 raspberrypi kernel: [ 216.923295] 8021q: adding VLAN 0 to HW filter on device eth0
Probably dhcpcd can't acquire carrier for eth0.Below "/etc/dhcpcd.conf" file contain give
and i have not change in "/etc/network/interfaces" file.