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

Movie - Bastille Day | The Take (2016)

  My views Plot On the eve of  Bastille Day  in  Paris , American drifter and  pickpocket  Michael Mason steals a woman's handbag, not knowing that it contains  explosives . After taking the cash from the bag, he discards it, caught unwittingly on  CCTV  as he does so. The bag then detonates and kills four people. Upon being captured by  CIA  agent Sean Briar, who is being reprimanded for irresponsible conduct on the job, Mason protests that he is not a  terrorist  and tells Briar that the bag contained a cellphone owned by a woman named Zoé. The bomb was set up by a group of  corrupt policemen , all of them members in the  French special police RAPID unit  led by Rafi Bertrand, who intend to pull a robbery at the  Bank of France . Zoé was told to plant the bomb at the office of the  French Nationalist Party  (as part of a diversion for the heist), but after seeing the night cleaning crew arri...

Movie - Se7en (1995)

  My views Plot In an unnamed city overcome with violent crime and corruption, disillusioned police Detective Lieutenant William Somerset is one week from retirement. He is partnered with David Mills, a young, short-tempered, idealistic detective who recently relocated to the city with his wife, Tracy. On Monday, Somerset and Mills investigate an obese man who was forced to eat until his stomach burst, killing him. The detectives find the word " gluttony " written on a wall. Somerset, considering the case too extreme for his last investigation, asks to be reassigned, but his request is denied. The following day, another victim, who had been forced to cut one pound (0.45 kg) of flesh from his body, is found; the crime scene is marked " greed ." Clues at the scene lead Somerset and Mills to the  sloth  victim, a drug-dealing  pederast  whom they find emaciated and restrained to a bed. Photographs reveal the victim was restrained for precisely one year. Somers...

Movie - The Gray Man (2022)

  My views Plot In 2003, senior  CIA  official Donald Fitzroy visits a prisoner named Courtland Gentry in Florida. Eight years earlier, Courtland was a minor convicted of killing his abusive father to protect his brother. Fitzroy offers him his freedom in exchange for working as an assassin in the CIA's  Sierra  program, an elite black ops unit, which will allow him to exist in the gray. In 2021, Courtland, now known as  Sierra Six , is working with fellow CIA agent Dani Miranda to assassinate a target named Dining Car suspected of selling off  national security  secrets in  Bangkok  during the national  Songkran  festival. Unable to do so stealthily without harming civilians, he attacks Dining Car directly, mortally wounding him. Before dying, he reveals he was also in the Sierra program as Sierra Four. He hands Six an encrypted drive detailing the corruption of CIA official Denny Carmichael, the lead agent on the assassinatio...