• Increase font size
  • Default font size
  • Decrease font size

What is linux

How to Add an IPv6 route through an interface in linux

 

Not often needed, sometimes in cases of dedicated point-to-point links.

Using "ip"

Usage:

# /sbin/ip -6 route add /

dev ¬ metric 1

Example:

# /sbin/ip -6 route add 2000::/3 dev eth0 metric 1

Metric “1” is used here to be compatible with the metric used by route, because the default metric on using “ip” is “1024”.

Using...

 

Cacti:CS121 SNMP/Web Adapter host template

 CS121 SNMP/Web Adapter host template

Personal experience: 
Remember to increase the timout of the SNMP per CS121 in Device properties. Those adapters are responding with a big delay hitting 2000ms. 
If you won't Cacti will drop all responds and some graphs might not repond as should be.  cacti_host_template_ups_-_cs121.xml  Description: CS121 SNMP/Web...

 

Cacti:Advanced Ping Template Version 1.3 for Cacti 0.8.6g

 I have revised the Advanced Ping Template to version 1.3. In this new version, I have added the following: 

1) Ability to ping using either ICMP, TCP, or UDP protocols 
2) Ability to choose the port number to ping (TCP, UDP) 
3) Improved timeout logic so that you don't get gaps in your graph when a host in not available. 
4) Improved Ping.php by using socket_select call whose timeout syntax is consistent between various PHP OS platforms 
5) Cleaned up the Template that was causing...

 

Fedora / Red Hat Domain Resolution Configuration Files

  File: /etc/resolv.conf - host name resolver configuration file 


search name-of-domain.com - Name of your domain or ISP's domain if using their name servernameserver XXX.XXX.XXX.XXX - IP address of primary name servernameserver XXX.XXX.XXX.XXX - IP address of secondary name server This configures Linux so that it knows...

 

Red Hat/Fedora/CentOS:TCP/IP Network Configuration Files

  File Description /etc/resolve.conf List DNS servers for internet domain name resolution /etc/hosts Lists hosts to be resolved locally (not by DNS) /etc/nsswitch.conf List order of host name search. Typically look at local files, then NIS server, then DNS server....

 

How to Set up a SUSE Linux 10 host name and DNS addresses

 To set up the host name of the SUSE Linux 10 machine and the addresses of your Domain Name System servers, select the Host name and name server button. A screen like that shown in Figure 1-24 appears.

The host name of your SUSE Linux 10 machine can be anything you like, such as a person's name, a descriptive name, or something random. The only thing that you have to bear in mind is that the host name and domain name can contain only letters and numbers as well a hyphen or an underscore...

 

How to set linux timezone

1、Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the current timezone.2、Change to the directory /usr/share/zoneinfo here you will find a list of time zone regions. Choose the most appropriate region, if you live in Canada or the US this directory is the "America" directory.3、If you wish, backup the previous timezone configuration by copying it to a different...

 

How to set DNS server with SUSE Linux 10.0

 What is the Domain Name System(DNS? The DNS is the glue that keeps the Internet together. DNS translates domain name(example.com) to an IP address and vice versa. It's much easier for us to remember names than numbers.

DNS is defined in Request for Comments (RFCs) 1034 and 1035.

Basically, any major Linux distro can be used as a DNS, Web, E-mail, and FTP server, and Suse is not an exception. All in one box and one static IP address. That's all you need! Of course, I am talking about an...

 

How To Get NTP Started on linux

 You have to restart the NTP process every time you make a change to the configuration file for the changes to take effect on the running process.

To get NTP configured to start at boot, use the line:

[root@bigboy tmp]# chkconfig ntpd on

To start, stop and restart NTP after booting, follow these examples:

[root@bigboy tmp]# service ntpd start[root@bigboy tmp]# service ntpd stop[root@bigboy tmp]# service ntpd restart

Testing And Troubleshooting NTP

After configuring and starting NTP...

 

How To Configure Ntp On Red Hat

 on server

# yum install ntp
# chkconfig ntpd on
# vi /etc/ntp.conf
add a line
restrict default ignore
restrict 20.51.1.5 mask 255.255.255.248 
server 202.54.1.5
(Replace 202.54.1.5 and mask with actual remote ISP or ntp.org NTP server IP. Save and close the file.)
then client configuration
#vi /etc/ntp.conf 
add a line like
server
restrict mask
#iptables -F
#ntpdate -b
now all is done
 
More Articles...