Linux : Basic Network Configuration , Set ip,eth0,gateway,netmask Temporarily or Permanent
For latest Redhat Linux OS versions, we can configure network in few steps. There are two types of methods are there for network configuration Temporary: In which IP temporarily will be assigned to Ethernet card, and will gone across reboot or network restart. Permanent: In which network configuration will be set permanently (in config files), so will be consistent across the reboot or network restart. We will see both types here, before that we will need few things kinda prerequisite as below: Sample Set-up Scenario : Linux Static TCP/IP Settings IP address: 192.168.1.50 Netmask: 255.255.255.0 Hostname: UL_SERVER Gateway IP: 192.168.1.1 Display All interfaces ( Including Disabled Interfaces ) # ifconfig -a Dislplay only Active/Enable Ineterface #ifconfig Disable and Enable an Interface # ifconfig eth0 down # ifconfig eth0 up Method 1 - Temporary Netwok Setup Assign ip-address to an Interface and set netmask and broa...