Hi,
I have a container configuration in their only runs eth0 or eth1 - I cant find the resolution, why I cant run the both together:
1. Host-Server OVH
2. 2 IPs with MAC - it´s important
3. IP1 - I have change the number only for the forum: 1.1.1.1 comes via gateway 2.2.2.254 to the
vmbr0 and the veth veth123.0 to the Container CT123 eth0.
When the routing (see the scripts) not remarked, then only this IP can been pinged to outside
or from outside!
4. IP2 - I have change the number only for the forum: 3.3.3.3 comes via gateway 2.2.2.254 to the
vmbro0 and the veth veth123.1 to the Container CT123 eth1.
When the routing (see the scripts) not remarked for this IP, then only this IP can been pinged to
outside or from outside!
5. When I remark the Routing for both eth-Interfaces, only eth1 works correctly (ping)
About this I have a big understanding problem, that the both Interfaces works correctly
Here the Settings/Scripts:
/etc/vz/conf/123.conf:
Im Container:
/etc/network/interfaces: - in this version only ping via eth1 is possible
WHEN I USE THIS VERSION of the /etc/network/interfaces - only ping via eth0 is possible:
Many Thanks for your helps
virtualizer
I have a container configuration in their only runs eth0 or eth1 - I cant find the resolution, why I cant run the both together:
1. Host-Server OVH
2. 2 IPs with MAC - it´s important
3. IP1 - I have change the number only for the forum: 1.1.1.1 comes via gateway 2.2.2.254 to the
vmbr0 and the veth veth123.0 to the Container CT123 eth0.
When the routing (see the scripts) not remarked, then only this IP can been pinged to outside
or from outside!
4. IP2 - I have change the number only for the forum: 3.3.3.3 comes via gateway 2.2.2.254 to the
vmbro0 and the veth veth123.1 to the Container CT123 eth1.
When the routing (see the scripts) not remarked for this IP, then only this IP can been pinged to
outside or from outside!
5. When I remark the Routing for both eth-Interfaces, only eth1 works correctly (ping)
About this I have a big understanding problem, that the both Interfaces works correctly
Here the Settings/Scripts:
/etc/vz/conf/123.conf:
Code:
NETIF="ifname=eth0,bridge=vmbr0,mac=AA:BB:CC:6D:EE:6C,host_ifname=veth123.0,host_mac=AA:BB:CC:6D:EE:6D;
ifname=eth1,bridge=vmbr0,mac=BB:CC:6D:EE:FF:1a,host_ifname=veth123.1,host_mac=BB:CC:6D:EE:FF:1b"
Im Container:
/etc/network/interfaces: - in this version only ping via eth1 is possible
Code:
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet static
address 1.1.1.1
netmask 255.255.255.255
broadcast 1.1.1.1
# post-up route add 2.2.2.254 dev eth0
# post-up route add default gw 2.2.2.254
# post-down route del 2.2.2.254 dev eth0
# post-down route del default gw 2.2.2.254
iface eth1 inet static
address 3.3.3.3
netmask 255.255.255.255
broadcast 3.3.3.3
post-up route add 2.2.2.254 dev eth1
post-up route add default gw 2.2.2.254
post-down route del 2.2.2.254 dev eth1
post-down route del default gw 2.2.2.254
WHEN I USE THIS VERSION of the /etc/network/interfaces - only ping via eth0 is possible:
Code:
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet static
address 1.1.1.1
netmask 255.255.255.255
broadcast 1.1.1.1
post-up route add 2.2.2.254 dev eth0
post-up route add default gw 2.2.2.254
post-down route del 2.2.2.254 dev eth0
post-down route del default gw 2.2.2.254
iface eth1 inet static
address 3.3.3.3
netmask 255.255.255.255
broadcast 3.3.3.3
# post-up route add 2.2.2.254 dev eth0 eth1
# post-up route add default gw 2.2.2.254
# post-down route del 2.2.2.254 dev eth0 eth1
# post-down route del default gw 2.2.2.254
Many Thanks for your helps
virtualizer
Last edited: