ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up. You can also bring a specific network up(on) or down(off) eg: ifconfig eth0 up. ifconfig eth0 down. Using Virtual IP Addresses with ifconfig. Another rather useful way of using ifconfig is to add virtual IP addresses, which are just secondary IP addresses that are added to a network card. sudo ifconfig eth1 up. Similarly, you can disable an active network interface using the down keyword. For instance, to disable the wireless network interface wlan0, use the command: sudo ifconfig wlan0 down Configuring an interface. ifconfig can be used at the command line to configure (or re-configure) a network interface. This is often ifconfig [interface-name] For example: Q4. How to disable or enable a network interface using ifconfig? To do this, just specify the 'down' or 'up' flags. For example, to disable an interface dubbed eth0, use the ifconfig command in the following way: ifconfig eth0 down. Similarly, to enable, use the following command: ifconfig eth0 up Q5. Jan 05, 2018 · To change the settings, you also use the ifconfig command, this time with a few additional parameters. The following command changes the network interface named “eth0” to use the IP address 102.168.0.1, and assigns the subnet mask 255.255.255.0: sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 Jul 07, 2017 · Furthermore, you can set devices up or down (similar to ifconfig eth0 up or ifconfig eth0 down) simply by using: ip link set DEVICE up or ip link set DEVICE down As shown above, there are lots of other objects that can be interacted with using the ip command.

Change IP Address using ifconfig. On modern distributions, the “ifconfig” command has been completely deprecated and it is now advised to use the “ip” command. However, you should still be able to use the “ifconfig” to change your IP address. $ which ifconfig /usr/sbin/ifconfig

The ifconfig eth0 up command on most Linux systems can be abbreviated to ifup eth0.The same holds true for deactivating an interface, so that ifconfig eth0 down can be abbreviated as ifdown eth0

Dec 20, 2019 · answered as: What is the difference between ifconfig and iwconfig in Unix? It is time for the OP to learn to use the UNIX [code ]man[/code](1) command and look up the differences with the commands: [code ]man ifconfig[/code] and [code ]man iwconfi