-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
El nombre de la tarjeta de red "bridged" está fijado en el Vagrantfile #1
Comments
Funciona si sólo una tarjeta de red está $ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether XX:YY:ZZ:2c:de:58 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether XX:YY:ZZc6:ec:6f brd ff:ff:ff:ff:ff:ff
4: br-ad180e80edaa: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:50:bd:70:39 brd ff:ff:ff:ff:ff:ff
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:d1:e7:c5:d8 brd ff:ff:ff:ff:ff:ff
$ ip link show | grep -i 'state UP' | awk '{gsub(/:/,"") ; print $2}'
wlp3s0 Requiere hacer alguna prueba adicional para validar que funciona en general. |
Una opción más sencilla, aunque menos general es usar el hecho de que los dispositivos wireless se identifican como Los equipos suelen tener únicamente una tarjeta de red wifi, aunque no tiene porqué ser la que esté activa; al final modifica el proceso para identificar la tarjeta del comando, en vez de usar |
No he encontrado cómo ejecutar el resultado de un comando en la máquina host (no en la guest, creada por Vagrant). Lo único que se me ocurre que podría funcionar es usar un script que genere una variable de entorno, y usar la variable en el |
Otra opción sería cambiar el nombre de la tarjeta de red "previsible" ( |
Ver
vagrant/k3s-ubuntu-cluster/Vagrantfile
Line 37 in e710344
The text was updated successfully, but these errors were encountered: