Linux script

Archives
kumaresh.G

Linux script

Postby kumaresh.G » Mon Mar 31, 2003 12:12 pm

hi,

I need a small script for our linux server, we have linux server that is for 128 kbps leased line internet server we connect other m/c thor` ipchains some times we have small break from that leased line that time we manuvely connect the ISDN line then noted the static IP with the command of 'ip a' after change the gateway with the command of route add default gw that gw add.
after we got the normal connectivity. This same process have we do thro` script is it possible pls arrange to send a model.

for example

[root@ssllnx2 root]# ip a
1: lo: mtu 16436 qdisc noqueue

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100

link/ether 00:00:e8:e3:d6:1d brd ff:ff:ff:ff:ff:ff

inet 10.6.0.2/28 brd 10.6.0.15 scope global eth0
3: eth1: mtu 1500 qdisc pfifo_fast qlen 100

link/ether 00:07:e9:0b:a0:eb brd ff:ff:ff:ff:ff:ff

inet 192.168.1.7/24 brd 192.168.1.255 scope global eth1
6: ppp0: mtu 1514 qdisc pfifo_fast qlen 3

link/ppp

inet 219.65.170.210 peer 203.197.156.12/32 scope global ppp0

after then

route add default gw 219.65.170.210

regards
kumaresh

Don Cady

Re: Linux script

Postby Don Cady » Tue Mar 21, 2006 3:40 pm

Am converting BAT files that have GOTOs in them. Does Linux allow GOTOs? If not, how can these files be converted? How could the EXIT command be used?


Return to “Archives”

Who is online

Users browsing this forum: No registered users and 2 guests