How to setup dhcp with multiple scoops on single nic card

Nov-26th-2010

Hi, I have added 3 networks on single nic card. And it works for me. [root@map007~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:1C:C0:9E:58:94 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::21c:c0ff:fe9e:5894/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:207456 errors:0 dropped:0 overruns:0 frame:0 TX packets:153054 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:70309118 (67.0 MiB) TX [...]

shell script to get the time difference

Nov-22nd-2010

Shell Script to get time difference or time duration of the process… Here is your script. [root@map007 ~]# vim gettime.sh #!/bin/bash START=$(date +%s) # Start your programme ls -a > /tmp/test.txt ls -Ra >> /tmp/test.txt cat /tmp/test.txt END=$(date +%s) # Time Difference DIFF=$(( $END – $START )) echo “Time Taken :- $DIFF sec.” [root@map007 ~]# [...]