[mdlug-discuss] Ubuntu 17.04
Brandon Fotiu
brandon at fotiu.com
Fri Apr 28 16:29:44 EDT 2017
As root, try the following. Also "$ sudo -s" will give you a root shell
so you don't have to do every command with sudo.
Showing interfaces:
# ip address show
OR
# ip a s
this gives me a listing of my loopback and only interface on one of my
VMs running CentOS7
Stopping an interface (from
https://serverfault.com/questions/34899/correct-way-of-bringing-network-interface-down-in-linux):
# ip del "interface IP address" dev [interface name]
Adding an interface SHOULD be:
# ip add "valid IP address" dev [interface name]
ifconfig used to be the script for this behaviour, I'm not sure why it's
not in Ubuntu 17.04.
--Brandon Fotiu
+1.248.396.2431
KE8DVY
On , Drew wrote:
Okay I got ip and grep and cut to give me the names. But now I'm
having another problem. When I give the command
for I in `sudo ip address show | grep '^[0-9]' | cut -d ':' | cut -c 2
| tail -2`
do
echo $I
sudo ifquery $I
done
I get
enp9s0
Unknown interface enp9s0
wlp12s0b1
Unknown interface wlp12s0b1
ip is finding them. But ifup\ifdown\ifquery isn't.
Why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mdlug.org/pipermail/mdlug-discuss/attachments/20170428/47e7dbd1/attachment.html>
More information about the mdlug-discuss
mailing list