banner



How To Configure Static Ip In Windows 7

Configuring a static IP address for your Linux distribution is a fundamental job and should be completed in few easy steps. With the release of RHEL 8 public beta, you can now configure your network interface in a few different means using NetworkManager utilities.

In this tutorial we are going to show you lot few different ways to set a static IP address on RHEL 8 installation. Note that this commodity presumes, that you lot already know the network settings that you lot wish to utilize for your organization.

1. How to Configure Static IP Using Network Scripts Manually

You can configure a static IP address the onetime fashioned fashion past editing:

/etc/sysconfig/network-scripts/ifcfg-(interface-name)        

In my case the file is named:

/etc/sysconfig/network-scripts/ifcfg-enp0s3        

To find your network interface name, yous can use the following nmcli command.

# nmcli con        
Find Network Interface Name in RHEL 8
Find Network Interface Proper noun in RHEL 8

To edit the file simply use your favorite editor and open up the file:

# vim /etc/sysconfig/network-scripts/ifcfg-enp0s3        

ifcfg-enp0s3 Configuration

Type="Ethernet" BOOTPROTO="none" Proper name="enp0s3" IPADDR="192.168.xx.150" NETMASK="255.255.255.0" GATEWAY="192.168.20.i" DEVICE="enp0s3" ONBOOT="aye"        

Then restart the NetworkManager with:

# systemctl restart NetworkManager        

Alternatively, you can reload the network interface by using:

# nmcli con down enp0s3 && nmcli con up enp0s3        

Now you lot tin and so cheque the new IP address using ip command equally shown.

# ip a show enp0s3        
Check IP Address on RHEL 8
Bank check IP Accost on RHEL 8

ii. How to Configure Static IP Using Nmtui Tool

Another way to configure static IP accost for your RHEL eight is by using nmtui tool, is a text user interface (TUI). To employ information technology just blazon the following control in your concluding.

# nmtui        

This is volition launch the program:

Network Manager Interface
Network Manager Interface

Cull to edit a connectedness, then select the interface:

Select Network Interface
Select Network Interface

In the next window you will be able to edit the network interface settings past moving the cursor with the arrow keys on your keyboard:

Configure IP Address on RHEL 8
Configure IP Address on RHEL 8

In this case, I accept changed my IP accost from 192.168.xx.150 to 192.168.20.160. To save the changes ringlet downwards to the end of the page and select OK.

And so reload the network interface past choosing "Activate a connection":

Active Network Interface
Active Network Interface

And so choose the connection name and select <Deactivate>:

Deactivate Network Interface
Deactivate Network Interface

And at present select <Activate> to activate the interface with the new settings you have given it.

Activate Network Interface
Actuate Network Interface

Then select <Dorsum> to return to the main carte and then select "Quit" to leave.

Quit Network Manager
Quit Network Manager

Verify that the new IP address settings have been applied with:

# ip a show enp0s3        
Verify IP Address
Verify IP Accost

3. How to Configure Static IP Using Nmcli Tool

Nmcli is a NetworkManager command line interface that can exist used for obtaining information or configuring a network interface.

If you want to set up a static IP address, you lot can use the following options:

Set the IP address for interface enp0s3 on RHEL 8.

# nmcli con mod enp0s3 ipv4.addresses 192.168.20.170/24        

Set up the gateway on RHEL viii:

# nmcli con mod enp0s3 ipv4.gateway 192.168.twenty.1        

Inform the interface that it is using manual configuration (not dhcp etc.).

# nmcli con mod enp0s3 ipv4.method transmission        

Configure DNS:

# nmcli con mod enp0s3 ipv4.dns "8.8.8.eight"        

Reload the interface configuration:

# nmcli con up enp0s3        
Nmcli Command Examples
Nmcli Control Examples

Your changes will be saved in /etc/sysconfig/network-scripts/ifcfg-.

Here is the configuration file that has been generated for me:

# true cat /etc/sysconfig/network-scripts/ifcfg-enp0s3        

ifcfg-enp0s3 Configuration

TYPE="Ethernet" BOOTPROTO="none" Proper name="enp0s3" IPADDR="192.168.20.170" NETMASK="255.255.255.0" GATEWAY="192.168.20.1" DEVICE="enp0s3" ONBOOT="aye" PROXY_METHOD="none" BROWSER_ONLY="no" PREFIX="24" DEFROUTE="aye" IPV4_FAILURE_FATAL="no" IPV6INIT="no" UUID="3c36b8c2-334b-57c7-91b6-4401f3489c69" DNS1="8.8.8.8"        
Conclusion

In this tutorial you accept seen how to configure a static IP address with network scripts, nmtui and nmcli utilities in RHEL 8. If you have whatever questions or comments, please do non hesitate to submit them in the comment section beneath.

If You Capeesh What We Do Here On TecMint, Y'all Should Consider:

TecMint is the fastest growing and well-nigh trusted customs site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what yous are reading, please consider buying united states a coffee ( or 2 ) as a token of appreciation.

Support Us

Nosotros are thankful for your never ending support.

Source: https://www.tecmint.com/set-static-ip-address-in-rhel-8/

Posted by: shawocked2001.blogspot.com

0 Response to "How To Configure Static Ip In Windows 7"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel