Just to be clear, how can I make sure I'm disabling and restarting the right interface, because mine is not wlan0?
The command
ip link show
displays all your interfaces. You will have one called lo
which is only an internal interface, used for IPC (=Inter Process Commnication). Among the remaining ones you can identify the wifi interface by means of
$ iwconfig
eth0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wwan0 no wireless extensions.
lo no wireless extensions.
which shows clearly that, on my pc, wlan0
is the only wifi interface.
If you have more than one remaining interface, like in my case, you can identify the ethernet NIC by means of
sudo ethtool eth0
sudo ethtool wwan0
: the ethernet interface will produce a long output, the other one will be very short. In my case, I have a wwan0 interface which is used to connect to telephone data networks, Edge/3G/4G.
4It is best to forget obsolete utilities like
ifconfig
, and to use the currentip
utility from theiproute2
package. Then the commands becomeip link set dev wlan0 down
,ip addr flush dev wlan0
,ip link set dev wlan0 up
. – MariusMatutiae – 2016-02-15T11:50:28.887@MariusMatutiae Appreciate that I will Add this in and give you Props. – NetworkKingPin – 2016-02-16T05:23:59.163
I tried the ip utility method, but got this when I tried to restart it:
'RTNETLINK answers: Input/output error' – Jefferson – 2016-02-16T06:32:50.553
Just to be clear, how can I make sure I'm disabling and restarting the right interface, because mine is not wlan0? – Jefferson – 2016-02-16T06:57:45.047
@Jefferson Check here https://fedoraproject.org/wiki/Features/SystemdPredictableNetworkInterfaceNames
– NetworkKingPin – 2016-02-16T06:59:14.203@Jefferson Pls see my answer, only to your question °Just to be clear, how can I make sure I'm disabling and restarting the right interface, because mine is not wlan0?* – MariusMatutiae – 2016-02-16T07:34:22.127