/[cwmp]/google/trunk/scripts/net.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /google/trunk/scripts/net.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 126 - (hide annotations)
Fri Oct 26 16:22:23 2007 UTC (16 years, 8 months ago) by dpavlin
File MIME type: application/x-sh
File size: 317 byte(s)
organize and document scripts collection
1 dpavlin 2
2 dpavlin 29 if [ -z "$1" ] ; then
3 dpavlin 107 eth=eth0
4     # eth=ath0:0
5 dpavlin 29 else
6     eth=$1
7     fi
8    
9 dpavlin 126 # new 192.168.1.240/28 network
10    
11     sudo ifconfig $eth down
12     sudo ifconfig $eth 192.168.1.241 up
13     # backup network (thompson 10.0.0.138)
14     sudo ifconfig $eth:10 10.0.0.1 up
15     sudo route add -net 192.168.1.240/28 dev $eth
16 dpavlin 29 echo "Setup of $eth to 192.168.1.90 ready"

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26