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?
Cant add Public IP to interface
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Cant add Public IP to interface
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.
I suspect you attempted to define 2 default GATEWAYs. You cannot do that.
Show the contents of your ifcfg files.
Re: Cant add Public IP to interface
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).