Desarrollo y Mantenimiento de Sistemas Informáticos

4º. 1er cuatrimestre. Itinerario de Sistemas de la Información. Grado en Ingeniería Informática. ULL


GH Org   - GH Template Org   - GitHub Classroom   - Discussions   - Teams   - Campus ULL   - Students Activity   - Chat   - Google Meet

Configurando el Entorno ULL IAAS

Tips course 24/25

The ssh connection with the ull iass machine only opens when the wifi is activated

➜  practicas-alumnos ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=400<CHANNEL_IO>
        ether f8:ff:c2:2a:30:43
        inet6 fe80::8d6:eae8:55e3:bdf3%en0 prefixlen 64 secured scopeid 0x6 
        inet 10.151.45.224 netmask 0xffff0000 broadcast 10.151.255.255
        nd6 options=201<PERFORMNUD,DAD>
        media: autoselect
        status: active
➜  practicas-alumnos ssh dmsi    
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-196-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Sep 23 08:38:45 UTC 2024

  System load:  0.0                Processes:             140
  Usage of /:   37.5% of 19.52GB   Users logged in:       1
  Memory usage: 6%                 IPv4 address for ens3: 10.6.131.75
  Swap usage:   0%

 * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
   just raised the bar for easy, resilient and secure K8s cluster deployment.

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

103 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

New release '22.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Mon Sep 23 08:35:49 2024 from 10.151.45.224
usuario@ubuntu:~$  

If you do not know the device name for the Wi-Fi network adapter, on a Mac you can use the following examples:

➜  apuntes git:(master) ✗ networksetup -getairportpower $(system_profiler SPAirPortDataType | awk -F: '/Interfaces:/{getline; print $1;}')
Wi-Fi Power (en0): On

or

➜  apuntes git:(master) ✗ ifconfig $(system_profiler SPAirPortDataType | awk -F: '/Interfaces:/{getline; print $1;}') | awk '/status:/{print $2}'
active

Or we can use wdutil (Wireless Diagnostics command line utility):

➜  apuntes git:(master) ✗ wdutil --help
usage: sudo wdutil diagnose [-q] [-f outputDirectoryPath]
            -q may be specified to suppress legal prompt and Finder window
       sudo wdutil info
       sudo wdutil log [{+|-} {system|wifi}]+
       sudo wdutil dump
       sudo wdutil clean