jeffsf
2
ip link set <name> down
ip link set <name> up
or, the much more invasive
/etc/init.d/network restart
Edit:
NAME
ip-link - network device configuration
SYNOPSIS
ip link { COMMAND | help }
ip link add [ link DEVICE ] [ name ] NAME
[ txqueuelen PACKETS ]
[ address LLADDR ] [ broadcast LLADDR ]
[ mtu MTU ] [ index IDX ]
[ numtxqueues QUEUE_COUNT ] [ numrxqueues QUEUE_COUNT ]
[ gso_max_size BYTES ] [ gso_max_segs SEGMENTS ]
type TYPE [ ARGS ]
ip link delete { DEVICE | group GROUP } type TYPE [ ARGS ]
ip link set { DEVICE | group GROUP }
[ { up | down } ]
brings the link (interface) down, which runs the hotplug scripts for “interface not available”, then up again, running the hotplug scripts for “interface becomes available”
/etc/init.d/network restart reads the network configuration from UCI, and reconfigures it as needed using netifd
1 Like