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
|
2013-12-03 21:20:11 +01:00
|
|
|
ifconfig wlan0 {up|down}
|
2013-09-11 06:00:59 +02:00
|
|
|
|
|
|
|
# Set a static IP and netmask
|
|
|
|
ifconfig eth0 192.168.1.100 netmask 255.255.255.0
|
2013-12-03 21:20:11 +01:00
|
|
|
|
2013-09-11 06:00:59 +02:00
|
|
|
# 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
|