After installing CentOS you will wan’t to configure IP address. CentOSis mostly used as Server. So you will want to give it a static IP address. By default CentOS interface is configured to receive IP from DHCP server. Here I will show you how to configure static IP address in CentOS system.
H ow do I configure the Internet Protocol version 4 (IPv4) properties of a network connection with a static IP address for servers running Linux operating systems? How do I configure static IP address under Debian Linux or Redhat / RHEL / Fedora / Redhat Enterprise Linux server? You need to update and/or edit the network configuration files. Manual configuration of an IP address Instead of letting the computer obtain its IP address from the router via DHCP you can choose to manually configure the IP settings on the computer. Normally this is avoided since it can cause a few different problems unless it is handled properly by the administrator, which is you.
Make a note of the current IP address assigned to your Mac. You'll need to select a new IP address from within the private IP address range listed. More on that in a minute. Click Advanced. Select TCP/IP. The window shown below appears. From the Configure IPv4 menu, select Manually. Enter a static IP address in the IPv4 Address field. What number should you enter? Previously we showed you how to set a Static IP in Windows, and you have a Mac machine on your network, you might want to assign it a Static IP as well. Set Static IP in OS X. You will need to open System Preferences, once there open Network. It would be a good idea to to edit the Locations so that you can easily change from DHCP to manual IP simply. Use DHCP or a manual IP address on Mac An Internet Protocol (IP) address is a number that identifies each computer across the Internet or a network. When you connect to the Internet or an IP network, your computer needs an IP address. Mar 12, 2010 How do I do the equivalent of 'Start Menu - Run - cmd - ipconfig' on a Mac? MacRumors Forums. Forums Macs Mac Basics and Help. Discussion in 'Mac Basics and Help' started by ShadowX22, May 7, 2007. Most Liked Posts. Winipcfg on Windows is most commonly used to find out your current IP address. Is this what you want to do?
Configure Static IP Address in CentOS
The following steps will show configuration of static IP address in CentOS machine.
- Files needed for network configuration are under /etc/sysconfig/network-scripts. So open the file with editor like nano or vi. Here I will use nano editor. After you start your server running CentOS enter root user credentials and get in. Type the command,
# nano /etc/sysconfig/network-scripts/ifcfg-eth0 - You will see default configuration like this,
- Now change the configuration to this,
- Then save the file, to save press ctrl+x to exit and press y for confirmation.
- Now restart the network services by issuing the command,
[root@hostname~]# service network restart - To verify the IP address issue the following command,
[root@hostname~]# ifconfig
You will then see following information, - After configuring IP address now let’s configure DNS. Name server or DNS information is stored in different file. The location is, /etc/recolv.conf. Again using nano editor to configure DNS information,
[root@hostname~]# nano /etc/resolv.confBy default, this file is empty, so enter at least one entry here,
[root@hostname~]# ping www.google.com
nameserver 4.2.2.2
The name server IP address can be different depending on your network scenario. I will use www.google.com. Now save the file and exit. You can test the configuration by issuing ping command.If you get the reply, you have successfully configured the IP address and DNS information.
You may also like -
- How to Disable Windows Update using Group Policy - June 27, 2019
- Backup Exchange Mailboxes to PST with Iperius Backup - April 1, 2017
- Understanding Basics of EIGRP Routing Protocol - March 26, 2017
In Windows, ipconfig is a console application designed to run from the Windows command prompt. This utility allows you to get the IP address information of a Windows computer. It also allows some control over active TCP/IP connections. Ipconfig replaced the older winipcfg utility.
Using ipconfig
From the command prompt, type ipconfig to run the utility with default options. The output of the default command contains the IP address, network mask, and gateway for all physical and virtual network adapters.
The ipconfig command supports several command line options. The command
displays the set of available options.
Ipconfig /all
This option displays the same IP addressing information for each adapter as the default option. Additionally, it displays DNS and WINS settings for each adapter.
Ipconfig /release
This option terminates any active TCP/IP connections on all network adapters and releases those IP addresses for use by other applications. Ipconfig/release can be used with specific Windows connection names. In this case, the command affects only the specified connections, not all connections. The command accepts either full connection names or wildcard names. Examples:
Ipconfig /renew
This option re-establishes TCP/IP connections on all network adapters. As with the release option, ipconfig /renew takes an optional connection name specifier.
Mac Manual Ip Config Server
Both /renew and /release options only work on clients configured for dynamic (DHCP) addressing.