Linux

Bridging

What is a bridge? A bridge acts just like a having an ethernet switch connected across two ethernet cards (NIC). Packets can flow in any direction as needed, intelligently, based on what MAC addresses are present on each network. What that means is that packets will only be echoed (or bridged across) to the other interface when that destination MAC address is on network (this is the same functionality provided by an ethernet switch, rather than...

Read More

Configuring VLANs Under Fedora/RHEL/CentOS

The configuration of VLANs under FC/RHEL/CentOS is something that I always end up looking in the “ifup” script and experimenting around with. This is made worse by there being two different conventions that can be used for the interface naming. Here’s how I set up VLANs. First of all, the base interface needs to be configured. Usually, it’s already got at least a stub file, which needs to be modified to have the following...

Read More

Force fsck on the next reboot or boot sequence

Force fsck on boot using /forcefsck By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check. Login as the root: $ su - Change directory to root (/) directory: # cd / Create a file called forcefsck: # touch /forcefsck Now reboot the system: # reboot Force fsck on next boot using shutdown command The -F option force fsck on reboot, login as root and type the following command to reboot and...

Read More

Basic disk quota management for an OpenVZ VPS

To set disk space, run the following commands: vzctl set CTID --diskspace $SoftLimit$:$HardLimit$ --save Example: [host-node]# vzctl set 101 --diskspace 6G:7G --save You could verify the space available with this command (ieĀ : CTID =101) [host-node]# vzctl exec 101 df -h If you want remove disk quota: DISK_QUOTA=no This is also possible via this...

Read More

Adjusting RAM for an OpenVZ VPS

  64MB Guaranteed, 128MB Burstable cid=1000 vzctl set ${cid} --vmguarpages 64M --save vzctl set ${cid} --oomguarpages 64M --save vzctl set ${cid} --privvmpages 64M:128M --save 256MB Guaranteed, 512MB Burstable cid=1000 vzctl set ${cid} --vmguarpages 256M --save vzctl set ${cid} --oomguarpages 256M --save vzctl set ${cid} --privvmpages 256M:512M --save 512MB Guaranteed, 1024MB Burstable cid=1000 vzctl set ${cid} --vmguarpages 512M...

Read More

How To Speed Up WordPress

Looking for tips and tricks on how to speed up your WordPress blog? wp-config.php is one of the WordPress configuration file which you can leverage to optimize the performance. One of the option to speed up your WordPress is install W3 Total Cache plugin. W3 Total Cache is better than WP Super Cache plugin as it provides more option for caching such as page and SQL query caching together with CDN platform. Although you have W3 Total Cache plugin...

Read More