HN user

davedavedave

7 karma
Posts0
Comments5
View on HN
No posts found.

Yep, I'm fully aware of ifconfig. I use "ip link" just out of habit, and, given that ifconfig is apparently deprecated, it might disappear some day.

Anyway, the point of my post was showing some basic things which can be done with ip, and how to do them.

I didn't know about the one-per-line option, so thanks for that.

Commands I use regularly instead of using ifconfig:

  # link up/down
  ip link set dev eth0 up|down

  # add a new address
  ip addr add dev eth0 172.16.43.124/24

  # to clear all IP addresses from eth0
  ip addr flush dev eth0

  # delete an address
  ip addr del dev eth0 172.16.43.124/24

  # add default route
  ip route add default via 172.16.43.254
Edit: I fail at formatting

As a general rule of thumb, I like the 10/20/30 rule: 10 slides, 20 minutes, 30pt font.

I'm not a fan of speaking (although I'm starting to come round to it) and I tend to waffle both on the slides and when talking, so this helps me to keep focused.