Additional IP problem

Issues related to configuring your network
hastar
Posts: 9
Joined: 2017/09/21 13:13:37

Additional IP problem

Postby hastar » 2017/11/14 08:47:52

Hi!
I was trying to configure additional ip on my vps server. And faced with problem. The server doesnt respond when i'm trying to connect to this ip. No ping

I have eth0 interface
in /etc/sysconfig/network-scripts added ifcfg-eth0:0

Code: Select all

IPADDR="82.202.200.21"
NETMASK="255.255.255.0"
BOOTPROTO="static"
DEVICE="eth0:0"
ONBOOT="yes"


i got a different gateway on eth0 and eth0:0. Should i type it in ifcfg-eth0:0? I've tryied both ways (with gateway and without)

then i restarted network and rebooted the centos
ip addr

Code: Select all

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:38:7b:7b brd ff:ff:ff:ff:ff:ff
    inet 80.93.187.202/24 brd 80.93.187.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 82.202.200.21/24 brd 82.202.200.255 scope global eth0:0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe38:7b7b/64 scope link
       valid_lft forever preferred_lft forever


route -n

Code: Select all

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         80.93.187.1     0.0.0.0         UG    100    0        0 eth0
80.93.187.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0
82.202.200.0    0.0.0.0         255.255.255.0   U     100    0        0 eth0


ping -I 82.202.200.21 82.202.200.1
OK

from home pc ro the gateway:
ping 82.202.200.1
OK

But there isn't ping from this ip (82.202.200.21) to any external ip and i can't ping 82.202.200.21 from my pc

Hosting's support told that theq the problem 100% in my vps settings

hastar
Posts: 9
Joined: 2017/09/21 13:13:37

Re: Additional IP problem

Postby hastar » 2017/11/14 10:23:33

ping -I 82.202.200.21 google.com
PING google.com (64.233.162.101) from 82.202.200.21 : 56(84) bytes of data.
From 80.93.181.201 (80.93.181.201) icmp_seq=1 Packet filtered
From 80.93.181.201 (80.93.181.201) icmp_seq=2 Packet filtered