Packet forwarding is the process relaying of packets from one network segment to another by nodes in a computer network. It can easily be implemented in CentOS 6.4 by enabling the following option in /etc/sysctl.conf file as follows : # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding [root@dhcppc13 ~]# net.ipv4.ip_forward = 1 The above file can be opened in any editor (vim,nano,etc) preferred by the user. User can confirm the settings as below : [root@dhcppc13 ~]# /sbin/sysctl -p The sample output is : warning: /etc/sysctl.conf(7): invalid syntax, continuing... net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmax = 68719476736 kernel.shmall = 4294967296
Tuesday, September 10, 2013
Posted by Navneet Sharma at 11:11 PM
Thursday, September 5, 2013
When the system is repaired from using backup like data dump or TAR it may result in overwriting of master boot record (MBR).
Thus, user needs to repair the bootstrap area before booting the system. Re-installation of bootstrap code (GRUB) can be
performed in following steps : => Boot the system from CentOS 6.4 installation disc. The above procedure results in boot menu from which select “Rescue installed system” => Filesystems are mounted in read-write mode. => The root user is changed to real root on the hard disk using following command : #chroot /mnt/sysimage Now Re-install bootstrap code (GRUB) as: To re-install GRUB to the MBR on SCSI or SATA disk (/dev/sda) #grub-install /dev/sda To re-install GRUB to the partition boot record (PBR) of Partition ,for example , second partition of SCSI or SATA disk (/dev/sda2) # grub-install /dev/sda2 To re-install GRUB to the MBR on An IDE disk (/dev/hda) # grub-install /dev/hda To re-install GRUB to the MBR on a HP Smart disk (/dev/cciss/c0d0): # grub-install /dev/cciss/c0d0
Posted by Navneet Sharma at 3:52 AM