routing problem .. cant reach gateway

valshare

Active Member
Jun 2, 2009
257
2
38
Germany
Hello,

i have a routing problem. With my vlan-interface "vmbr750" i cant reach my gateway. With vmbr0 it works without an problem.

Code:
proxmox-testserver:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:18:8b:f7:48:f4  
          inet6 addr: fe80::218:8bff:fef7:48f4/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1438 errors:0 dropped:0 overruns:0 frame:0
          TX packets:980 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:206044 (201.2 KiB)  TX bytes:150039 (146.5 KiB)
          Interrupt:16 

eth0.750  Link encap:Ethernet  HWaddr 00:18:8b:f7:48:f4  
          inet6 addr: fe80::218:8bff:fef7:48f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:3708 (3.6 KiB)

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:16436  Metric:1
          RX packets:339 errors:0 dropped:0 overruns:0 frame:0
          TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:79907 (78.0 KiB)  TX bytes:79907 (78.0 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:18:8b:f7:48:f4  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::218:8bff:fef7:48f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1382 errors:0 dropped:0 overruns:0 frame:0
          TX packets:897 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:175075 (170.9 KiB)  TX bytes:140041 (136.7 KiB)

vmbr750   Link encap:Ethernet  HWaddr 00:18:8b:f7:48:f4  
          inet addr:192.168.105.1  Bcast:192.168.105.255  Mask:255.255.255.0
          inet6 addr: fe80::218:8bff:fef7:48f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:3240 (3.1 KiB)
Code:
proxmox-testserver:~# cat /etc/network/interfaces 
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface bond0 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr

auto vmbr0
iface vmbr0 inet static
    address  192.168.1.4
    netmask  255.255.255.0
    gateway  192.168.1.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr750
iface vmbr750 inet static
    address  192.168.105.1
    netmask  255.255.255.0
    gateway  192.168.1.1
    bridge_ports eth0.750
    bridge_stp off
    bridge_fd 0
Code:
proxmox-testserver:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 vmbr0
192.168.105.0   *               255.255.255.0   U     0      0        0 vmbr750
default        192.168.1.1      0.0.0.0         UG    0      0        0 vmbr0
ping -I vmbr750 192.168.1.1 shows:

Code:
proxmox-testserver:~# tcpdump -i vmbr750
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vmbr750, link-type EN10MB (Ethernet), capture size 96 bytes
20:21:54.094148 arp who-has 192.168.1.1 tell 192.168.105.1
20:21:55.094105 arp who-has 192.168.1.1 tell 192.168.105.1
20:21:56.093666 arp who-has 192.168.1.1 tell 192.168.105.1

Code:
proxmox-testserver:~# cat /proc/sys/net/ipv4/ip_forward 
1
Anyone can help?

Regard, Valle

A Ping from the Gateway 192.168.1.1 to 192.168.105.1 works. IPTABLES is disables.

Regards, Valle
 
Please can you do a real test. I do not know how the ping 'I' option interact with the bridge code.
 
Hi Ditmar,

sorry i understand you. What did you mean with "real test"?

As expample, the vmbr750 is assigned to an openvz with an installed dhcp server. The server is listen on vmbr750, but no reply to the clients. If i change it to an eth0 interface, it works.

A Ping from any client to the vmbr750 ip works.

How can i do a "real test"?

Regards, Valle


Please can you do a real test. I do not know how the ping 'I' option interact with the bridge code.
 
mybe its just a dhcp problem - try to assign a static IP to the VM and test if network works then.
 
The VM has a static ip. The VM acts as a dhcp server for vlan750. I have testes it direct from proxmox node and the vm both didn´t work.
 
What is the network config of the VM?

/etc/vz/conf/212.conf
Code:
NETIF="ifname=eth0,bridge=vmbr0,mac=00:18:51:40:A5:E3,host_ifname=veth212.0,host_mac=00:18:51:C0:62:A4;ifname=vlan750,bridge=vmbr750,mac=00:18:51:16:EC:5F,host_ifname=veth212.750,host_mac=00:18:51:95:F1:7D"

/var/lib/vz/private/212/etc/network/interface

Code:
iface vlan750 inet static
address 192.168.105.2
netmask 255.255.255.0

route
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
192.168.105.0   *               255.255.255.0   U     0      0        0 vlan750
default         192.168.1.1 0.0.0.0         UG    0      0        0 eth0

proxmox-testserver:~# brctl show
Code:
bridge name     bridge id               STP enabled     interfaces
vmbr0           8000.00188bf748f4       no              eth0
                                                        veth212.0
vmbr750         8000.00188bf748f4       no              eth0.750
                                                        veth212.750

proxmox-testserver:~# cat /proc/net/vlan/config

Code:
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
eth0.750       | 750  | eth0

anything missing?
 
Ok thanx, i have this "setup" running unter VMWARE ESXi but i want migrate it. On VMWare are 10 VLANs running in an container without any problem. I will find a wait to setup it with ProxMox, too ;-)

Regards, Valle
 
Last edited:
Please let me know if you get that working.


After debugging the vmbr750 interface, i see that the client asking for an ip on vlan750. i have removed all interfaces on the VE and create it new. Not it works like a charm.

Thanx!

Regards, Valle
 

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!