<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Verdana,Geneva,sans-serif'>
<p>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.<br /><br /><br />Showing interfaces:<br /># ip address show<br />OR<br /># ip a s <br /><br />this gives me a listing of my loopback and only interface on one of my VMs running CentOS7<br /><br />Stopping an interface (from https://serverfault.com/questions/34899/correct-way-of-bringing-network-interface-down-in-linux):<br /><br /># ip del "interface IP address" dev [interface name]<br /><br /><br />Adding an interface SHOULD be:<br /><br /># ip add "valid IP address" dev [interface name]<br /><br /><br />ifconfig used to be the script for this behaviour, I'm not sure why it's not in Ubuntu 17.04.<br /><br /><br /><br />--Brandon Fotiu<br />+1.248.396.2431<br />KE8DVY<br /><br /><br />On , Drew wrote:<br /><br /> Okay I got ip and grep and cut to give me the names. But now I'm<br /> having another problem. When I give the command<br /><br /> for I in `sudo ip address show | grep '^[0-9]' | cut -d ':' | cut -c 2<br /> | tail -2`<br /> do<br /> echo $I<br /> sudo ifquery $I<br /> done<br /><br /> I get<br /> enp9s0<br /> Unknown interface enp9s0<br /> wlp12s0b1<br /> Unknown interface wlp12s0b1<br /><br /> ip is finding them. But ifup\ifdown\ifquery isn't.<br /> Why?</p>
</body></html>