How to change the IP of an Oracle Linux OS 6.X server

Share this post on:

First you need to login in and get a terminal. The su – to root and cd to the /etc/sysconfig/network-scripts directory

image

This is where the network configuration files are;

image

Eth0 is the ethernet port that is used for server access, we will vi the config file ifcfg-eth0; “vi ifcfg-eth0”

image

and then your in the editor, where you edit the file.

clip_image003

  • BOOTPROTO is either dhcp or static, dhcp is used when dynamically assigning the IP address
  • IPADDR is the IP Address when statically defined
  • NETMASK is the network mask, usually 255.255.255.0 for most home networks
  • GATEWAY is the default gateway
  • DNS1 is the DNS server
  • DNS2 is the secondary DNS server

Once the new IP information is set, you can restart the network service to use the new configuration

“service network restart”

image

Assuming there are no errors, your new network configuration will be live.

Author: admin

Erik is currently an Oracle ACE Director and VP of Enterprise Transformation at Mythics, serving as a lead strategist for Federal, State and Local Government and Commercial customers throughout the United States. These customer engagements include enterprise cloud transformations, data center consolidation and modernization efforts, Big Data projects and implementations of Oracle Engineered Systems. He is a board member of the DC metro area National Capital Oracle User Group, a board member of the Independent Oracle Users Group (IOUG), Cloud Computing Special Interest Group (SIG) and he is actively involved with the Oracle Enterprise Manager SIGs. Erik presents frequently at conferences, including Oracle OpenWorld, Oracle FedForum, COLLABORATE and other user groups and conferences around the United States. He has worked with Oracle and Sun Systems since the mid 90s, and is experienced with most of the core Oracle technologies.

When not flying to the far points of the country from the Atlanta Metro area, he enjoys spending time with his family at their observatory, where the telescopes outnumber the people.

View all posts by admin >

3 Comments

  1. Wow! Thank you for this tips! It’s great that you have included a screenshot along with an instruction.

  2. you forgot to mention that you also need to change the IP in the /etc/hosts file. This may trip up a few people.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.