nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Script for IFCONFIG tht PING with destination ip address in same format

This is a discussion on Script for IFCONFIG tht PING with destination ip address in same format within the Shell scripting forums, part of the Development/Scripting category; I want a script that should ping with the same ip address format in kernel. Unix Shell script needed for ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-31-2008, 03:53 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 3
Rep Power: 0
pooppp is on a distinguished road
Default Script for IFCONFIG tht PING with destination ip address in same format

I want a script that should ping with the same ip address format in kernel.

Unix Shell script needed for below question:

insmod ./xge.ko
ifconfig ethxxx 1.1.1.1 up
ifconfig ethxxx down
rmmod xge

src
ifconfig eth2 2.2.2.4 up
ping 2.2.2.5

dst
ifconfig eth3 3.3.3.4 up
ping 3.3.3.5

In above, if the second parameter of ifconfig is eth2 & corresponding ip is 2.2.2.4 it should ping with 2.2.2.5 like tht...I need script for tht...Plz help me
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to install tar format software in RHEL 4.0 mannrj45 Linux software 8 09-26-2007 06:57 PM
script to ping + date dendi_rm Shell scripting 3 09-11-2007 11:42 AM
how to change the format of multiple files in different directories dustcloud4 Shell scripting 0 06-05-2007 04:03 AM
Linux how do I change IP address with ifconfig command chiku Linux software 1 12-07-2006 09:47 PM
freebsd ifconfig alias up ioctl siocaifaddr file exists erro ZigZag All about FreeBSD/OpenBSD/NetBSD 1 12-23-2005 05:49 PM


All times are GMT +5.5. The time now is 02:11 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36