Im in need of running scripts when i get to college and reset em when i get to my room.
I need static ip, proxy address , netmask and DNS to be set.. IN COLLEGE (wired & wireless)
When i come back to the room.. i need both the interfaces to be in dhcp
These are the scripts ive written.. doesnt work completely.. doesnt set the default gateway
wired - coll
wireless - coll
I do not know how to set the DNS and also the default gateway addresses
another issue i face while i use knetworkmanager to this is.. i need to disable eth0 whenever i need to use wlan0 to use the net.
I do not know about setting dhcp as well.. please throw some light on that as well.
Please do help me with the scripts..
Thanks
I need static ip, proxy address , netmask and DNS to be set.. IN COLLEGE (wired & wireless)
When i come back to the room.. i need both the interfaces to be in dhcp
These are the scripts ive written.. doesnt work completely.. doesnt set the default gateway
wired - coll
Code:
sudo -S ifconfig wlan0 down sudo ifconfig eth0 up sudo ifconfig eth0 address 192.168.13.61 netmask addr 255.255.0.0
Code:
sudo -S ifconfig eth0 down sudo modprobe ndiswrapper sudo ifconfig wlan0 up sudo ifconfig wlan0 address 192.168.14.61 netmask addr 255.255.0.0 sudo iwconfig wlan0 essid any kwifimanager
another issue i face while i use knetworkmanager to this is.. i need to disable eth0 whenever i need to use wlan0 to use the net.
I do not know about setting dhcp as well.. please throw some light on that as well.
Please do help me with the scripts..
Thanks
Comment