Can’t ping default gateway address

sheikhchili

New Member
Jun 17, 2024
1
0
1
### Background:
I'm a student and completely new to this. I'm trying to experiment with my laptop by setting up a tier 1 hypervisor directly on it.
So i installed proxmox and tried apt-update && apt-upgrade, but realize or i think the problem lies in network connection primarily with default gateway ip

### Context:

When I am in the Proxmox Debian (root) directory, I tried to ping 8.8.8.8 to connect to Google so I could use Proxmox on the same device instead of switching to another screen. To find a solution, I also tried pinging the default gateway IP of my network, but it was unreachable. However, I was able to ping my own IP and the DNS server IP.

### Question:
To even test pinging, do I need my laptop to be connected through Ethernet, or will setting the DNS server IP, a static IP for the laptop, and the default gateway of the network take care of that?

- If no, I'll connect through Ethernet and come back!
- If yes, what should I do next? I've set everything up by looking at multiple forums.
 
Hi,

apt-update && apt-upgrade,
Please always use apt update && apt dist-upgrade instead of apt upgrade
Could you please share the with us the network configuration? `cat /etc/network/interfaces` and `cat /etc/hosts` and `ip a`
 
Hi,


Please always use apt update && apt dist-upgrade instead of apt upgrade
Could you please share the with us the network configuration? `cat /etc/network/interfaces` and `cat /etc/hosts` and `ip a`
I'm not op but having the same issue... this is my network config:

root@homelab:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface wlp3s0 inet manual
#maybewifiinterface

auto enp4s0
iface enp4s0 inet manual
#Onboard 1G

auto enp5s0f0
iface enp5s0f0 inet manual
#Intel x540-T2 10g

auto vmbr0
iface vmbr0 inet static
address 192.168.0.10/24
gateway 192.168.0.1
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet manual
address 192.168.0.11/24
gateway 192.168.0.1
bridge-ports enp5s0f0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

source /etc/network/interfaces.d/*
root@homelab:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.10 homelab.proxmox homelab

# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@homelab:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
link/ether d8:9e:f3:9a:f1:30 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9c:b6:d0:ba:a0:71 brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether d8:9e:f3:9a:f1:30 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.10/24 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::da9e:f3ff:fe9a:f130/64 scope link
valid_lft forever preferred_lft forever
5: vmbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.11/24 scope global vmbr1
valid_lft forever preferred_lft forever
inet6 fe80::30d8:77ff:fe1b:1839/64 scope link
valid_lft forever preferred_lft forever
root@homelab:~#