{"id":21092,"date":"2023-09-30T11:17:36","date_gmt":"2023-09-30T11:17:36","guid":{"rendered":"https:\/\/linuxways.net\/?p=21092"},"modified":"2023-09-30T11:17:36","modified_gmt":"2023-09-30T11:17:36","slug":"how-do-i-temporarily-change-my-ip-address-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-do-i-temporarily-change-my-ip-address-linux-ubuntu\/","title":{"rendered":"How do I Temporarily Change my IP Address Linux\/Ubuntu?"},"content":{"rendered":"<p><strong>IP Address<\/strong> or Internet Protocol Address is used to recognize the Inter-Connected Devices in a Network. With IP Addresses, the inter-connected devices interact and communicate with each other. Every device in the network has its own unique IP Address and changing the IP Address routinely leads to improved security and privacy of the device.<\/p>\n<p>This article explains the steps to Temporarily Change IP Address.<\/p>\n<h2><strong>How do I Temporarily Change my IP Address in Linux\/Ubuntu?<\/strong><\/h2>\n<p>The Router assigns IP Addresses automatically which is known to be the DHCP method. IP Address can be changed from DHCP (Automatic) to Static (Manual) but it stays the same unless you change it manually again. Execute the steps below to temporarily change your IP Address.<\/p>\n<h3><strong>Step 1: Open Terminal<\/strong><\/h3>\n<p>To open the terminal in Ubuntu, use any of the GUI or CLI. To start the terminal using the GUI, navigate to the \u201cShow Applications\u201d icon and click on it or press the Windows Button on your Keyboard to open the \u201cShow Applications\u201d menu directly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1632\" height=\"911\" class=\"wp-image-21093\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1.png 1632w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1-300x167.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1-1024x572.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1-768x429.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-1-1536x857.png 1536w\" sizes=\"auto, (max-width: 1632px) 100vw, 1632px\" \/><\/p>\n<p>In the applications screen, you can see the \u201cSearch\u201d box. Click on it and type the application you want to filter. In our case, we will type \u201cterminal\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1564\" height=\"322\" class=\"wp-image-21094\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2.png 1564w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2-300x62.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2-1024x211.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2-768x158.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-2-1536x316.png 1536w\" sizes=\"auto, (max-width: 1564px) 100vw, 1564px\" \/><\/p>\n<p>Open it either by pressing \u201cEnter\u201d or clicking on it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"556\" class=\"wp-image-21095\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-3.png 814w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-3-300x205.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-3-768x525.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/p>\n<p>Alternatively, you can open the Terminal directly using the Shortcut Key \u201cctrl+alt+T\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1514\" height=\"460\" class=\"wp-image-21096\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-4.png 1514w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-4-300x91.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-4-1024x311.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-4-768x233.png 768w\" sizes=\"auto, (max-width: 1514px) 100vw, 1514px\" \/><\/p>\n<p>Pressing these keys wherever will open the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"329\" class=\"wp-image-21097\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-5.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-5-300x135.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<h3><strong>Step 2: Check the Current IP Address<\/strong><\/h3>\n<p>Before temporarily changing the IP address, check the current IP address of your Ubuntu system using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a<\/div><\/div>\n<p>This will display the Network Details. Look for the IP Address with the \u201cinet\u201d statement:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"396\" class=\"wp-image-21098\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-6.png 832w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-6-300x143.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-6-768x366.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>Apart from the \u201cip a\u201d command, you can also execute the \u201cip addr show\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip addr<\/span> show<\/div><\/div>\n<p>This will also display the network details:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"383\" class=\"wp-image-21099\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-7.png 832w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-7-300x138.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-7-768x354.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<h3><strong>Step 3: Temporary Change IP Address Using \u201cifconfig\u201d Command<\/strong><\/h3>\n<p>The \u201cifconfig\u201d command in Ubuntu displays the Network Configuration details, managing the Network Configuration, and setting up network interfaces. To use the \u201cifconfig\u201d, check your network interface name. In the Network Details, look for the interface name which might be \u201c<strong>enp0s3<\/strong>\u201d or \u201c<strong>ens33<\/strong>\u201d. In our case it is \u201cens33\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"388\" class=\"wp-image-21100\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-8.png 826w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-8-300x141.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-8-768x361.png 768w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/p>\n<p>Once you know your network interface name, you can modify the IP Address using the \u201cifconfig\u201d command having the syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ifconfig<\/span> <span class=\"sy0\">&lt;<\/span>interface-name<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">&lt;<\/span>new-IP-address<span class=\"sy0\">\/<\/span>subnet<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Or you can also add the Netmask:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ifconfig<\/span> <span class=\"sy0\">&lt;<\/span>interface-name<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">&lt;<\/span>new-IP-address<span class=\"sy0\">&gt;<\/span> netmask <span class=\"sy0\">&lt;<\/span>netmask-address<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Changing the Syntax according to our network configuration, using the subnet address:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ifconfig<\/span> ens33 192.168.184.120<span class=\"sy0\">\/<\/span><span class=\"nu0\">24<\/span><\/div><\/div>\n<p>This will change our IP Address to a temporary IP Address of \u201c192.168.184.120\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"50\" class=\"wp-image-21101\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-9.png 832w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-9-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-9-768x46.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>Now changing the configuration using the netmask syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ifconfig<\/span> ens33 192.168.184.120 netmask 255.255.255.0<\/div><\/div>\n<p>This will also change the IP Address to \u201c192.168.184.120\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"76\" class=\"wp-image-21102\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-10.png 838w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-10-300x27.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-10-768x70.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/p>\n<p>Both the subnet and netmask commands change the IP address.<\/p>\n<h3><strong>Step 4: Verify New IP Address<\/strong><\/h3>\n<p>Verify your new Temporary IP Address after you\u2019ve changed it using the \u201cip addr show\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip addr<\/span> show<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"386\" class=\"wp-image-21103\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-11.png 822w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-11-300x141.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-11-768x361.png 768w\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" \/><\/p>\n<p>As you can see our IP Address has been changed.<\/p>\n<p>If you\u2019ve used the netmask command to change the IP Address, verifying will result in the same changed IP Address:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"406\" class=\"wp-image-21104\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-12.png 829w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-12-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-12-768x376.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/p>\n<h3><strong>Step 5: Reboot System<\/strong><\/h3>\n<p>To check if the IP Address is changed temporarily, reboot your Ubuntu system either using the \u201creboot\u201d command or using the GUI to restart. To reboot using Terminal, execute the \u201creboot\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">reboot<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"33\" class=\"wp-image-21105\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-13.png 823w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-13-300x12.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-13-768x31.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/p>\n<p>You can also restart your system by navigating and clicking the \u201cpower\u201d icon on the top right side of your Home Screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1632\" height=\"961\" class=\"wp-image-21106\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14.png 1632w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14-300x177.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14-1024x603.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14-768x452.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14-1536x904.png 1536w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-14-1020x600.png 1020w\" sizes=\"auto, (max-width: 1632px) 100vw, 1632px\" \/><\/p>\n<p>A drop-down menu appears having multiple options, click on the \u201cPower\u201d Icon:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"291\" class=\"wp-image-21107\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-15.png 422w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-15-300x207.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<p>This will show additional Power Options. Click on the \u201c<strong>Restart\u2026<\/strong>\u201d option to reboot your Ubuntu System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"533\" class=\"wp-image-21108\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-16.png 399w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-16-225x300.png 225w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<p>A popup window will ask for confirmation, click on \u201cRestart\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"166\" class=\"wp-image-21109\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-17.png 445w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-17-300x112.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p>This will reboot your Ubuntu System.<\/p>\n<h3><strong>Step 6: Check the Current IP Address Again<\/strong><\/h3>\n<p>Check the IP Address again once your system Reboots using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip addr<\/span> show<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"407\" class=\"wp-image-21110\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-18.png 842w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-18-300x145.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21092-18-768x371.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/p>\n<p>As you can see, the original IP Address \u201c192.168.184.131\u201d reverted back after rebooting the system. This means the IP Address only changed temporarily using the \u201cifconfig\u201d command.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Temporarily Changing the IP Address can improve the browsing privacy and overall security of the system. IP Address can be temporarily changed by providing the network interface name, temporary IP Address, and the \u201cifconfig\u201d command in the terminal. This article explained in detail the procedure to follow for changing IP Address Temporarily.<\/p>","protected":false},"excerpt":{"rendered":"<p>IP Address can be temporarily changed by providing the network interface name, temporary IP Address, and the \u201cifconfig\u201d command in the terminal. <\/p>","protected":false},"author":110,"featured_media":21438,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21092","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21092"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21092\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21438"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}