DNS for host

avidesh

New Member
Dec 28, 2023
9
0
1
Hi, I have installed openWRT on my proxmox. I used static ip address of openWRT (192.168.1.1) as DNS for proxmox host. I am unable to access internet from proxmox host. I am able to access internet from all other clients of openWRT.

up on investigating further, I noticed that the using openWRT static ip as DNS for proxmox was causing the issue. When I added a secondary DNS 8.8.8.8 proxmox host was able to connect to internet.

What did I do wrong while using openWRT host as DNS for proxmox host?
 
Hey,

is the OpenWRT VM also the gateway, or do you just use it as a DNS? Can you ping the OpenWRT VM from your PVE host? Are they on the same network? Could you also post the outputs of these three commands
Code:
cat /etc/network/interfaces

ip a

qm config <vmid>
<vmid> is the ID of your OpenWRT VM.
 
Code:
auto lo
iface lo inet loopback

iface enp2s0 inet manual

iface enp3s0 inet manual

iface enp4s0 inet manual

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.10/24
        gateway 192.168.1.1
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.1.1/24
        bridge-ports enp3s0
        bridge-stp off
        bridge-fd 0
#openwrt1

auto vmbr2
iface vmbr2 inet manual
        bridge-ports enp4s0
        bridge-stp off
        bridge-fd 0
#openwrt2

auto vmbr3
iface vmbr3 inet manual
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0
#iotlan

source /etc/network/interfaces.d/*


result of ip a
Code:
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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:1f brd ff:ff:ff:ff:ff:ff
3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:20 brd ff:ff:ff:ff:ff:ff
4: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr2 state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:21 brd ff:ff:ff:ff:ff:ff
5: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr3 state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:22 brd ff:ff:ff:ff:ff:ff
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.10/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::aab8:e0ff:fe01:231f/64 scope link
       valid_lft forever preferred_lft forever
7: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:20 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 scope global vmbr1
       valid_lft forever preferred_lft forever
    inet6 fe80::aab8:e0ff:fe01:2320/64 scope link
       valid_lft forever preferred_lft forever
8: vmbr2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:21 brd ff:ff:ff:ff:ff:ff
    inet6 2405:201:1007:e4e:aab8:e0ff:fe01:2321/64 scope global dynamic mngtmpaddr
       valid_lft 4777sec preferred_lft 4777sec
    inet6 fe80::aab8:e0ff:fe01:2321/64 scope link
       valid_lft forever preferred_lft forever
9: vmbr3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a8:b8:e0:01:23:22 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::aab8:e0ff:fe01:2322/64 scope link
       valid_lft forever preferred_lft forever
10: veth100i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether fe:ad:5b:77:02:3e brd ff:ff:ff:ff:ff:ff link-netnsid 0
11: veth101i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether fe:4f:fa:88:4f:0b brd ff:ff:ff:ff:ff:ff link-netnsid 1
16: tap102i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr1 state UNKNOWN group default qlen 1000
    link/ether 3e:0c:0a:8f:91:64 brd ff:ff:ff:ff:ff:ff
17: tap102i1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr2 state UNKNOWN group default qlen 1000
    link/ether 82:b3:19:4d:8c:6a brd ff:ff:ff:ff:ff:ff
18: tap102i2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether aa:2e:1e:5c:e2:5f brd ff:ff:ff:ff:ff:ff
19: tap102i3: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr3 state UNKNOWN group default qlen 1000
    link/ether 4e:a8:e6:0f:4c:68 brd ff:ff:ff:ff:ff:ff
20: veth104i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether fe:8c:96:ec:8d:e1 brd ff:ff:ff:ff:ff:ff link-netnsid 2

qm config output

Code:
boot: order=scsi0
cores: 1
description: <div align='center'><a href='https%3A//Helper-Scripts.com'><img src='https%3A//raw.githubusercontent.com/tteck/Proxmox/main/misc/images/logo-81x112.png'/></a>%0A%0A  # OpenWRT%0A%0A  <a href='https%3A//ko-fi.com/D1D7EP4GF'><img src='https%3A//img.shields.io/badge/&#x2615;-Buy me a coffee-blue' /></a>%0A  </div>
efidisk0: local-lvm:vm-102-disk-0,efitype=4m,size=4M
memory: 256
meta: creation-qemu=8.1.5,ctime=1708589371
name: openwrt
net0: virtio=BC:24:11:24:91:40,bridge=vmbr1
net1: virtio=BC:24:11:4E:92:4D,bridge=vmbr2
net2: virtio=BC:24:11:98:F3:7C,bridge=vmbr0
net3: virtio=BC:24:11:61:2B:C5,bridge=vmbr3
onboot: 1
ostype: l26
scsi0: local-lvm:vm-102-disk-1,size=512M
scsihw: virtio-scsi-pci
smbios1: uuid=3cbd68d4-1e9f-435c-a53f-03b9e21825b1
startup: order=1
tablet: 0
vmgenid: 9fdd86a0-2d99-4420-b43f-756a52fb5e0f
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!