network issues with vm

G

geekslinux

Guest
Hi,

I have two machines test and test1 with centos, I have created vmbr01 with vlantag 1 and model rtl8139 assigned it to test and vmbr02 with vlantag 2 and model rtl8139, assigned to test1. I couldnt see any Ip in both the machines and i couldnt assign ip address.How to assign IP and gw so that they can go online. I have attached screen shot of this. Any suggestions please.
 

Attachments

  • base.jpg
    base.jpg
    130.1 KB · Views: 22
Hi,

I have two machines test and test1 with centos, I have created vmbr01 with vlantag 1 and model rtl8139 assigned it to test and vmbr02 with vlantag 2 and model rtl8139, assigned to test1. I couldnt see any Ip in both the machines and i couldnt assign ip address.How to assign IP and gw so that they can go online. I have attached screen shot of this. Any suggestions please.

Hi,
your network setup is completly wrong.
If you use vlan-tag-id you have normaly only one bridge (vmbrX), which isbound to an NIC which is connected to an switch with support vlan-tagging.

Do you have vlan-tagging (802.1q) on your switch you can connect eth1 to this port and use on the pve-side vmbr1, which must connected to eth1 in this case.

Than you can use the right vlan-IDs for the different networks.

But in your case, all networks has an IP on the host which are in the same network... I guess you have only one network?! Then simply connect each VM to vmbr0 and all VMs are in the same network as the host.

Udo
 
Hi,

Udo, as per your advise I have removed Vlan id in bridge mode and what model I have to choose(Intel e1000, VirtIO or Realtec RTL8139) in my VM settings. I have installed centos 6.2 in that VM, after giving this when i check in my OS i found i dont have any IP in it. How CentOS will link the IP i gave in proxmox host. Please clarify
 
hi, geekslinux
i guess i would help if you describe what are you trying to achieve, from scratch, with pve, the network, and the two vm

there are many possible configurations

Marco
 
Hi, Ardito

I Thank you so much for your Offer to help, my requirement is as follows:

1. Two number of Linux servers(Cent OS 6.2) to be installed using VM the gateway will be 10.20.120.101
2. Two numbers of windows server has to be installed with VM option and the gateway will be 10.20.120.101
3.The IPs to be assigned for the servers will be 10.20.120.56,10.20.120.57,10.20.120.58,10.20.120.59
4. Proxmox server is installed with IP 10.20.120.45.
5. Those 4 servers has to communicate outside using the gateway 10.20.120.101.
6. All the IPs are static only.

Problems
I have installed 2 servers for test purpose but it is not communicating outside.
Problem is with network. How to assign IP address to clients and make them communicate outside. Kindly help me on this.

Thanks in advance.
 
Hi, Ardito

I Thank you so much for your Offer to help, my requirement is as follows:

1. Two number of Linux servers(Cent OS 6.2) to be installed using VM the gateway will be 10.20.120.101
2. Two numbers of windows server has to be installed with VM option and the gateway will be 10.20.120.101
3.The IPs to be assigned for the servers will be 10.20.120.56,10.20.120.57,10.20.120.58,10.20.120.59
4. Proxmox server is installed with IP 10.20.120.45.
5. Those 4 servers has to communicate outside using the gateway 10.20.120.101.
6. All the IPs are static only.
7. The server at present has one ethernet card.


Problems
I have installed 2 servers for test purpose but it is not communicating outside.
Problem is with network. How to assign IP address to clients and make them communicate outside. Kindly help me on this.

Thanks in advance.
 
Hi, Ardito

I Thank you so much for your Offer to help, my requirement is as follows:

1. Two number of Linux servers(Cent OS 6.2) to be installed using VM the gateway will be 10.20.120.101
2. Two numbers of windows server has to be installed with VM option and the gateway will be 10.20.120.101
3.The IPs to be assigned for the servers will be 10.20.120.56,10.20.120.57,10.20.120.58,10.20.120.59
4. Proxmox server is installed with IP 10.20.120.45.
5. Those 4 servers has to communicate outside using the gateway 10.20.120.101.
6. All the IPs are static only.
7. The server at present has one ethernet card.


Problems
I have installed 2 servers for test purpose but it is not communicating outside.
Problem is with network. How to assign IP address to clients and make them communicate outside. Kindly help me on this.

Thanks in advance.
Hi,
this is a normal simple networksetup.
Only one bridge - vmbr0.
Use bridged network, choose virtio for linux guest (and also for windows - but I suggest firt try e1000) or e1000 for windows (depends on your windows-version you must use the official intel-driver (win2k3, XP)).
Use the right network-config inside the guest - the bridge is like an network hub. Use also the right entry for the nameserver.

If you have trouble to connect outside, control the firewall (windows) and use "tcpdump -i vmbr0 -h ip.of.gue.st" on the host to see what happens.
Check also, if you can resolv the hostname insider the guest.

Udo
 
Hi,

My sincere thanks to udo & marco ardito for explaining crystal clear on this simple setup. Now my setup is working fine, able to ping and access. I shall be glad to know about VLAN Tag option in Proxmox bridge. I also have a requirement of having redundancy ie one more network card. If i have two NICs and create one more bridge vmbr1 and use it in the VMs will it work and will it serve the purpose of redundancy. Once again i thank all of them for providing support.
 

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!