[CentOS] Simple routing question

James B. Byrne

byrnejb at harte-lyne.ca
Tue Sep 4 18:34:39 UTC 2012


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.

# cat /etc/sysconfig/network-scripts/ifcfg-eth1:192BOOTPROTO=none
BROADCAST=192.168.255.255
DEVICE=eth1:192
IPADDR=192.168.0.1
IPV6INIT=no
MTU=""
NAME="LAN - Non-routable"
NETMASK=255.255.0.0
NETWORK=192.168.0.0
ONBOOT=yes
ONPARENT=yes

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.

The primary address for eth1 has the following configuration:

# cat /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=none
BROADCAST=""
DEFROUTE=yes
DEVICE=eth1
DOMAIN="hamilton.harte-lyne.ca harte-lyne.ca"
GATEWAY=216.xxx.yyy.53
HWADDR=00:25:90:60:11:8D
IPADDR=216.xxx.xxx.1
IPV4_FAILURE_FATAL=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
MACADDR=""
MTU=""
NAME="LAN Link - eth1"
NETMASK=""
NETWORK=""
NM_CONTROLLED=no
ONBOOT=yes
PREFIX=24
TYPE=Ethernet
UUID=9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04

What configuration setting am I missing that will cause packets to
192.168.ccc.ddd to stay on the LAN and not try and pass though the WAN
interface?

-- 
***          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