Re: LXC et Wheezy
Bonjour et merci pour vos réponses.
J'ai ajusté ma configuration comme conseillé par phep, pas d'amélioration.
J'ai également changé l'adresse MAC de mon conteneur (pour l'instant je n'en ai
qu'un, ce n'était donc pas un problème de conflit).
Au passage, bien que je ne pense pas que ça soit incompatible, mon hôte est une
VM VirtualBox…
= Sur l'hôte =
== /etc/network/interfaces ==
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 172.16.13.1
netmask 255.255.0.0
gateway 172.16.0.1
network 172.16.0.0
broadcast 172.16.255.255
dns-nameservers 172.16.1.14
bridge_ports eth0
bridge_fd 0
bridge_stp off
bridge_waitport 0
bridge_maxwait 0
== route -n ==
Destination Passerelle Genmask Indic Metric Ref Use Iface
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 br0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br0
== ifconfig ==
br0 Link encap:Ethernet HWaddr 08:00:27:a6:7f:1e
inet adr:172.16.13.1 Bcast:172.16.255.255 Masque:255.255.0.0
adr inet6: fe80::a00:27ff:fea6:7f1e/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4268 errors:0 dropped:26 overruns:0 frame:0
TX packets:2615 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:1493327 (1.4 MiB) TX bytes:596165 (582.1 KiB)
eth0 Link encap:Ethernet HWaddr 08:00:27:a6:7f:1e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4513 errors:0 dropped:14 overruns:0 frame:0
TX packets:2664 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:1577026 (1.5 MiB) TX bytes:619243 (604.7 KiB)
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:28273 (27.6 KiB) TX bytes:28273 (27.6 KiB)
veth-mbs-coll Link encap:Ethernet HWaddr fe:ad:86:e4:3c:15
adr inet6: fe80::fcad:86ff:fee4:3c15/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:500 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:672 (672.0 B) TX bytes:37661 (36.7 KiB)
== iptables -L ==
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
== iptables -t nat -L ==
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
= Sur le conteneur =
== /etc/network/interfaces ==
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.13.30
netmask 255.255.0.0
gateway 172.16.1.1
broadcast 172.16.255.255
network 172.16.0.0
== route -n ==
Destination Passerelle Genmask Indic Metric Ref Use Iface
0.0.0.0 172.16.13.1 0.0.0.0 UG 0 0 0 eth0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
== ifconfig ==
eth0 Link encap:Ethernet HWaddr 00:ff:aa:00:13:30
inet adr:172.16.13.30 Bcast:172.16.255.255 Masque:255.255.0.0
adr inet6: fe80::2ff:aaff:fe00:1330/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:936 errors:0 dropped:22 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:71424 (69.7 KiB) TX bytes:758 (758.0 B)
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:112 (112.0 B) TX bytes:112 (112.0 B)
Seb
Reply to: