[CentOS] Re: CentOS Digest, Vol 45, Issue 23

James B. Byrne byrnejb at harte-lyne.ca
Thu Oct 23 18:49:30 UTC 2008


>
> Message: 24
> Date: Thu, 23 Oct 2008 03:53:55 -0400
> From: "John" <jses27 at gmail.com>
> Subject: RE: [CentOS] OT: Setting a CentOS to gateway a private IP
> 	address
> To: "'CentOS mailing list'" <centos at centos.org>
> Message-ID: <86C552A83B964E6499972CEAD4610189 at ethan27>
> Content-Type: text/plain;	charset="us-ascii"
>
> behalf of; James B. Byrne [byrnejb at harte-lyne.ca]
>
> router rip
>   network eth0              <--- is this correct?
>   network 192.168.219.0/24
> #####################################
> JohnStanley Writes:
> Did you bother to check the documentation?
>
> http://www.quagga.net/docs/docs-info.php#SEC40
>

As always, yes I did, albeit the pdf version.  Like much documentation, it
is possibly a wonderful aide memoire for somebody who knows the subject
intimately but it is a little terse and somewhat sparse for someone with
no prior knowledge and little time.

The difficulty that I need to address is what ripd configuration provides
rip info regarding 192.168.219.0/24 connected via eth1 out to all networks
connected via 2xx.yyy.zzz.0/24 on eth0.

Must I configure a virtual IP from 192.168.219.0/24 on eth0 as well as
eth1 or not?  Do I just set ripd.conf to:

router rip
  network 192.168.219.0/24


Is that all that is required?

Recall that the purpose of this exercise is to simultaneously provide
interim public and private ipv4 address connectivity on the same physical
lan behind our Internet router.  The long term objective is to remove the
public address space from the lan.  At that point this finessing becomes
unnecessary.

For example:


INET Router:
eth0
 IP 2xx.yyy.bbb.64

eth1
 IP 2xx.yyy.zzz.1
 IP 192.168.71.1
 ip 10.0.0.1

 network 2xx.yyy.zzz.0/24
 network 192.168.0.0/16
 network 10.0.0.0/8

host1:
eth0
 IP 2xx.yyy.zzz.22

host2:
eth0
 IP 2xx.yyy.zzz.23
eth1
 IP 192.168.219.1

host3:
eth0
 IP 192.168.219.102

host4:
eth0
 IP 192.168.71.65


INET Router <<-------->> SWITCH

host1/eth0 <<--------->> SWITCH

host2/eth0 <<--------->> SWITCH
host2/eth1 <<--------->> HUB

host3/eth0 <<--------->> HUB

host4/eth0 <<--------->> SWITCH


How do I set up ripd on host2 so that host4 (192.168.71.65) reaches host3
(192.168.219.102) via host2 (2xx.yyy.zzz.23)?  Clearly the ripd info for
192.168.219.0/24 must go out 216.185.71.23 but I am unclear as to what
ripd.conf configuration settings accomplish this.


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3



More information about the CentOS mailing list