config ip adrress of a network interface through ubuntu terminal [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite













This question already has an answer here:



  • Changing IP Address in terminal

    1 answer



I am trying to configure ip address of network interfaces through terminal in ubuntu systems. So far successfully changed the IP address and other things through editing the interface file in the directory /etc/network/interfaces.



Is there any possibilities in changing the ip address of the interface through terminal using commands like configuring ip address of the router.



Thanks,Mohan










share|improve this question







New contributor




Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by Goro, sebasth, RalfFriedl, Thomas, JigglyNaga 2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    0
    down vote

    favorite













    This question already has an answer here:



    • Changing IP Address in terminal

      1 answer



    I am trying to configure ip address of network interfaces through terminal in ubuntu systems. So far successfully changed the IP address and other things through editing the interface file in the directory /etc/network/interfaces.



    Is there any possibilities in changing the ip address of the interface through terminal using commands like configuring ip address of the router.



    Thanks,Mohan










    share|improve this question







    New contributor




    Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    marked as duplicate by Goro, sebasth, RalfFriedl, Thomas, JigglyNaga 2 days ago


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:



      • Changing IP Address in terminal

        1 answer



      I am trying to configure ip address of network interfaces through terminal in ubuntu systems. So far successfully changed the IP address and other things through editing the interface file in the directory /etc/network/interfaces.



      Is there any possibilities in changing the ip address of the interface through terminal using commands like configuring ip address of the router.



      Thanks,Mohan










      share|improve this question







      New contributor




      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      This question already has an answer here:



      • Changing IP Address in terminal

        1 answer



      I am trying to configure ip address of network interfaces through terminal in ubuntu systems. So far successfully changed the IP address and other things through editing the interface file in the directory /etc/network/interfaces.



      Is there any possibilities in changing the ip address of the interface through terminal using commands like configuring ip address of the router.



      Thanks,Mohan





      This question already has an answer here:



      • Changing IP Address in terminal

        1 answer







      linux networking terminal ip network-interface






      share|improve this question







      New contributor




      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Oct 4 at 11:59









      Mohan Raj

      1




      1




      New contributor




      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Mohan Raj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      marked as duplicate by Goro, sebasth, RalfFriedl, Thomas, JigglyNaga 2 days ago


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Goro, sebasth, RalfFriedl, Thomas, JigglyNaga 2 days ago


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          If you want to add a static ip using the cli without go to edit the interfaces files, you can use nmcli tool:



          # nmcli con add type ethernet con-name static2 ifname eth0 ip4 192.168.1.5/24 gw4 192.168.1.1


          in the event that you want to add a temporary static ip address you can use ifconfig:



          # ifconfig eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255





          share|improve this answer








          New contributor




          Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            If you want to add a static ip using the cli without go to edit the interfaces files, you can use nmcli tool:



            # nmcli con add type ethernet con-name static2 ifname eth0 ip4 192.168.1.5/24 gw4 192.168.1.1


            in the event that you want to add a temporary static ip address you can use ifconfig:



            # ifconfig eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255





            share|improve this answer








            New contributor




            Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              up vote
              0
              down vote













              If you want to add a static ip using the cli without go to edit the interfaces files, you can use nmcli tool:



              # nmcli con add type ethernet con-name static2 ifname eth0 ip4 192.168.1.5/24 gw4 192.168.1.1


              in the event that you want to add a temporary static ip address you can use ifconfig:



              # ifconfig eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255





              share|improve this answer








              New contributor




              Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.



















                up vote
                0
                down vote










                up vote
                0
                down vote









                If you want to add a static ip using the cli without go to edit the interfaces files, you can use nmcli tool:



                # nmcli con add type ethernet con-name static2 ifname eth0 ip4 192.168.1.5/24 gw4 192.168.1.1


                in the event that you want to add a temporary static ip address you can use ifconfig:



                # ifconfig eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255





                share|improve this answer








                New contributor




                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                If you want to add a static ip using the cli without go to edit the interfaces files, you can use nmcli tool:



                # nmcli con add type ethernet con-name static2 ifname eth0 ip4 192.168.1.5/24 gw4 192.168.1.1


                in the event that you want to add a temporary static ip address you can use ifconfig:



                # ifconfig eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255






                share|improve this answer








                New contributor




                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered Oct 4 at 12:29









                Saveriofr

                193




                193




                New contributor




                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Saveriofr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.












                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay