Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
Last active May 26, 2023 17:04
Show Gist options
  • Save JurrianFahner/c73ee22717f85418ef6017e13310938f to your computer and use it in GitHub Desktop.
Save JurrianFahner/c73ee22717f85418ef6017e13310938f to your computer and use it in GitHub Desktop.
ifconfig to ip
ifconfig
# is similar to
ip addr show
ifconfig eth0
# is similar to
ip addr show eth0
ifup
# is similar to
ip link set eth0 up
ifdown
# is similar to
ip link set eth0 down
# more commands:
ip addr add 192.168.1.121/24 dev wlan0
ip addr del 192.168.1.121/24 dev wlan0
ip route show
ip route add 149.210.223.249/24 dev wlan0
ip route add 149.210.223.249/24 via 192.168.1.1
ip route get 62.69.166.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment