Hello,
i have a routing problem. With my vlan-interface "vmbr750" i cant reach my gateway. With vmbr0 it works without an problem.
ping -I vmbr750 192.168.1.1 shows:
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
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
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
Regard, Valle
A Ping from the Gateway 192.168.1.1 to 192.168.105.1 works. IPTABLES is disables.
Regards, Valle