From acbd8632778cd70d9a3b68692d3b9a6efd1e60bb Mon Sep 17 00:00:00 2001 From: ABorgna Date: Wed, 11 Sep 2013 01:00:59 -0300 Subject: [PATCH] Added ifconfig cheatsheet --- cheatsheets/ifconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cheatsheets/ifconfig diff --git a/cheatsheets/ifconfig b/cheatsheets/ifconfig new file mode 100644 index 0000000..ca0b9d1 --- /dev/null +++ b/cheatsheets/ifconfig @@ -0,0 +1,13 @@ +# Display network settings of the first ethernet adapter +ifconfig wlan0 + +# Display all interfaces, even if down +ifconfig -a + +# Take down / up the wireless adapter +ifconfig {up|down} wlan0 + +# Set a static IP and netmask +ifconfig eth0 192.168.1.100 netmask 255.255.255.0 +# You may also need to add a gateway IP +route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1