Subject: Re: dhcp client configuration
To: NetBSD netbsd-help mailing list <netbsd-help@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
List: netbsd-help
Date: 06/15/2001 10:17:39
> Is there a reliable way to update the IP in ipnat.conf automatically if
> an interface gets a new address via dhcp?

Not quite sure if this is what you want, but here's what I do with a PPP
interface.  My ipnat.conf doesn't specify the PPP IP address :

	map ppp0 192.168.13.0/24 -> 0/32 portmap tcp/udp 2000:60000
	map ppp0 192.168.13.0/24 -> 0/32

and when the interface comes up, I flush the NAT tables using :

	/usr/sbin/ipnat -F

Can you do something similar?

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/