Running a command automatically on boot

From: Rick and Sue Deschene (rdeschene3_at_yahoo.ca)
Date: 04/01/04


Date: 1 Apr 2004 10:52:36 -0800

After every reboot of my laptop, I have to issue the following command
to setup routing to the gateway.

route add default gw 192.168.0.1

Which file do I edit to have this command run automatically on reboot
? The SuSE 8.1 professional manual indicates /etc/resolv.conf however
the latter does not seem to work.

I've searched this newsgroup but don't seem to be finding this
reference.

Thanks,
Rick D.



Relevant Pages

  • Re: IP FORWARDING IPTABLES
    ... I choose to configure my firewall to route packets in a different ... want to specify the IP of the gateway, ... the command might be more accurate ... but has a "-I" option to use ICMP echos. ...
    (comp.security.firewalls)
  • Re: Setting the default gateway..???
    ... I'm not all that familiar with AIX, but I tried running that command from the command line ... method also calls the route command to change any static routes. ... Specifies the name of the host. ... Specifies the default gateway. ...
    (comp.unix.aix)
  • Re: Setting the default gateway..???
    ... > I'm not all that familiar with AIX, but I tried running that command from ... > method also calls the route command to change any static routes. ... > Specifies the name of the host. ... > Specifies the default gateway. ...
    (comp.unix.aix)
  • Re: Configuring Multiple gateways in Win2003 Server
    ... To get it to be there after a reboot, just put a batch file with the "route ... >>> specific IP address or range through one gateway and all other external ...
    (microsoft.public.win2000.networking)
  • Re: vimage-assigning interface to jail
    ... otherwise the jail is destroyed when I exit the shell to enter the next command: ... route: writing to routing socket: Network is unreachable ... add net default: gateway 192.168.0.1: Network is unreachable ...
    (freebsd-net)