Connect second nic in hardware to second nic in vm

G

gregor

Guest
As a newby I was pleased that it succesed me to compleet the task to create a vm proxy server with 2 nis, nic 1 (192.168.1.15) and nic 2 (10.0.0.135). The proxmox is running on a proliant Dl120 G6 with 2 nic and I can connect to proxmox with http://192.168.1.249 and http://10.0.0.123. Somehow it not possible anymore to connect from outside to the 10.0.0.135, where I have a IIS webserver for some construction software. It is possible to connect to the first nic (192.168.1.15) without any problem, I use this one for the exchange communication that is within the softeware

Can somebody help me with trouble shouting,
Thanks a lot already
With regards

Gregor

Some thing to start I gues is the interfaces settings on proxmox so:


login as: root
root@192.168.1.249's password:
Linux proxmox 2.6.32-11-pve #1 SMP Wed Apr 11 07:17:05 CEST 2012 x86_64
root@proxmox:/etc ping 10.0.0.138
PING 10.0.0.138 (10.0.0.138) 56(84) bytes of data.
64 bytes from 10.0.0.138: icmp_req=1 ttl=64 time=1.25 ms
root@proxmox:/etc traceroute 192.168.1.249
traceroute to 192.168.1.249 (192.168.1.249), 30 hops max, 60 byte packets
1 192.168.1.249 (192.168.1.249) 0.021 ms 0.005 ms 0.004 ms


root@proxmox:/etc/network# vi interfaces

# network interface settings
auto lo
iface lo inet loopback


iface eth0 inet manual


iface eth1 inet manual


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


auto vmbr1
iface vmbr1 inet static
address 10.0.0.123
netmask 255.255.255.0
"interfaces" 28 lines, 457 characters
 
Hi,
you don't have an NIC asigned to vmbr1?!

BTW. An IP on 10.0.0.0/24 is only usefull if you need from this network access to the pve-gui (and don't have correct routing to 192.168.1.249), or you serve other things from the pve-host.

you can try sometking like this for vmbr1:
Code:
auto vmbr1
iface vmbr1 inet static
        address 0.0.0.0
        netmask 0.0.0.0
bridge_ports eth1
        bridge_stp off
        bridge_fd 0
Udo
 
Hi,
you don't have an NIC asigned to vmbr1?!

Udo

Thanx Udo for the replay. I had a look with putty and found out that the text displayed wasn't long enough, I scrolled down and the lines where there, so i did asigne eth1 to a nic

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


auto vmbr1
iface vmbr1 inet static
address 10.0.0.123
netmask 255.255.255.0
gateway 10.0.0.138
broadcast 10.0.0.255
bridge_ports eth1
bridge_stp off
bridge_fd 0
 
Hi,
you don't have an NIC asigned to vmbr1?!

Code:
auto vmbr1
iface vmbr1 inet static
        address 0.0.0.0
        netmask 0.0.0.0
bridge_ports eth1
        bridge_stp off
        bridge_fd 0
Udo

The bridge is there but still no progress, even not after restarting everything
 
I was able to make the asigning to the nic but stil not working, any idea?
 

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!