How to make 'route add' setting persist?

Booting, installing, newbie
Post Reply
Message
Author
evil
Posts: 55
Joined: Sun 20 Nov 2005, 00:25

How to make 'route add' setting persist?

#1 Post by evil »

I am having to sometimes type:
route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.64.64.64 ppp0
to get my 3G card working..................how can I make this line pernament so that on boot-up the line is always there so I will never have to type it in again!!

Many thanks

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

it should work if you put it in rc.local in /etc/rc.d/

evil
Posts: 55
Joined: Sun 20 Nov 2005, 00:25

#3 Post by evil »

OK, where exactly sorry? I've had a look in that file.

evil
Posts: 55
Joined: Sun 20 Nov 2005, 00:25

#4 Post by evil »

folder

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#5 Post by trapster »

Anywhere on it's own new line

Here is an example of mine:
-----------------------------------------

Code: Select all

#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
cd /
tar -zxvf /root/madwifi.tar.gz
depmod
modprobe ath_pci
iwconfig ath0 mode managed
sleep 5
rm /etc/dhcpc/dhcpcd-ath0.*
dhcpcd -t 20 -h puppypc ath0 
swapon /mnt/home/puppy.swp
smbmount //192.168.1.100/"My Documents" /root/mnt/windowsxp 


if [ -x /etc/rc.d/rc.firewall ]; then
  /etc/rc.d/rc.firewall start
fi
-------------------------------------------
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Post Reply