On Tue, 30 Jan 2001, linda hanigan wrote:
> Linux Firewalls said to do the follwing so you
> can obtain the ip address. It should be in
> /etc/dhcpc/dhpcd-ppp0.info.
> if [ -n "$PUMP" ]; then
> echo -n "Determining IP information for $DEVICE..."
> if /sbin/dhcpcd; then
> echo " done."
> else
> echo " failed."
> exit 1
> fi
> However after I log on to the internet these do not exist.
> I know that my Ip dynamically assigns addresses. How
> does my machine know its address after conection.
> Help
> Linda Hanigan
>
>
ifconfig will tell you. Or you can look in /etc/dhcpc/dhcpcd-eth0.info
if eth0 is your internet interface. If you source the file in your
firewall script, you can use $IPADDR for your IP address.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list