"cdc_ether" ifconfig eth1 down Invalid

"cdc_ether" ifconfig eth1 down Invalid

< ifconfig eth1 down> in openwrt 18.06 is work,interface will be close.

but openwrt 19.07 can't work the cmd < ifconfig eth1 down>.

why????
Did i miss something ?

ip route get 1

?

I'm not sure what you're trying to do here.

Interface names can change between versions.

In OpenWrt the networking should be configured and controlled with UCI. Direct commands like ifconfig are not typically used. (Even in mainstream Linux, ifconfig has been deprecated for a long time in favor of ip.)

If you have changed to a DSA build the eth ports are completely different.

But I try cmd “ip link set eth1 down” is not working。

what that‘s meaning 【DSA build the eth ports are completely different】?
3Q!

1 Like

Perhaps the interface driver doesn't support the that method.

You should probably use this way:

ifdown usbwan

ifdown is work

1 Like

I found that udhcpc prevents closing the network interface

When udhcpc is not running, the network interface can be shut down normally.
image

When the network interface is created as the DHCP protocol, the operation of closing the network interface is blocked.

Why does the DHCP interface of openwrt19.07 prevent ifconfig down from closing the interface.