Exotic Issue - Can Ping Gateway But No Internet

Issues related to configuring your network
Post Reply
Marauder
Posts: 2
Joined: 2017/03/30 13:19:03

Exotic Issue - Can Ping Gateway But No Internet

Post by Marauder » 2017/03/30 13:33:45

Hello guys,

after spending several hours trying to configure my CentOS 7 installation to be able to use the internet, I decided to ask you guys as I failed in doing so. To keep things short for you, here is the info.

Setup is as follows:

Host provider: online.net
Physical Machine: proxmox 3.4-6/102d4547 with external static ip of: 62.210.105.214

on that machine I have affected container with static ip of: 212.83.131.252
it is in bridged mode with host through vmbr0 as I need it to have static IP

and full network configuration of files:

ifcfg-eth0 (note that the MAC address below is the virtual MAC from online.net which I use to assign it to that IP. I attached screenshot of that.

Code: Select all

[root@srv network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=212.83.131.252
GATEWAY=62.210.0.1
DNS1=62.210.16.6
DNS2=62.210.16.7
ARP=yes
HWADDR=00:50:56:01:22:be
[root@srv network-scripts]#
and route-eth0

Code: Select all

62.210.0.1 dev eth0
default via 62.210.0.1 dev eth0
The address of 62.210.0.1 is default gateway for whole online.net network which is my provider for server

ip a results in:

Code: Select all

[root@srv network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/void
    inet 127.0.0.1/32 scope host venet0
    inet 212.83.131.252/32 brd 212.83.131.252 scope global venet0:0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:50:56:01:22:be brd ff:ff:ff:ff:ff:ff
    inet 212.83.131.252/32 brd 212.83.131.252 scope global eth0
[root@srv network-scripts]#
and ping test results in:

Code: Select all

[root@srv network-scripts]# ping 62.210.0.1
PING 62.210.0.1 (62.210.0.1) 56(84) bytes of data.
64 bytes from 62.210.0.1: icmp_seq=1 ttl=255 time=4.02 ms
64 bytes from 62.210.0.1: icmp_seq=2 ttl=255 time=0.331 ms
64 bytes from 62.210.0.1: icmp_seq=3 ttl=255 time=0.284 ms
64 bytes from 62.210.0.1: icmp_seq=4 ttl=255 time=0.338 ms
^C
--- 62.210.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 0.284/1.244/4.023/1.604 ms
[root@srv network-scripts]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6000ms
Which shows I can reach gateway, I can also reach my other VM on 212.83.128.252 and also I can reach my physical at 62.210.105.214

If anyone can decrypt this nonsense I will be most grateful and reward you with anything I can offer to the bottom of my heart.
Attachments
dedibox.jpg
dedibox.jpg (157.27 KiB) Viewed 1246 times

Post Reply