[CentOS] Simple routing question

Les Mikesell lesmikesell at gmail.com
Tue Sep 4 19:27:55 UTC 2012


On Tue, Sep 4, 2012 at 2:18 PM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:
>
> On Tue, September 4, 2012 14:34, James B. Byrne wrote:
>> We use a dual homed CentOS-6.3 host for our Internet gateway router.
>> Its internal nic (eth1) is configured such that the address
>> 192.168.0.1 is one of its aliases.
>>
>
> per: Les Mikesell lesmikesell at gmail.com
> Tue Sep 4 15:01:18 EDT 2012
>
>>> # cat /etc/sysconfig/network-scripts/ifcfg-eth1:192BOOTPROTO=none
>>> DEVICE=eth1:192
>>> IPADDR=192.168.0.1
>>> NETMASK=255.255.0.0
>>>
>>> Internal packets routed to 192.168.209.41 are passing through this
>>> router out onto the network.  I am afraid that the reason is not
>>> evident to me and I have been unable to locate an answer.
>>
>> That netmask says the interface handles the range from
>> 192.168.0.0-192.168.255.255.   Maybe you meant 255.255.255.0?
>
> There are presently two subnets on the lan, 192.168.209.0 and
> 192.168.209.0.  I believe that the present netmask is correct in these
> circumstances.

If the 192.168.209.x range is connected to this interface, then I
don't think I understand the problem.  I thought you were saying those
addresses should not go out this interface.

-- 
   Les Mikesell
      lesmikesell at gmail.com



More information about the CentOS mailing list