changing gatewaydev on notebook
Derek Atkins
warlord at MIT.EDU
Wed Aug 2 13:48:24 EDT 2000
You could try putting the GATEWAY into your ifcfg-* file... Indeed, I
don't think that technically you need a GATEWAYDEV, and if you do I
think you can also put that in the ifcfg-* file..
-derek
Ron Peterson <rpeterson at wallacefloyd.com> writes:
> Here's the /etc/sysconfig/network file on my notebook:
>
> NETWORKING=yes
> FORWARD_IPV4=false
> HOSTNAME=wfll01.wallacefloyd.com
> DOMAINNAME=wallacefloyd.com
> #GATEWAY=172.16.0.1
> #GATEWAYDEV=eth0
> GATEWAYDEV=ppp0
>
> When I'm in the office, I uncomment the lines currently commented, and
> comment the last line. Then run /etc/rc.d/init.d/network restart. Then
> do the opposite when I'm home.
>
> Needless to say, this is rather clumsy. How could I do this more
> elegantly? Perhaps I could change my /etc/rc.d/init.d/network script to
> check whether I'm on a network or not, then repond accordingly? But how
> would I do that?
>
> There are many things I could simplify that I don't. I guess I like the
> typing practice. Plus I feel like if I bury too many things in scripts,
> I'll forget how things work. But this particular annoyance is becoming
> bothersome...
>
> --
>
> Ron Peterson
> Systems Manager
> Wallace Floyd Design Group
> 273 Summer Street
> Boston, MA 02210
> 617.350.7400 tel
> 617.350.0051 fax
> rpeterson at wallacefloyd.com
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to discuss-request at blu.org (Subject line is ignored).
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL N1NWH
warlord at MIT.EDU PGP key available
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list