≡ Menu

centos linux

Q. How do I know when I need to update my Linux system? How do I know new patches are available for CentOS Linux (Red Hat) / Debian Linux server system?
[click to continue…]

Q. Why do the other virtual network interfaces go down when I bring down eth0:0 under CentOS Linux?
[click to continue…]

How do I use yum command to update and patch my Red hat Enterprise Linux / CentOS Linux version 5.x server via RHN / Internet? Can I use up2date command under RHEL 5?
[click to continue…]

Q. Why does my yum command fail with an error that a repo is listed more than once under Fedora / RHEL / CentOS Linux? This error occurs when I type yum clean command

Loading "rhnplugin" plugin
Loading "security" plugin

Repository xen-repo is listed more than once in the configuration

How do I fix this problem?

[click to continue…]

Q. My RHEL / CentOS Linux 4.x virtual network interfaces go down when I bring down eth0:0. How do I fix this issue?
[click to continue…]

I need help with a cron job. A automatic ftp backup will pickup sql.tar.gz and upload to remote ftp server under CentOS Linux. How do I automate entire procedure to upload file /tmp/backup/sql.tar.gz?
[click to continue…]

Red Hat / CentOS Linux Setting a Default Gateway

Q. How do I setup up a default Gateway for all interfaces (eth0 and eth1) under CentOS Linux 5?

A.There are different ways to setup TCP/IP hosts so that you can reach to remote destinations. The simplest one is to setup default gateway by modifying the /etc/sysconfig/network

Setup a default Gateway

Open /etc/sysconfig/network file:
# vi /etc/sysconfig/network
Setup GATEWAY={Router-IP}, if router IP is 74.86.49.129, type:
GATEWAY=74.86.49.129
Save and close the file. Here is my complete file:
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=wan.nixcraft.in
GATEWAY=74.86.49.129

You need to restart networking service:
# /etc/init.d/networking restart