Without venet, I don't have any IP Address. It's only static IP, so I need to add a venet ?
venet -> you need to configure ip in proxmox gui
veth -> you need to configure ip inside the container (static or dhcp)
Without venet, I don't have any IP Address. It's only static IP, so I need to add a venet ?
OK, if I add veth, how can I configure the IP of my VM if the VM have no ip address ??
I added the VETH "eth0" linked with the bridge vmbr1 in my VM.
But, when i start my VM, in /etc/network/interfaces, there is no eth0 !
Any idea ?
It doesn't work, I add the configuration in /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.0.0.189
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1
I restart networking service :
service networking restart
root@test:/# ifconfig
eth0 Link encap:Ethernet HWaddr a6:29:3c:d4:fe:b0
inet addr:10.0.0.189 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::a429:3cff:fed4:feb0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2355 (2.3 KB) TX bytes:720 (720.0 B)
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:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:488 (488.0 B) TX bytes:488 (488.0 B)
root@test:/# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
root@test:/#
But on the local network, when I ping my VM from my computer on 10.0.0.153 :
adda@D2SS35J:~$ ping 10.0.0.189
PING 10.0.0.189 (10.0.0.189) 56(84) bytes of data.
From 10.0.0.153 icmp_seq=1 Destination Host Unreachable
From 10.0.0.153 icmp_seq=2 Destination Host Unreachable
From 10.0.0.153 icmp_seq=3 Destination Host Unreachable
From 10.0.0.153 icmp_seq=4 Destination Host Unreachable
And, no Internet access for the VM.
root@proxmox:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.74d4359ba5b0 no eth0
vmbr1 8000.000acd2414d3 no eth1
veth100.0
This is the result of brctl show :
No, there are on 2 differents switchs.