IfconfigUpScript

Differences between revisions 5 and 6
Revision 5 as of 2008-08-06 16:30:38
Size: 715
Editor: localhost
Comment: converted to 1.6 markup
Revision 6 as of 2012-01-21 09:46:30
Size: 727
Editor: vpn-3091
Comment: well, ifconfig is so out of date
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
sudo ifconfig eth1 down sudo ip link set eth1 down
Line 8: Line 8:
sudo ifconfig eth0 up sudo ip link set eth0 up
Line 19: Line 19:
sudo dhclient -r eth0 && sudo ifconfig eth0 down
sudo ifconfig eth1 up
sudo dhclient -r eth0 && sudo ip link set eth0 down
sudo ip link set eth1 up

For bringing up eth0:

sudo dhclient -r eth1
sleep 1
sudo ip link set eth1 down
sleep 1
sudo ip link set eth0 up
sleep 1
sudo dhclient eth0
sleep 2
sudo /etc/firestarter/firestarter.sh stop
sudo /etc/firestarter/firestarter.sh start

For eth1:

sudo dhclient -r eth0 && sudo ip link set eth0 down
sudo ip link set eth1 up
sleep 1
sudo iwlist eth1 scan
sleep 1
sudo iwconfig eth1 essid <essid here>
sleep 1
sudo iwconfig eth1 ap <mac address of ap here>
sleep 2
sudo iwconfig eth1 key <key here>
sleep 2
sudo dhclient eth1
sleep 2
sudo /etc/firestarter/firestarter.sh stop
sleep 1
sudo /etc/firestarter/firestarter.sh start


CategoryLookMergeDelete

IfconfigUpScript (last edited 2012-01-21 09:46:30 by vpn-3091)