IP Conflict on Container

cjkeeme

New Member
Oct 28, 2009
17
0
1
I'm sure I'm missing something very simple, but I believe I have followed the wiki exactly in regards to setting up a network model using a routed configuration.

I'm preparing my server to be hosted in a data facility and will want proxmox to be on a static IP and each subsequent KVM guest to be on a separate static IP. For the time being I'm attempting to setup the routed configuration using private IPs so I can still access everything prior to being hosted.

The problem I am having is that the one KVM guest I have setup right now as 10.0.5.71 is sending me to the proxmox panel.

Here is what I am trying to accomplish:

10.0.5.70 -> proxmox panel
10.0.5.71-74 -> KVM guest VMID: 101-104

Here is what my /etc/network/inferfaces looks like:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  10.0.5.70
        netmask  255.255.255.0
        gateway  10.0.5.1
        post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp


auto vmbr0
iface vmbr0 inet static
        address  10.0.5.71
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

Here is the output of ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:22:19:65:f2:32
          inet addr:10.0.5.70  Bcast:10.0.5.255  Mask:255.255.255.0
          inet6 addr: fe80::222:19ff:fe65:f232/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4753 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:765004 (747.0 KiB)  TX bytes:4129449 (3.9 MiB)
          Interrupt:37 Memory:ec000000-ec012800

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:3659 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3659 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:807530 (788.6 KiB)  TX bytes:807530 (788.6 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                     -00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmbr0     Link encap:Ethernet  HWaddr ba:b8:c1:75:eb:6f
          inet addr:10.0.5.71  Bcast:10.0.5.255  Mask:255.255.255.0
          inet6 addr: fe80::b8b8:c1ff:fe75:eb6f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:468 (468.0 B)

vmtab101i0 Link encap:Ethernet  HWaddr 00:ff:0c:e2:05:f2
          inet6 addr: fe80::2ff:cff:fee2:5f2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:9512 (9.2 KiB)  TX bytes:782 (782.0 B)

Here is the output of route -n:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.5.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.0.5.0        0.0.0.0         255.255.255.0   U     0      0        0 vmbr0
0.0.0.0         10.0.5.1        0.0.0.0         UG    0      0        0 eth0
 

Attachments

  • ipconflict.png
    ipconflict.png
    50.4 KB · Views: 8
Last edited:
Hi,
try
Code:
auto eth0
iface eth0 inet static
        address  0.0.0.0
        netmask  0.0.0.0


auto vmbr0
iface vmbr0 inet static
        address  10.0.5.70
        netmask  255.255.255.0
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Udo
 
Thanks for the suggestion udo, but that certainly did not work. I lost connection entirely using this and had to login and edit /etc/network/interfaces directly from the proxmox box in order to change to what I had before. As I followed the wiki, my mistake must be relatively minor.
 
Thanks for the suggestion udo, but that certainly did not work. I lost connection entirely using this and had to login and edit /etc/network/interfaces directly from the proxmox box in order to change to what I had before. As I followed the wiki, my mistake must be relatively minor.
Hi,
your config is wrong!
You defined a bridge without any network, but with an ip which is in the same network like eth0. And the brigde-network-ip do you want to use in a vm - this can't work.
In my example i copied your config - it's missed the gateway entry on vmbr0.

When you take my config with the gateway-entry and reboot, you should reach your proxmoxhost on 10.0.5.70 and for the VMs proxmox define devices:
Code:
vmtab101i0 Link encap:Ethernet  Hardware Adresse 42:ce:86:af:77:21  
          inet6-Adresse: fe80::40ce:86ff:feaf:7721/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metrik:1
          RX packets:63649652 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166884015 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:500 
          RX bytes:32353094457 (30.1 GiB)  TX bytes:242649719392 (225.9 GiB)

Udo
 
Okay it seems I'm still having a little trouble. Maybe if I ask the question in this way I will understand better what I'm suppose to do.

I have 5 static IPs assigned to me. What numbers should go below for eth0 and vmbr0:

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  192.168.10.2              <-----Do one of my static IPs go here
        netmask  255.255.255.0
        gateway  192.168.10.1
        post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp


auto vmbr0
iface vmbr0 inet static                        
        address  10.10.10.1                   <-----Does another static IP go here  (Same one as above or a different one)
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

I pulled this example straight from the wiki. It's my understanding that vmbr0 probably should not be bridged with eth0 in a data center. The example above from udo has me bridge vmbr0 with eth0.
 
Can an admin take a look at my previous post? I'm due to take my proxmox server to the data facility tomorrow.

Thanks.
 

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!