Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Router Linux

Router Linux

2005-08-09       - By Pete Nesbitt

 Back
Reply:     1     2  

On Tuesday 09 August 2005 4:01 am, VIALIDAD wrote:
> The reason for the present is to consult on the configuration of ruter
> linux.
> The problem that I have is that not the IP that I must assign to the
> network
> interface eth0 (network public or the one that is connected with modem
> Cisco
> 677).  The other interface (eth1) this connected to the private network
> and
> assigns IP to him 192.168.0.11 mask 255.255.255.0 the IP that assigns
> the
> ISP is dynamic and the IP of modem Cisco is 10.0.0.1 mask 255.255.255.0.
>
> Concretely as it is the IP I must assign to eth0 of router linux?
>
> Marcelo.


Hi,
I have dynamic IP on my dsl modem, here is how Ihandle it:

First, here are a few lines from my iptables rules:
(the variable $EXT_IP extracts the dynamic IP)
EXT_IF="eth0"
DMZ_IF="eth1"
LAN_IF="eth2"
LOOPBACK="lo"
#
EXT_IP="`ifconfig $EXT_IF | grep inet | cut -d : -f 2 | cut -d \  -f 1`"
DMZ_IP="192.168.2.1"
LAN_IP="192.168.1.254"
<...snip>

Then I run a cron every 20 minuites to check if it changes,
if it does I update my hostname, restart IPtables and update my DynamicDNS
(these cahnges could be automated but my IP only changes about once a year)
I'll post that script if needed.

Hope that helps.
Pete

--
Pete Nesbitt, rhce
www.linux1.ca

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.