Cant add Public IP to interface

Issues related to configuring your network
Post Reply
Ranjith
Posts: 1
Joined: 2015/06/23 13:19:11

Cant add Public IP to interface

Post by Ranjith » 2015/06/23 13:24:01

Hi,

I have Centos 6.4 installation. And configured a local IP.

eth0 Link encap:Ethernet HWaddr 74:D4:35:D1:34:07
inet addr:192.168.1.117 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::76d4:35ff:fed1:3407/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19503 errors:0 dropped:0 overruns:0 frame:0
TX packets:1030 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2421832 (2.3 MiB) TX bytes:176415 (172.2 KiB)

And everything works fine on this.

Now I Added a public IP to an another interface.

eth0:1 Link encap:Ethernet HWaddr 74:D4:35:D1:34:07
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:XXX.XXX.XXX.XXX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

And restarted the network. But after that I cant ping google or any domains. Also cant ping the public gateway?

Any idea?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Cant add Public IP to interface

Post by gerald_clark » 2015/06/23 14:11:38

You have actually shown us nothing useful.
I suspect you attempted to define 2 default GATEWAYs. You cannot do that.
Show the contents of your ifcfg files.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Cant add Public IP to interface

Post by aks » 2015/06/23 17:24:46

I'd guess you'll need a route to your 192.168.1.0/24 network and a route to the Internet (suggest the Internet route be the default).

Post Reply