Path: ...!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp5-1.free.fr!not-for-mail Date: Thu, 18 Aug 2022 12:27:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: =?UTF-8?Q?Fran=c3=a7ois_Lafont?= Subject: =?UTF-8?Q?Re=3a_Probl=c3=a8me_d=27interface_de_type_bridge_qui_ne_r?= =?UTF-8?Q?=c3=a9pond_pas_aux_VM_VirtualBox?= Newsgroups: fr.comp.os.linux.configuration References: <62fd229d$0$22261$426a34cc@news.free.fr> <62fd6618$0$9152$426a74cc@news.free.fr> <62fe099c$0$9143$426a74cc@news.free.fr> Content-Language: fr In-Reply-To: <62fe099c$0$9143$426a74cc@news.free.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 143 Message-ID: <62fe13fb$0$24807$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 18 Aug 2022 12:27:07 CEST NNTP-Posting-Host: 86.238.210.142 X-Trace: 1660818427 news-4.free.fr 24807 86.238.210.142:36966 X-Complaints-To: abuse@proxad.net Bytes: 5885 Re, Je réponds au message que Marc Schaefer que j'ai vu sur la page de Google du groupe, mais que je ne vois pas apparaître sur mon client de news (aucune idée de pourquoi). > François Lafont wrote: >> Et bien justement, avec Virtualbox, ça a toujours été un peu un mystère >> pour moi, mais des commandes comme "ip l" ou "ip a" n'affichent jamais >> aucune des interfaces pontées. > > Ca pourrait être un autre namespace, je crois qu'on peut les lister sous > /proc/PID/ns/net, avec PID le numéro du processus. > > J'ai déjà utilisé des namespaces privés pour le réseau, ainsi: > > pid= # obtenir > netns=/var/run/netns > mkdir -p $netns > ln -s /proc/$pid/ns/net $netns/nom > > ip netns exec nom ip link set up dev eth0 > > J'utilise ça pour gérer mes propres interfaces bridgées dans mon > mini-cloud, commutées ensuite via des VLAN dynamiques pour virtualiser > l'emplacement des machines (5 serveurs de virtualisation, les bridges > fonctionnent quel que soit le serveur. Alors je ne suis pas très calé en namespace. Sur ma machine, j'ai ceci : ------------------------------------- ~# ip netns list ~# # vide ~# lsns --type=net NS TYPE NPROCS PID USER NETNSID NSFS COMMAND 4026531840 net 343 1 root unassigned /sbin/init splash 4026533005 net 1 1296 root unassigned /usr/libexec/accounts-daemon 4026533062 net 1 1841 rtkit unassigned /usr/libexec/rtkit-daemon 4026533128 net 1 8391 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 45458 -prefMapSize 2767 4026533422 net 1 9295 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 51136 -prefMapSize 2767 4026533480 net 1 8872 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 45564 -prefMapSize 2767 4026533538 net 1 8874 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 45564 -prefMapSize 2767 4026533596 net 1 9013 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 50171 -prefMapSize 2767 4026533654 net 1 27030 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 40 -isForBrowser -prefsLen 52443 -prefMapSize 276 4026533712 net 1 27070 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 41 -isForBrowser -prefsLen 52443 -prefMapSize 276 4026533771 net 1 28144 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 43 -isForBrowser -prefsLen 52443 -prefMapSize 276 4026533827 net 1 9481 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -parentBuildID 20220811234741 -prefsLen 51136 -prefMapSize 4026533943 net 1 9701 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 51136 -prefMapSize 276 4026534001 net 1 9705 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 14 -isForBrowser -prefsLen 51136 -prefMapSize 276 4026534059 net 1 26987 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 39 -isForBrowser -prefsLen 52443 -prefMapSize 276 4026534118 net 1 27453 flaf unassigned /snap/firefox/1689/usr/lib/firefox/firefox -contentproc -childID 42 -isForBrowser -prefsLen 52443 -prefMapSize 276 root@flhpz4:~# ------------------------------------- Ensuite, j'ai vu sur le web qu'on pouvait lister les network namespaces comme ceci : ------------------------------------- 1563 net:[4026531840] 4 net:[4026533005] 4 net:[4026533062] 27 net:[4026533128] 28 net:[4026533422] 28 net:[4026533480] 27 net:[4026533538] 27 net:[4026533596] 29 net:[4026533654] 19 net:[4026533712] 20 net:[4026533771] 4 net:[4026533827] 28 net:[4026533943] 27 net:[4026534001] 28 net:[4026534059] 19 net:[4026534118] ------------------------------------- Mais je ne sais pas trop quoi faire de ça. J'ai comprendre que les nombres entre crochets correspondent à des numéros d'inodes. Mais après, il y a moyen de lister des interfaces réseau contenues dans ces namespaces ?