cheat-fork-echo/cheatsheets/ifconfig

14 lines
373 B
Plaintext
Raw Normal View History

2013-09-11 06:00:59 +02:00
# 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