Setting static ip for your network card
Edit the file /etc/network/interfaces and add this:
auto wlan0
iface wlan0 inet static
address 10.0.1.1
gateway 10.0.1.1
netmask 255.255.255.0
network 10.0.1.0
broadcast 10.0.1.255
wpa-ssid 'mynetwork'
wpa-psk '12345'
In order for this to take effect the networking service must be restarted
$ sudo /etc/init.d/networking restart
For more info, look here->
https://help.ubuntu.com/community/NetworkConfigurationCommandLine
No comments:
Post a Comment