Friday, February 24, 2012

linux route add

[root@ashok020 root]# cat /etc/sysconfig/network-scripts/route-eth0
10.1.0.0/22 via 10.2.0.1

[root@ashok020 root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.2.0.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
10.1.0.0 10.2.0.1 255.255.252.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.2.0.24 0.0.0.0 UG 0 0 0 eth0

[root@ashok020 root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=10.2.3.53
NETMASK=255.255.252.0
GATEWAY=10.2.0.24

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...