How to disable/avaible network interfaces?


#1

Hi,

I need change network interface down/up.

I tryed these;

  • sudo /sbin/ifconfig eth0 down
  • SIOCSIFFLAGS: Operation not permitted
  • ip link set dev eth0 down
  • RTNETLINK answers: Operation not permitted

But, nothing worked.

Please, help me

Thanks