Spread the word.

Share the link on social media.

Share
  • Facebook
Have an account? Sign In Now

Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

Browse


Have an account? Sign In Now

Sign In

Login to our ITSupportBD questions & Answers Engine to ask questions answer people’s questions & connect with other IT people.

Sign Up Here
Continue with Facebook
Continue with Google
or use


Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Have an account? Sign In Now

You must login to ask a question.

Continue with Facebook
Continue with Google
or use


Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

IT Support BD Logo IT Support BD Logo
Sign InSign Up

IT Support BD

IT Support BD Navigation

  • Home
  • Blog
  • Download
  • Support Hour Booking
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Terms and Conditions
  • Privacy Policy
  • Cookie Policy
Home/ Questions/Q 188
Next
In Process

IT Support BD Latest Questions

Asked: November 7, 20212021-11-07T18:44:25+06:00 2021-11-07T18:44:25+06:00In: Server

How to configure internet connection in Ubuntu server.

Arif
ArifIT Moderator
  1. Please Help me to configure internet connection in my ubuntu server.
ip configuration
3
  • 5
  • 5
  • 3 3 Answers
  • 376 Views
  • 2 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Facebook
    Continue with Google
    or use


    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Facebook
    Continue with Google

    3 Answers

    • Voted
    • Oldest
    • Recent
    • Random
    1. Support
      Support IT Senior Coordinator
      2021-11-08T04:02:55+06:00Added an answer on November 8, 2021 at 4:02 am

      How to Configure Static IP Addresses On Ubuntu Server easy way.

      Configure Static IP Addresses On Ubuntu Server easy way.
      1.Loginto terminal and enter root user like :
      sudo -i
      2. Goto network config file:
      cd /etc/netplan/
      3. Tipe ls and you see the config file 50-cloud-init.yaml
      4. Edite this confige file :
      sudo nano /etc/netplan/50-cloud-init.yaml
      Yoy see this file code like :
      # This file is generated from information provided by
      # the datasource. Changes to it will not persist across an instance.
      # To disable cloud-init’s network configuration capabilities, write a file
      # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
      # network: {config: disabled}
      network:
      ethernets:
      enp0s1:
      addresses: []
      dhcp4: true
      version: 2
      enp0s1 Is networking port.
      You can replace this code :
      # This file is generated from information provided by
      # the datasource. Changes to it will not persist across an instance.
      # To disable cloud-init’s network configuration capabilities, write a file
      # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
      # network: {config: disabled}
      network:
      ethernets:
      enp0s3:
      addresses: [192.168.1.2/24]
      gateway4: 192.168.1.1
      nameservers:
      addresses: [8.8.8.8,8.8.4.4]
      dhcp4: no
      version: 2
      Exit and save your changes by running the commands below
      sudo netplan apply
      Now configured and saved Static IP Addresses On Ubuntu Server.

        • 2
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. admin
      admin IT Partner
      2021-11-08T04:54:12+06:00Added an answer on November 8, 2021 at 4:54 am

      The most effective method to Configure Static IP Addresses On Ubuntu 20.04 Server simple way.
      Setup Static IP address on Ubuntu Server

      On Ubuntu 20.04, the framework recognizes network interfaces utilizing ‘unsurprising organization interface names’.

      The initial move toward setting up a static IP address is recognizing the name of the ethernet interface you need to design.
      To do as such, utilize the ip connect order, as displayed underneath:

      To allot a static IP address on the organization interface, open the YAML setup record with your word processor :

      sudo nano /etc/netplan/01-netcfg.yaml

      network:
      version: 2
      renderer: networkd
      ethernets:
      ens3:
      dhcp4: yes

      Prior to changing the arrangement, how about we clarify the code in a short.

      Each Netplan Yaml document begins with the organization key that has somewhere around two required components. The initially required component is the adaptation of the organization design, and the subsequent one is the gadget type. The gadget type can be ethernets, bonds, spans, or vlans.

      The arrangement above likewise has a line that shows the renderer type. Out of the container, in the event that you introduced Ubuntu in worker mode, the renderer is arranged to utilize networkd as the back end.

      Under the gadget’s sort (ethernets), you can determine at least one organization interfaces. In this model, we have just a single interface ens3 that is arranged to get IP tending to from a DHCP worker dhcp4: yes.

      Prior to changing the setup, we should clarify the code in a short.

      Each Netplan Yaml record begins with the organization key that has something like two required components. The originally required component is the variant of the organization setup design, and the subsequent one is the gadget type. The gadget type can be ethernets, bonds, spans, or vlans.

      The setup above additionally has a line that shows the renderer type. Out of the crate, in the event that you introduced Ubuntu in worker mode, the renderer is arranged to utilize networkd as the back end.

      Under the gadget’s sort (ethernets), you can indicate at least one organization interfaces. In this model, we have just a single interface ens3 that is designed to get IP tending to from a DHCP worker dhcp4: yes.

      To relegate a static IP address to ens3 interface, alter the document as follows:

      network:
      version: 2
      renderer: networkd
      ethernets:
      ens3:
      dhcp4: no
      addresses:
      – 192.168.9.12/24
      gateway4: 192.168.9.1
      nameservers:
      addresses: [8.8.8.8, 8.8.1.1]

      When altering Yaml records, ensure you observe the YAML code indent principles. On the off chance that the sentence structure isn’t right, the progressions won’t be applied.

      Once done, save the record and apply the progressions by running the accompanying order:

      sudo netplan apply

      End

      We’ve told you the best way to design a static IP address on Ubuntu 20.04.

      On the off chance that you have any inquiries, kindly leave a remark underneath.

        • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. Abak
      Abak IT Manager
      2021-11-08T07:19:37+06:00Added an answer on November 8, 2021 at 7:19 am

      Add the following lines to the yaml file,

        • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 162
    • Answers 164
    • Best Answers 79
    • Users 17k
    • Popular
    • Answers
    • Jaylon S

      When I turn my Pc in a Server with Ehcp ...

      • 5 Answers
    • Abak

      ক্রিপ্টোকারেন্সি কি?

      • 4 Answers
    • admin

      Which is the first website of Bangladesh?

      • 3 Answers
    • admin
      admin added an answer If you're running OpenWRT on a router with limited internal… April 13, 2025 at 10:05 am
    • Support
      Support added an answer 10 Best Methods on How to Use IDM for Torrent… November 14, 2024 at 1:27 pm
    • admin
      admin added an answer When choosing a printer for book printing in Dubai, consider… October 30, 2024 at 3:31 pm

    Related Questions

    • Watch Free Bollywood and Bengali Movies Online

      • 0 Answers
    • How to build network monitoring and problem-solving tools?

      • 1 Answer
    • How to create own remote desktop server infrastructure.

      • 1 Answer
    • I want to host site using xamp on internet

      • 1 Answer
    • How can I Create own storage server and intagreate it ...

      • 1 Answer

    Top Members

    admin

    admin

    • 14 Questions
    • 1k Points
    IT Partner
    Arif

    Arif

    • 35 Questions
    • 790 Points
    IT Moderator
    Support

    Support

    • 29 Questions
    • 477 Points
    IT Senior Coordinator

    Trending Tags

    bd movie 365 computer custom pvc patches custom rom hosting mobile nas network online movies online pvc patches uk os pvc patches question server sim storage website windows 11 wordpress xrp price prediction

    Explore

    • Home
    • Add group
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help
    • Shop

    Footer

    IT Support BD

    We hope you enjoy our blog as much as We enjoy offering them to you. If you have any questions or comments, please don't hesitate to contact us.

    About Us

    • Meet The Team
    • Blog
    • About Us
    • Contact Us

    Legal Stuff

    • Terms and Conditions
    • Privacy Policy
    • Cookie Policy

    Help

    • Knowledge Base
    • Support

    Follow

    © 2018-2025 IT Support BD. All Rights Reserved

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.