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

Movies - Deadpool & Wolverine (2024)

 

TV Mini-serie - Lady in the Lake (2024)

 

Movie - The Gorge (2025)

  My views For 80 years everything was ok ... until they sent a woman For sure is DTV ... really bad Inside the gorge is clearly designed and written by a gamer Plot Two elite  snipers  receive identical missions: travel to an undisclosed location and guard the West and East sides of a deep gorge for one year without any contact with the outside world nor their counterpart on the opposite side. Levi Kane, a former  U.S. Marine  and current  private contractor  accepts the offer to guard the West tower. Drasa, a  Lithuanian  covert operative frequently employed by the  Kremlin , agrees to guard the East side. Upon arriving, Levi relieves his predecessor, J.D., a  British   Royal Marine  of duty and asks for specifics about the mission. J.D. explains that in addition to the towers on the East and West, there are automated turret defenses to the North and South, a powerful signal ‘ cloak ,’ and  explosives on the walls ...