Need Help With Gateways Nd Routing Of 192.168.0.0/24 Addresses

Home » CentOS » Need Help With Gateways Nd Routing Of 192.168.0.0/24 Addresses
CentOS No Comments

Arch = x86_64
OS = CentOS-6.4

Problem:
What is the correct gateway to specify for private IP addresses that may pass thorough NAT?

Background:
Our gateway is configured thus:

#/etc/sysconfig/network-scripts/ificfg-eth1
BOOTPROTO=none BROADCAST=””
DEFROUTE=yes DEVICE=eth1
DNS1!6.185.71.33
GATEWAY!6.185.64.53
IPADDR!6.185.71.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$
TYPE=Ethernet USERCTL=no

and

#/etc/sysconfig/network-scripts/ificfg-eth1:192006
NAME=”eth1:192006 internal”
BOOTPROTO=none MACADDR=””
IPV6INIT=no DEVICE=eth1:192006
NETMASK%5.255.255.0
MTU=””
BROADCAST2.168.6.255
ONPARENT=yes IPADDR2.168.6.1
NETWORK2.168.6.0

On the gateway these are the routes present:

216.185.64.52/30 dev eth0 proto kernel scope link src 216.185.64.54
192.168.6.0/24 dev eth1 proto kernel scope link src 192.168.6.1
192.168.216.0/24 dev eth1 proto kernel scope link src 192.168.216.1
216.185.71.0/24 dev eth1 proto kernel scope link src 216.185.71.1
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
default via 216.185.64.53 dev eth0

Situation:
I have a device configured thus:

BOOTPROTO=none BROADCAST%5.255.255.255
DEVICE=eth0
DNS1!6.185.71.33
GATEWAY!6.185.71.1
IPADDR2.168.6.9
IPV4_FAILURE_FATAL=yes IPV6INIT=no MACADDR=””
MTU=””
NAME=”eth0″
NETMASK%5.255.255.0
NETWORK2.168.6.0
NM_CONTROLLED=no ONBOOT=yes PREFIX$
TYPE=Ethernet

When I try and ping this device I see this:

PING 192.168.6.9 (192.168.6.9) 56(84) bytes of data.

If I down eth1:192006 on the gateway then all ping packets are simply lost:

PING 192.168.6.9 (192.168.6.9) 56(84) bytes of data.
^C
— 192.168.6.9 ping statistics –

LEAVE A COMMENT