Wednesday, March 1, 2017

Setting a Static IP for Red Hat Enterprise Linux Server

  To set a static Ip in Red Hat Enterprise Linux Server follow the steps below:

  • Open a terminal 
  • run this command to change directory to list network interfaces
    • cd /etc/sysconfig/network-scripts/
    • ls

  • We need to edit the network interface file starting with ifcfg-enolxxxx. To be able to edit the file, first we need to run su. Run these commands:
    • su
    • gedit ifcfg-eno16777736


  • Change these parts accordingly and save it:
        IPADDR=192.168.1.201
        GATEWAY=192.168.1.1
        DNS1=192.168.1.227



0 comments:

Post a Comment