Difference between revisions of "Red Hat"

From vwiki
Jump to navigation Jump to search
(Initial creation)
 
m (Added Subscriptions)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
# Restart server networking to apply
# Restart server networking to apply
#* <code>/etc/init.d/network restart</code>
#* <code>/etc/init.d/network restart</code>
'''Example <code>ifcfg-eth''x''</code> file...'''
<pre>
DEVICE=eth0
NM_CONTROLLED="yes
ONBOOT=yes
BOOTPROTO=static
PEERDNS=no
IPADDR=10.3.0.144
NETMASK=255.255.255.0
</pre>
See [[Troubleshooting_(Ubuntu)#No_NIC|No NIC]] if you've changed the NIC (eg due to a VMware clone)
== Updates ==
* Update server
** <code> yum update </code>
* Get installed package version
** EG <code> rpm -q openssl </code>
== Subscriptions ==
subscription-manager list
[[Category:Linux]]

Latest revision as of 13:57, 14 April 2014

Change IP Settings

You need to update the following configuration

  1. Network interface(s)
    • EG for eth0 update /etc/sysconfig/network-scripts/ifcfg-eth0
  2. Default gateway and hostname
    • /etc/sysconfig/network
  3. DNS servers
    • /etc/resolv.conf
  4. Restart server networking to apply
    • /etc/init.d/network restart

Example ifcfg-ethx file...

DEVICE=eth0
NM_CONTROLLED="yes
ONBOOT=yes
BOOTPROTO=static
PEERDNS=no
IPADDR=10.3.0.144
NETMASK=255.255.255.0

See No NIC if you've changed the NIC (eg due to a VMware clone)

Updates

  • Update server
    • yum update
  • Get installed package version
    • EG rpm -q openssl

Subscriptions

subscription-manager list