Simple network setup in KVM

Joncak

New Member
Feb 15, 2015
1
0
1
Hi, i trying to do something simple put 2 nic in the VM with different subnet example

eth0 = 200.62.X.X
eth1 = 10.10.X.X

the /etc/network/interface (KVM)

Code:
auto eth0
iface eth0 inet static
        address 200.62.X.X
        netmask 255.255.255.240
        network 200.62.X.X
        broadcast 200.62.X.X
        gateway 200.62.X.X
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 200.62.X.X
        dns-search domain.net


auto eth1
iface eth1 inet static
        address 10.10.1.9
        netmask 255.255.255.0
        bridge_ports vmbr0
        bridge_stp off
        bridge_fd 0

/etc/network/interface (NODE)

Code:
auto vmbr0
iface vmbr0 inet static
        address  10.10.1.2
        netmask  255.255.255.0
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


auto vmbr1
iface vmbr1 inet static
        address  200.62.X.X
        netmask  255.255.255.240
        gateway  200.62.X.X
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0


in the Past this config work but now when i try
Code:
ifup eth1 
Cannot find device "eth1"
Failed to bring up eth1.
 
Last edited:
I have a silly question for you Joncak: did you already add the new 'hardware' to the VM through the GUI?
What's the result of:
ip link show
 
Remove these lines from the KVM guest's config:

bridge_ports vmbr0
bridge_stp off
bridge_fd 0

so that it looks like this:

auto eth1
iface eth1 inet static
address 10.10.1.9
netmask 255.255.255.0


(That works for me at least - now I just need to work out how to get the private network NAT-ing)
 

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!