Skip to main content

IT - Linux: Network set-up

 Additional IP address

  • Fedora 36 / 37 / 38 / 39
    • Option 1:

      sudo nmcli con mod <interface-name> +ipv4.addresses "<ip-address>/<mask>"

      $ sudo nmcli con mod enp4s0f0 +ipv4.addresses "192.168.0.15/24"
      $ sudo nmcli con mod enp4s0f0 ipv4.method manual
      $ sudo nmcli con mod enp4s0f0 ipv4.dns "1.1.1.1 8.8.8.8 8.8.4.4"
    • Option 2:

      vi /etc/NetworkManager/system-connections/<interface-name>.nmconnection and update entry under [ipv4]

      [ipv4]
      address1=ip-address/bit-mask[,default-gateway]
      dns=ip-address;[ip-address;[ip-address;]]
      method=manual

      For example:

      $ nmcli
      enp3s0f0: connected to enp3s0f0
    •         "Broadcom and subsidiaries NetXtreme BCM57766"
              ethernet (tg3), 38:C9:86:30:35:8C, hw, mtu 1500
              ip4 default, ip6 default
              inet4 192.168.0.208/24
              route4 192.168.0.0/24 metric 100
              route4 192.168.0.0/24 metric 100
              inet6 2a02:8109:aa3f:aa58::b1fe/128
              inet6 fe80::3ac9:86ff:fe30:358c/64
              route6 fe80::/64 metric 1024
              route6 2a02:8109:aa3f:aa58::b1fe/128 metric 100
              route6 default via fe80::4e12:65ff:fe0b:ad86 metric 100

      lo: unmanaged
              "lo"
              loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

      DNS configuration:
              servers: 192.168.0.1
              interface: enp3s0f0

              servers: 2a02:8109:aa3f:aa58:4e12:65ff:fe0b:ad86
              interface: enp3s0f0
      ...
      $ sudo vi /etc/NetworkManager/system-connections/enp3s0f0.nmconnection

    • [ipv4]
      method=manual
      address1=192.168.0.16/24,192.168.0.1
      dns=8.8.8.8;8.8.4.4;1.1.1.1;

Comments

Popular posts from this blog

IT - Which Is Faster: find | cpio -pdvm OR rsync?

To determine which is faster between find | cpio -pdvm and rsync for copying a large directory tree locally, we need to consider several factors: the nature of the operation, the tools' design, the system environment, and the specific use case. Let’s break this down based on the information provided in the web results and general knowledge about these tools. Overview of the Tools find | cpio -pdvm : find : Recursively lists all files and directories in a given path. cpio : A tool for copying files into or out of a cpio or tar archive. In this case, with the -pdvm options: -p : Pass-through mode (copy files from one directory tree to another). -d : Create directories as needed. -v : Verbose mod...

IT - Troubleshooting Kodi DLNA Visibility Issues After Windows Updates: A Deep Dive Into Conflicts, Fixes, and Lessons Learned

Title: Troubleshooting Kodi DLNA Visibility Issues After Windows Updates: A Deep Dive Into Conflicts, Fixes, and Lessons Learned Subtitle: How I Diagnosed and Solved Intermittent Kodi Visibility Problems on a Samsung Smart TV After Windows OS Updates and Media Server Conflicts Introduction Home media streaming should be seamless, but anyone who has integrated Kodi into a smart home setup knows that stability isn't always guaranteed. Recently, I encountered a frustrating issue: Kodi, running perfectly on my Windows 10 Pro desktop, suddenly became invisible to my Samsung Smart TV via DLNA. The journey to resolve this seemingly simple visibility issue turned into a deep technical rabbit hole involving Windows Media Server, Universal Media Server, Jellyfin, NordVPN, and the very internals o... The System Setup Before diving into the problem, it's essential to understand my hardware and software setup: Operating System: Windows 10 Pro (build 2009) Media Server: Kodi (...

Movie - The Wizard of Oz (1939)

  My views Plot In rural  Kansas ,  Dorothy Gale  lives on a farm owned by her Uncle Henry and Aunt Em, and wishes she could be somewhere else. Dorothy's neighbor, Almira Gulch, who had been bitten by Dorothy's dog, Toto, obtains a sheriff's order authorizing her to seize Toto. Toto escapes and returns to Dorothy, who runs away to protect him. Professor Marvel, a charlatan fortune-teller, convinces Dorothy that Em is heartbroken, which prompts Dorothy to return home. She returns just as a  tornado  approaches the farm. Unable to get into the locked storm cellar, Dorothy takes cover in the farmhouse and is knocked unconscious. She seemingly awakens to find the house moving through the air, with her and Toto still inside it. The house comes down in an unknown land, and Dorothy is greeted by a good witch named  Glinda , who floats down in a bubble and explains that Dorothy has landed in Munchkinland in the  Land of Oz , and that the Munchkins are cel...