Skip to main content

Set the static IP for fedora or redhat


I believe friends who have used Linux Fedora/redhat know that it is easy to set a fixed network in the GUI, but they don't know how to modify it in the text mode. 
Setting a static IP for the Fedora system has the advantage of not using DHCP to assign an IP. 
It is easier to find the computer you want, especially in a large network. It is most convenient to set a static IP for the computer. 
The static IP network address is the most suitable setting for SERVER.
The method as below:
1. open terminal,and input su - switch to root privileges

2. input ifconfigCheck which port is currently being used(port), and remember the HWaddr address for next step: 


3. Modify with this command
vi /etc/sysconfig/network-scripts/ifcfg-eth0

4. mainly modify the content as below:
DEVICE = eth2  <-- STEP2 mentioned PORT NUMBER
HWADDR = 00:0C:29:1D:00:00  <-- STEP2 motioned LAN card address
ONBOOT = yes 
IPADDR = 192.168.1.2
BOOTPROTO = none
NETMASK = 255.255.255.0
GATEWAY = 192.168.1.1
TYPE = Ethernet
DNS1 = 192.168.1.10
DNS2 = 192.168.1.11

5. save the file with this command:
:wp

6. and then restart the computer or input the command /etc/init.d/network reload to reload the network configuration to finish the job.

Done

Comments

Popular posts from this blog

Change the Outlook Email Size via Google App Sync

 If you are using the google Business or School Gmail account, you may also using the Outlook to sync the Gmail. However, you may find that some emails are missing such as the emails can not show more than one month's emails. If you encounter this issue, please note that it is because the google App Sync is not configure correctly. Please follow me to do a simple change to achieve sync more email from Gmail to your outlook client.

install VMware vCenter Server 6.5 step by step

I recently recorded the steps when I tried to install VMware vCenter Server, version 6.5.   if there is any mistake, please correct me. Thank you

Fix google chrome crash issue

Have you encounter google chrome crash when you open the google chrome? Is it happened in Windows 10? Have you tried to recover the windows but can not work? Have you tried to reinstall the Google chrome few times but still not working? If the answer is yes, please tried to follow the procedure as below: It may the best solution when you fixed the problem without reformat your windows. Windows 10: press the key sequence   Win + R type regedit in the window that opens and press Enter   click  Yes to start the program navigate to the registry keys as below   Computer\HKEY_LOCAL_MACHINE\ Software\Policies\ Google \ Chrome If not exist, you can create it. Right Click,  New --> Key and rename it with the right value name right click on the right side of the resource explorer, New -->   DWORD (32-bit) Value Rename the variable with:    RendererCodeIntegrityEnabled    re-open google Chrome...