mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added ifconfig cheatsheet
This commit is contained in:
parent
60e2e66014
commit
acbd863277
1 changed files with 13 additions and 0 deletions
13
cheatsheets/ifconfig
Normal file
13
cheatsheets/ifconfig
Normal file
|
@ -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
|
Loading…
Reference in a new issue