- Opening Hours : Mon - Fri: 8am - 5pm

- +1 909-481-0093 Talk to us
- [email protected] Drop us a line
- 105 Roosevelt Street CA Find us


How To Change Your IP Address Using The Ifconfig Command
Most Linux distributions make it very easy to change your IP address using a graphical user interface. However, if you’re more comfortable using the command line, you can use the “ifconfig” command to change your IP address. This article will show you how to change your IP address using the “ifconfig” command.
In the network administrator role, Linux machines may need to be managed on a variety of subnets. To find your IP address right now, use the IP command with the a option. Some of your computers will require a new IP address if you switched from a DHCP server to static IP addressing . Using network utilities on Linux, for example, does not imply that your IP configuration is preserved when you restart the operating system. If your network configuration already exists, you must update it by copying it to /etc/network/interfaces or manually creating it. You must restart your networking service (managed by ifupdown) to apply the changes. It is a one-of-a-kind tool that enables you to change connections, devices, and connectivity settings (even wireless) via a variety of utility tools.
In order to change our IP address, we’ll need to use one of these utilities, codenamed NMCLI. If you use the nmcli tool, the changes you make will not be retained after multiple reboots. The network icon can be found at the top right of your screen and displays network parameters. To modify a connection, go to your network settings and click the gear wheel next to it. Networking is usually managed by the Network Manager and ifupdown. It is possible, however, to declare interfaces in /etc/network/interfaces without affecting the networkmanager settings.
How Do I Change My Eth0 Ip Address In Linux?

By using the “ifconfig” command followed by the name of your network interface and the new IP address, we can modify the IP address in Linux. Ifconfig, for example, is 192.168. 255.255 has a netmask of 100. If 255.0 is selected, a new IP address of 192.168 will be created.
An interface is a device that allows for the communication of devices on a computer network. Each of a computer’s network interfaces has its own IP address. The ifconfig command is the most convenient way to change an IP address in Linux. You can use a VPN (Virtual Private Network) to do so in the best way possible. The ip command can also be used to change your Linux IP address. This method is more advanced than others, allowing it to be used indefinitely. There is a directory named /etc/sysconfig/network-scripts in the /etc/sysconfig/network- Change the IPADDR field in the ifcfg- eth0 file with your text editor to match your preferred file.
The netmask in Linux is used to determine which IP addresses are on which network your computer is connected to. Using the domain name of a website, you can easily find a public IP address. Private IP addresses, on the other hand, are far more difficult to locate, owing to the use of special software and tools.
How Assign Ip Address To Ifconfig In Linux?

The ifconfig command can be used to assign an IP address to a network interface in Linux. The syntax for this command is “ifconfig [interface] [IP address]”. For example, to assign the IP address 192.168.0.1 to the eth0 interface, the command would be “ ifconfig eth0 192.168.0.1″.
Using Linux, this wikiHow teaches you how to add an IP address to your computer. When an IP address is assigned to an item, there is no danger of it having trouble connecting. Terminal is the command line component that serves as the foundation for all Linux distributions. Terminal can be opened in a variety of ways depending on your Linux version. When you’re finished typing vi, press the *Enter key. The properties of the network can be found in the Vi editor. For each value, change the following: Netmask, Gateway, and DNS. A specific Linux distribution may necessitate you to go through a different process for assigning an IP address.
Ifconfig is a program that uses the following syntax. This information is accessed through the interface. One of the following arguments can be used as an interface. This question shall be answered only if the answer is eth1. If the interface name does not specify an active interface, ifconfig displays its status as active. Assume an interface argument of eth0, for example, and the following command assigns it an IP address of 192.168.1.1. By pressing the eth0 key, you can get to 192.168.1.1. The following command, on the other hand, would also turn off the interface. I’d like to set the kernel to eth0 ifconfig is used. The command to which the following command is directed will list the addresses that have been assigned to eth0: The configuration for this file is as follows: ifconfig eth0 By following the command above, you can now add 192.168.1.5 to eth0: Ifconfig eth0 should be set to 192.168.1.5. Using the following command, you can see the route to 192.168.11. Ifconfig eth0 route is 192.168.1.1. Using the following command, you can delete the 192.168.1.5 address from eth0: The 192.168.1.5 ip address should be assigned to eth0 ifconfig is not set.
How To Configure Your Computer To Obtain An Ip Address Automatically
In order to obtain an IP address via DHCP, configure your computer with the following command: To perform an IP release, you must configure it via IPconfig. By doing so, you will be able to see the current IP configuration. To renew your computer’s DHCP lease , enter the following command: ipconfig /renew is the configuration for the Ubuntu Linux operating system. You will need to renew your DHCP lease in order to assign a new IP address to your computer.
How To Change Ip Address In Linux Command Line
If you want to change your IP address in Linux, there are a few different ways that you can do it. One way is to use the command line. To do this, you will need to open a terminal window. Once you have done this, you will need to type in the following command: “ifconfig”. This will bring up a list of all of the network interfaces on your computer. Find the one that is connected to the internet and look for the line that says “inet addr”. The number next to this is your IP address. To change it, you will need to type in the following command: “ifconfig [interface] [new IP address]”.
In most cases, your router’s DHCP server dynamically assigns IP addresses to your network interface. The only way to change your system’s IP address is to use the Ubuntu graphical user interface. In Ubuntu, it is possible to assign routes, put up or down interfaces, and do other things using the “ip” command. Automatic DHCP is the default software. Your system supports IPv4. The details tab on your network interface displays an updated list of network information. Netplan is a network management tool that is available in Ubuntu. In this article, you’ll learn how to use the netplan utility in Ubuntu to change your IP address.
Linux Ip Address Command
Assuming you would like a paragraph on the Linux ip address command : The Linux “ip address” command is used to manipulate the network configuration of a network device. The command can be used to add, remove, or change the attributes of an IP address. The “ip address” command can also be used to display the status of a network device.
Linux users can use the Linux command line utility IP to display or configure networking, routing, and tunnel configurations. The ifconfig command is now deprecated and no longer compatible with modern Linux distributions, replacing the old good command. It is critical to remember that the commands described below must be executed carefully. A server will no longer be able to connect to you if you make a mistake. The ip command defaults to setting the default broadcast address if it is not explicitly requested. In some cases, special symbols such as + and – can be used instead of the broadcast address if the host bits are set or reset. After you have defined the protocol, you can delete or remotely disable an IPv4/IPv6 address by using one-to-one tunneling.
You can delete the IP address by using the flush command. It is possible to set the maximum transmission unit (MTU) size for gigabit networks at JumboFrames. The following syntax should be followed to modify the device eth0’s MTU from 0 to 9000. This is the set of an IP packet: the protocol address is eth0, the network protocol is eth9, and the list protocol is eth9. In the command, you specify some conditions that will cause the neighbor or ARP tables to be flushed. The ip command can be used to route a route. The MAC address of a Linux network interface card (NIC) can be changed as follows.
The alias command can be used to create a permanent alias on Linux. The following man pages can be found by following the steps below: command. ip -help -whatsapp
How To View Ip Information For A Particular Interface
By typing the following command into a command line, you can browse IP addresses for specific interfaces. You can use the following configuration: ipconfig/all. The interface will be presented in this manner, which includes all data about the interface, such as the IP address, subnet mask, default gateway, and DNS servers.
Linux Config File For Ip Address
Each network interface is assigned a separate configuration file that stores IP addresses and other network settings. The configuration files for all of these networks are located in /etc/sysconfig/network-scripts.
In Linux, configuring a static IP can be difficult because it is not the same as it is in other operating systems because the version and distribution are different. This article will walk you through the process of performing this on the most popular Linux distributions. In Ubuntu version 17, Netplan, a YAML-based configuration system, is used to configure the network. You can use it to assign your IP address, netmask, gateway, and DNS all at once. Both Ubuntu and CentOS users can now use the new command ip to generate a static IP address . The simplest network information can also be accessed using ip rather than ipconfig. You can perform the commands by using an ip IP addr, which is either shorter and more efficient or by using ip IP show… One command will display all interfaces (the other will display only the IP address).
Travis is a programmer who writes about programming and delivers related news to readers. He is knowledgeable and experienced, and he enjoys sharing his knowledge with others.

How To Delete Ip Address In Linux Using Ifconfig?
- June 6, 2022
- No Comments
The following command will add data addresses to the IPMP group: Ifconfig ipmp-interface addif ip-address. When removing an IPMP address, use the following command: # ifconfig IPMP-interface removeif ip-address.
Table of contents
How do i delete an ip address, how clear ip address in linux, how do you delete an ifconfig entry, how do i manually remove my ip address, how do i reinstall an ip address, how do i get rid of an ip address, what happens when you reset ip address, can an ip be reused, how do i clear all ip addresses, can you clear an ip address, what is ip addr flush, how do you delete an interface, how do i remove a virtual ip address, how do i delete a network in linux, what happens if i manually change my ip address, what happens if you release your ip address.
- Select the Addresses tab.
- To determine the network for an IP address, you must first select it.
- Select a few IP addresses you want to delete from the drop-down menu.
- You can delete your items from the Edit menu by selecting Delete.
- When you select Delete From Hosts Table, the names of the hosts in the hosts table are deleted automatically.
- If you want to remove an IPv4 address, use the following command: ifconfig interface -alias address. interface is the name of the interface.
- Ifconfig. If the interface inet6 -alias IPv6_address is a valid address for an IPv6 address, the following command should be used to remove it.
Ifconfig eth0:0 down is used to delete an alias interface. It is important to note that aliases can be deleted for every scope (for example, the same net with an address/netmask combination) unless the primary (primary) aliases are deleted first.
- Open Settings.
- Go to the Network tab.
- Then, choose Ethernet or Wi-Fi.
- By selecting Edit, you can change the ip assignment setting .
- The edit ip settings drop-down menu provides an option for Automatic (DHCP).
Then, in the Startup menu, type cmd (without quotes) and then click OK, followed by ipconfig /release. After the prompt has returned, type ipconfig /renew into the IPCONFIG field (without quotes). To close the window, press Enter, then type exit (without quotes) followed by hit Enter.

- Download the free avast secureline vpn for Android, iOS, and Mac.
- AVAST SECURELINE VPN is available for download for Windows, Mac OS X, iOS, and Android.
- INSTALL AVAST SECURELINE VPN.
- You can install Bitdefender SECURELINE VPN on your computer, Mac, PC, or Android device.
Changing your IP address temporarily shuts down all internet-connected services or programs on your device. It won’t harm you in any way, but it will make your Wi-Fi feel useless. It is possible that Spotify will go down.
An IP address can be recycled, and one organization or individual may receive the same address more than once, as shown in Figure 1. An IP address can only be applied to a single device or a network adapter, but it can also be recycled.
You cannot clear your IP address once it has been hosted by a third-party website. Because there is no ownership of the data produced by an Internet user, once it is logged in, it is completely in the hands of corporations (or, in some cases, private individuals).

IP addresses are flushed against the protocol address system. The protocol addresses that should be flushed are those that have been chosen based on a few criteria. As with the previous command, show has the same arguments. There is an exception to this rule: it does not run when no arguments are provided. This command (as well as other flushes discussed below) is extremely dangerous.
- Under Network, select Interfaces.
- Select the interface.
- To complete the deletion, press the delete button and then click ‘Yes’ in the confirmation dialog box.
Ifconfig can be used to configure the settings. It is used to remove virtual interfaces and network aliases that are not linked. Ifconfig is used to configure network interface paths in a kernel-resident computer. At boot time, a user interface is configured that serves as the foundation of the interface.
- To open the wireless settings, go to the top right corner of the screen and click the wireless icon, then click the tool icon, followed by the settings icon.
- Now that Wi-Fi settings have been enabled, you should be able to access them.
- A small window should appear, with the Details tab automatically showing up.
- Now that the network has been removed, the connection has been terminated.
Changing your IP address will temporarily disrupt any internet-connected services or programs that you are using on your device. If you lost your Wi-Fi temporarily, you’ll see the same effect as if you’ve lost it for good.
If you want to deactivate your router’s IP address, make sure you specify that you want to deactivate it as well. This means that all of the devices connected to the router will be unable to access the internet because the router routes this internet connection to them.
Watch How To Delete Ip Address In Linux Using Ifconfig Video

I’m a content writer who has eight years of experience creating compelling articles and short stories. I’m continuously searching for new topics and stories to capture the attention of new readers. With my knowledge and experience, I can help you fulfill your content creation goals.
How To Export Display In Linux
How to use xming to display linux graphics on windows 10.
Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.

Change IP address permanently with ifconfig in Debian
I know there are several tutorials on how to manually change IP settings. However, I have yet to find a solution that fits my needs. I need to be able to script something that changes the IP address settings of a host machine. I have tried /sbin/ifconfig eth0 192.168.0.5 netmask 255.255.255.0; /sbin/route add default gw 192.168.0.1 .
This solution works until the machine is rebooted. I have tried running the scripted solution at @reboot by crontab from root. However, the settings do not take effect. I have noticed too that /etc/network/interfaces settings do no change after making ifconfig calls.
Is there a way to change IP address settings using ifconfig so that the settings do not change on reboot?
5 Answers 5
You likely have your machine set to DHCP at boot...
Then add in your settings... Mine looks like this:
Save and do:
Now your IP address is static and won't change after reboot.
- there is no sysconfig in etc in debian in 2019... debian 9 – dinar qurbanov May 1, 2019 at 15:47
The solution I am currently using is to put said commands in /etc/rc.local . It is tested and this option is found to work.
- if anyone stumbles in here as me - on an openSuse environment this should /etc/rc.d/boot.local – Nuno Furtado Mar 31, 2016 at 12:44
In order to change your ip address using ifconfig, and have it survive a reboot, you must do the following:
- ifconfig eth0 down
- ifconfig eth0 192.168.1.242
- ifconfig eth0 up
- Then in the upper right hand side of the screen, click on your connection settings icon and click 'connect'. You should be good to go.
This literally just happened to me. I remembered it happening a long time ago and when I saw the first answer posted to this thread, I know I didn't go through that long process before. After some quick reading I realized you must pull eth0 down before re-assigning it, otherwise the connection isn't broken and the ip change won't survive a reboot.
In debian9 stretch I face same issue that after reboot ip changes automatically to DHCP even if IP set as static in /etc/networking/interface as a static. In debin 9 I found
file look like
and chenged to
In my S390 Debian, changing /etc/network/interfaces did the job. Ifconfig made temporary change until the next system restart.
Your Answer
Sign up or log in, post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged debian ifconfig or ask your own question .
- The Overflow Blog
- Developers think AI assistants will be everywhere, but aren’t sure how to...
- Visible APIs get reused, not reinvented sponsored post
- Featured on Meta
- We've added a "Necessary cookies only" option to the cookie consent popup
- The Stack Exchange reputation system: What's working? What's not?
Hot Network Questions
- How could I reply to this email from potential supervisor?
- Short film involving a young man who has died and is performing good deeds to score enough points to reach Heaven
- Asking a shaila - not looking for a psak
- Is this SQL Procedure "injection proof"?
- How much technical / debugging help should I expect my advisor to provide?
- Measure a PWM signal with an oscilloscope
- Ethernet speed at 2.5Gbps despite interface being 5Gbps and negotiated as such
- How to find when a SQL Server setting was changed?
- Can I wait airside at Melbourne (MEL) until midnight before passing immigration?
- 14 "Trashed" bikes acquired for free. Worth repairing and reselling? What do I look for?
- Did mechanical hard drives often malfunction in high elevation places such as Bogota?
- Is there a RAW or optional rule for how a player could discover what type of skill check needs to be made?
- What is the most air-tight substance an organism can produce?
- How to draw horizontal lines for working in overleaf
- Tolkien's art - Lake Mithrim
- Value of resistor clarification
- What's the earliest fictional work of literature that contains an allusion to an earlier fictional work of literature?
- This is a fun little word puzzle based on a fun little number puzzle
- Where is the extra hour? Eurostar London to Paris is 2hr 30m but departure is 3hrs 30m before arrival
- Why should the ten lepers return to give glory to God?
- What's the best word to indicate "not mindless"?
- Tools/techniques to remove a long section from a wooden board
- Is there a "Standard Algorithm" language, as used in academic papers?
- Theoretical Computer Science vs other Sciences?
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
change IP address with ifconfig
Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Changing IP Address in terminal
I am trying to change my IP address using terminal commands.
When I use ifconfig 10.10.10.134 netmask 255.255.255.0 I can change the IP address and can still connect to my network (I can ping other devices), but I can no longer connect to the internet. Is there something else I should be doing, or even a different command I should be using?
- 1 You'll need to give us more details about your network and why you want to change your IP, before we have any chance of giving helpful advice. ifconfig should be enough, but you can also use ip(8) . – Henrik supports the community Jun 14, 2016 at 15:42
- 1 In particular, the routing table before and after might be informative. – thrig Jun 14, 2016 at 15:56
- What was your IP address and netmask previously (i.e. when you could connect to the rest of the Internet)? What is current output of netstat -rn ? – roaima Jun 14, 2016 at 16:25
- This is probably a question to be referred to the guy who runs your firewall / NAT device. – hymie Jun 14, 2016 at 17:24
- netstan -rn gives me this – xtremelampshade Jun 14, 2016 at 17:47
As stated by @Henrik you can use ifconfig , but you should use the newer ip command from the iproute2 package if it is available on your system (it will have the same effect).
while <interface> is the interface where the IP shall be added
To be able to access the internet your routing must be setup correctly, normally those routes are handled by the dhcp-client . If you have a static IP, you have to setup the default-gateway manually.
You can check your routing table with:
which will print out the routing table, and should look something like this:
In most circumstances the internet is accessed using a default-gateway entry:
while default stands for 0.0.0.0/0 matching any IP address. This will cause all traffic to be routed to the router with IP 10.0.2.2 if the target IP address is not matched by any of the more specific routes as shown in the example above.
To add a default-gateway enter:
- <router-IP> is the IP address of the next gateway in your network
- <interface> is the interface where you are connected to the network
Now to use the DNS system you may also have to add nameservers manually.
In linux those are specified in /etc/resolv.conf , edit the file manually and add your nameservers, as shown in the example below with google nameservers:
or by simply entering:
- I considered giving you -1 for misspelling my name :-( – Henrik supports the community Jun 15, 2016 at 15:18
- @Henrik I am sorry for misspelling your name. – rda Jun 15, 2016 at 16:49
Your Answer
Sign up or log in, post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged ifconfig or ask your own question .
- The Overflow Blog
- Developers think AI assistants will be everywhere, but aren’t sure how to...
- Visible APIs get reused, not reinvented sponsored post
- Featured on Meta
- We've added a "Necessary cookies only" option to the cookie consent popup
- The Stack Exchange reputation system: What's working? What's not?
Hot Network Questions
- Why should the ten lepers return to give glory to God?
- Mixing liquids in bottles
- Identify part and how/where to order it from
- After move, baby grand always sustained notes, pressed or not pressed
- How long to carry sort?
- Why does Mathematica take so long to produce this sound?
- Why are accelerator beam neutrino experiments built an angle off the beam direction?
- What is the most air-tight substance an organism can produce?
- How can I improve the colour of my red wine mousse?
- Are we estimating the Bernoulli parameter in Logistic Regression?
- Fantasy novel where magic has a cost and it transforms a female character into a monster
- Display properties of a country, from online service
- How can I make the rules of my Faerie Portal free from contradiction?
- Is this SQL Procedure "injection proof"?
- Did mechanical hard drives often malfunction in high elevation places such as Bogota?
- Training for driving on the left in the UK
- What do we call a group of people who holds hostage for ransom?
- In the movie Ratatouille, did Linguine have a legally legitimate reason to fire Skinner?
- Is it legal for a company to require you to delete your account to unsubscribe from marketing emails?
- are there any non conventional sources of law?
- How to find when a SQL Server setting was changed?
- How many types of Pralayas are there?
- Asking a shaila - not looking for a psak
- Tools/techniques to remove a long section from a wooden board
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
How to know Ip Address In Linux
Ifconfig for viewing and setting ip address in linux, sharing buttons:.
00:00 here we have three Linux machines set up
00:02 in VirtualBox our client a router and a
00:05 server let's learn a little bit about
00:07 some Linux networking commands starting
00:10 with I of conflict my virtual network or
00:14 my network between those Linux machines
00:17 inside VirtualBox is shown in this
00:19 picture where the client and the router
00:21 on some virtual LAN met a the router and
00:25 server on a separate land net B and I've
00:29 been set up and that IP addresses are
00:31 allocated to different interfaces
00:33 there's also an interface on each of
00:37 those Linux machines so that they have
00:39 real internet access via VirtualBox and
00:43 by my real PC so let's look at the
00:48 client first and we'll use ifconfig to
00:54 see information about my interface
00:57 configuration so my network interface
01:00 configuration when we run I have config
01:03 on its own it shows me the list of
01:06 interfaces which are enabled or turned
01:09 on or referred to by I have configured
01:11 up up and running and it shows there are
01:15 three e n p0 s 3e n p0 s8 and hello
01:21 loopback interface if we just change the
01:28 font to be a little bit larger we can
01:32 see that in a bit more depth and we can
01:38 scroll through so for each interface I
01:42 have conflict shows us some information
01:44 about that interface and we'll look at
01:47 one of those in depth in a moment we can
01:50 pass in one of the interface names as an
01:54 option
01:54 I have concrete P n p0 s8 I know
02:00 exists and it shows me the details for
02:02 that interface so what does it tell me
02:06 we'll go through some of this
02:08 information it tells me this is an
02:10 Ethernet interface it has a hardware
02:13 address or a MAC address of this
02:15 particular value and since we're using
02:19 VirtualBox that is actually a sign by
02:21 VirtualBox in a real computer that would
02:26 be the address assigned to your Mac or
02:28 your LAN card we have an ipv4 address
02:32 and Internet address 192 168 1.11 and
02:36 associated broadcast address and network
02:39 mask for that ipv4 address in my case
02:42 these were set up when the machine
02:45 booted from a different location we can
02:48 also manually set them using ifconfig
02:50 and other processes I have an ipv6
02:55 address although it's not a global
02:58 address it's a link local address and
03:00 that's been allocated automatically
03:02 we're not going to touch ID v6 at this
03:05 stage we will later state a bit of
03:08 information about the status of the
03:10 interface it is up up means it's it's
03:12 turned on it's running it supports
03:15 broadcast multicast and has a maximum
03:18 transmission unit of 1500 bytes some
03:24 statistics about how many packets have
03:27 been received and transmitted on this
03:29 interface collisions are queue length
03:31 and the bytes received and transmitted
03:34 so some basic information about your
03:37 interface and some statistics can only
03:39 be obtained using ifconfig when we run
03:45 our configured shows all up interfaces
03:48 in the main page by our config it's got
03:52 several options and we can read through
03:56 one of them we'll use commonly as - a so
04:00 I have country - a shows us all
04:03 interfaces those that are pup and also
04:06 down now in this case it is no different
04:11 all of my interfaces are actually up but
04:14 if there were something two phases which
04:15 were not up which were down then they
04:17 would be shown when we use ifconfig - a
04:22 so we'd use I have conflict to show
04:24 interface configuration we can also use
04:28 it to change interface configuration for
04:33 example we can turn it into face up or
04:37 down just clear that I have five Big E
04:41 and p0s a is my end of one of my
04:45 interfaces if I want to turn it down
04:47 I can type the option come up down
04:51 noting that if we want to make changes
04:53 to the network configuration we'd need
04:55 to have administrator rights so I
04:56 proceed that with sudo and ask my
05:01 password which I have and now I run fire
05:04 config it lists en p0 s 3 which is up my
05:09 loopback interface which is up and it
05:11 doesn't miss en p0 s 8 it's down if I
05:16 add the - a option all it does include
05:20 EMP 0 s 8 and it's not listed as up and
05:25 running here whereas the first one was
05:27 up here we don't list up so MPs in p0 s
05:32 8 is down is not turned on we cannot use
05:35 it when you turn it back up
05:39 as you know yes
05:44 it's now up and running so we can turn
05:48 an interface off if we don't need it and
05:51 turn it back on if it wasn't originally
05:53 off you can also make changes to the
05:58 addresses used by the interface I'm
06:00 currently using the address 192 168 1
06:03 dot 11 clear that we can change the
06:07 interface configuration at the end
06:09 please your hesitate and we can share
06:13 set the address
06:15 let's say 1.12 and i should specify the
06:19 netmask and it's good practice when you
06:25 change the address to make sure the
06:28 interfaces up it's not needed but I'll
06:30 include it at the end to say let's if it
06:34 was down before let's turn it up it was
06:36 up before then it makes no difference
06:42 and we know that we've now changed the
06:45 IP address of that interface so we can
06:49 change the configuration link interface
06:51 using ifconfig as well as view basic
06:54 information we will see if we go to our
07:00 router it's just another quick example I
07:07 have config on the router quite simply
07:13 it shows us that we have three Ethernet
07:15 interfaces than that interface and then
07:19 it's because it's a router on network a
07:20 and that would be it has en p0 s 8 and e
07:24 MP 0 s 9 and different IP addresses and
07:29 the loopback interface is for testing
07:32 purposes normally for communicating with
07:34 yourself to send yourself with the local
07:37 loopback address of 127.0.0.1
07:43 so I have configured a quick way to view
07:46 interface information and to make
07:48 changes to the IP address for the
07:50 interface
Other suggestions:


IMAGES
VIDEO
COMMENTS
By using the “ifconfig” command followed by the name of your network interface and the new IP address, we can modify the IP address in Linux. The ifconfig command can be used to assign an IP address to a network interface in Linux
The following command will add data addresses to the IPMP group: Ifconfig ipmp-interface addif ip-address. If you want to remove an IPv4 address, use the following command: ifconfig interface -alias address
dhcp6:no address: 192.168.10.13/24 gateway4:192.168.10.1. nameservers:addresses: 142.55.100.25
I have noticed too that /etc/network/interfaces settings do no change after making ifconfig calls. In order to change your ip address using ifconfig, and have it survive a reboot, you must do the following
does not change the address of my machine on RedHat 6.2. should be easy way and ifconfig should work. Thanks for your help
As stated by @Henrik you can use ifconfig, but you should use the newer ip command from the iproute2 package if it is available on your system (it will have the same effect).ip addr add 10.10.10.134/24 dev