How do you forward from static internal to dynamic external?

Jonathan hutchins at opus1.com
Wed Apr 18 23:43:38 CDT 2001


> -----Original Message-----
> From: Clark, Bill [mailto:BClark at astralpoint.com]

> ... the ISP is giving IP info to external 
> interface via DHCP.  How do you forward from your internal 
> interface to the external interface?  

[root at firewall /root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
[root at firewall /root]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.123.254
NETMASK=255.255.255.0
GATEWAYDEV=ETH0
ONBOOT=yes

By defining the "GATEWAYDEV" instead of "GATEWAY" as an address, this passes
packets to the device interface regardless of it's assigned address.
GATEWAYDEV could also be PPP0 for a dial-up connection.




More information about the Kclug mailing list