Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2000 17:23:31 -0400 
From:      "SILVER, MICHAEL A" <MSILVER@scana.com>
To:        questions@freebsd.org
Subject:   Dynamic IP and IPFW
Message-ID:  <DBB3921EFE2AD211A81500A0C9B5FE76057945CD@msg04.scana.com>

next in thread | raw e-mail | index | archive | help
I have FreeBSD system acting as a gateway for some other home machines I
have.  So far it works like a champ, beyond my expectations.  I even have
apache running with virtual domains over a dynamic IP.  Pretty impressive
stuff.

My concern is that once the dynamic IP changes, the gateway machine will no
longer forward packets.  I currently have the FreeBSD's gateway address hard
coded to the dynamic IP address (defaultrouter="123.4.5.67").  This doesn't
seem right (since DHCP should assign an address), but unless I do this, the
internal machines cannot get out over the internet.  

My question:  I have a script to check for IP changes, but how do I change
the gateway address when my IP changes?  I imagine that I need to use route.
If so, could someone please provide an example.  (Yes, I have read the man
pages, and yes I am a newbie).

...Thanks...
...Michael...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBB3921EFE2AD211A81500A0C9B5FE76057945CD>