Failing the Network (`ip`)
The ip
tool lets you manage network links on your system. It also allows you to manipulate some settings related to the links.
Typically, your main Ethernet link is eth0
, along with a loopback on lo
. If it's not you can use ip address
to discover which link is of interest to you. On machines with docker
installed you'll also see a docker0
link.
If you're shelled into a machine on a particular link (like eth0
) you should avoid taking it down or making the MTU too low.
Changing the State of a Link
Turn it on:
Turn it off:
Determine the Link Used for an Address
Exercises
Interrupt a network link where a client such as
psql
is running. (Connect via thelo
linksudo -u postgres psql -h 127.0.0.1
)Change the MTU size of a link with an active daemon connection to something ridicululous, simulating an strange error.
Last updated