Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

Shutting down and bringing up an interface administratively

To work with the interface itself, we need to use another element of the ip suite, this being ip link. Note again the use of sudo:

$ sudo ip link set eth1 down

Checking our interfaces, we can see that the interface is in the DOWN state:

3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000    link/ether 08:00:27:0d:d9:0c brd ff:ff:ff:ff:ff:ff    inet 192.168.33.10/24 brd 192.168.33.255 scope global noprefixroute eth1       valid_lft forever preferred_lft forever

You will find yourself unable to ping this host from centos2.

To bring an interface back up, simply run the following:

$ sudo ip link set eth1 up
Note that if you add another IP to an interface on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content