I have 2 nics on IBM server , also having 2 different ips for setup,,, one is for LAN and another is for WAN...
Have one router only.
Local Ip setup on eth0 ,192.168.1.8 with subnet 255.255.255.0 and gateway is 192.168.1.1 is used for internal network.
Static ip setup on eth1, 182.XX.XXX.XXX with subnet 255.255.255.248 and 182.XX.XXX.XXX used for external network.
both ips were setup on Centos 6 but realize that my static ip is not working..
if i replace the gateway of static ip from 182.XX.XXX.XXX to 192.168.1.1 then its working perfectly but in case my local ip stop responding..
I want both my IPs(external or Internal) will work perfectly.
this is my
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
182.xx.xxx.xxx 0.0.0.0 255.255.255.248 U 1 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.122. 0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
ifcfg-eth0 settings
DEVICE=eth0
TYPE=Ethernet
ONBOOT=no
NM_CONTROLLED=yes
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
BOOTPROTO=none
IPADDR=192.168.1.8
PREFIX=24
GATEWAY=192.168.1.1
DNS1=202.56.230.5
DNS2=202.56.230.6
LAST_CONNECT=1432818214
ifcfg-eth1 settings
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=182.xx.xxx.xxx
NETMASK=255.255.255.248
GATEWAY=182.xx.xxx.xxx
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
DNS1=202.56.230.5
DNS2=202.56.230.6
PREFIX=29
LAST_CONNECT=1432818214
/etc/syconfig/network
NETWORKING=yes
HOSTNAME=x.xxxx.com
GATEWAY=192.168.1.1
Please suggest how can i activate both Ips work simultaneously.