IPv4 gateway OpenVZ

Problem with IPv4 gateway.

Checking IPv4 Stack
:::       IPv4 addresses located on venet0
:::        Pinging default IPv4 gateway: ping: unknown host venet0
Gateway did not respond.



 ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2472 (2.4 KB)  TX bytes:2472 (2.4 KB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: 2a02:7b40:b945:3614::1/128 Scope:Global
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:74356 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41949 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:102713502 (102.7 MB)  TX bytes:3365050 (3.3 MB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:185.**.**.**  P-t-P:1 inet addr:185.**.**.**  Bcast: inet addr:185.**.**.**  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

Let's start with the token generated by

pihole -d

please paste the token here after running the command.

pwzl3t2giz

.................

There seem to be several issues with your installation including:

  • apache is installed so lighttpd and the Web interface doesn't work
  • you do not have any upstream DNS servers set

To get it working, please try:

  1. removing apache
  2. running apt update && apt upgrade
  3. running pihole -r and choosing reconfigure and make sure you adjust your network settings so they are correct

The interface venet0 doesn't have an IPv4 address assigned, and the psuedo interface venet0:0 isn't scanned by the debug script as it's not considered to be an actual interface.

Can I ask what problems you are seeing? Does setupVars.conf not have and IPv4 address for it?

problem solved with remove apache

1 Like