Archive for the ‘networking’ Category

Sending packets out of incoming interface

It is desirable, in some circumstances on a server with multiple NIC’s to send outgoing traffic on incoming interface. In order to do so the server has to have policy routing implemented. Let’s assume that the server is running CentOS 6 and that there are two network interfaces as follows: eth0 – with gateway […]

Posted on September 3, 2017 at 10:39 by somedude · Permalink · Leave a comment
In: centos, linux, linux tips, networking, redhat, Uncategorized

Completely disabling IPv6 in RedHat

I was looking to disable IPv6 across bunch of servers. And not in some adhoc way. This in one of those “note to myself” posts. I was dealing with RedHat 5 and 6 servers. For RedHat 5: [root@vm-prd-007 ~]# echo “alias net-pf-10 off” >> /etc/modprobe.conf [root@vm-prd-007 ~]# echo “options ipv6 disable=1” >> /etc/modprobe.conf [root@vm-prd-007 ~]# […]

Posted on February 27, 2013 at 16:02 by somedude · Permalink · Leave a comment
In: centos, linux, linux tips, networking, redhat

SecureFTP rename bug?

Not so long ago I was looking into a bash script that used SFTP‘s rename command to move file on a remote server from one directory to another. No matter what, the script would always fail with an error from SFTP, that went something like “Unable to rename file”. The same script worked just fine […]

Posted on September 30, 2012 at 20:29 by somedude · Permalink · 3 Comments
In: centos, linux, linux tips, networking, redhat

Viewing and changing speed and duplex in Solaris

Depending on version of Solaris and the hardware it’s running on, you will either use ndd utility or use kstat or dladm commands to change speed and duplex. Remember that for example, e1000g driver will let you manipulate settings using dladm in Solaris 10, but you will not be able to do so using ndd. […]

Posted on July 28, 2011 at 11:46 by somedude · Permalink · Leave a comment
In: networking, solaris, solaris tips

Finding out length of a UTP cable using Cisco IOS

Well, this is just cool. Everyone has been there; sitting at a Cisco switch console wondering how long the unmarked UTP plugged into port 17 is… Thankfully Cisco IOS might be able to tell you: core# test cable-diagnostics tdr interface gigabitethernet0/17 Unfortunately it’s not available on all switches. I dug this up on here Cisco […]

Posted on January 5, 2010 at 12:21 by somedude · Permalink · 2 Comments
In: cisco, ios, networking