Thanks.. I copy /pasted this in to script on its own and ran and it works fine - but it doesnt seem to complete... it doesnt return to command line unless I CTRL-C
Do you know why this is? is there something missing to end the for loop?
-----Post Update-----
Quote:
Originally Posted by ghostdog74
just use 2 for loops
Actually - this doesnt appear to work as I had hoped.
ie. If my start ip was 192.168.1.1 and end was 192.168.2.4 then in the script above i <=1 and j<=4 so I only get the following listed
So everything before 192.168.1.4 and 192.168.2.1 is missing....
-----Post Update-----
Quote:
Originally Posted by frustrated1
Thanks.. I copy /pasted this in to script on its own and ran and it works fine - but it doesnt seem to complete... it doesnt return to command line unless I CTRL-C
Do you know why this is? is there something missing to end the for loop?
-----Post Update-----
Actually - this doesnt appear to work as I had hoped.
ie. If my start ip was 192.168.1.1 and end was 192.168.2.4 then in the script above i <=1 and j<=4 so I only get the following listed
## A1 list
a1ipaddnumb=$a1ipadd
while [ $a1ipaddnumb -le 254 ]
do
echo "194.20.$a1subnet.$a1ipaddnumb"
a1ipaddnumb=$(($a1ipaddnumb+1))
done
## Any list between A1 and B1
xsubnet=$(($a1subnet+1))
if [ $xsubnet -lt $b1subnet ]
then
while [ $xsubnet -lt $b1subnet ]
do
xipaddnumb=1
while [ $xipaddnumb -le 254 ]
do
echo "194.20.$xsubnet.$xipaddnumb"
xipaddnumb=$(($xipaddnumb+1))
done
xsubnet=$(($xsubnet+1))
done
fi
## B1 list
b1ipaddnumb=1
while [ $b1ipaddnumb -le $b1ipadd ]
do
echo "194.20.$b1subnet.$b1ipaddnumb"
b1ipaddnumb=$(($b1ipaddnumb+1))
done
Hi All,
I'm hoping one of you helpful lot could come up with a way I can do the below. I've been trying to think how is best but have struggled to come up with a way.
I have a list of IP addresses in the below format
1.1.1.1
102.1.2.3
102.102.1.10
102.102.102.1
I need to compare... (4 Replies)
Hi all,
I want to make this nw diagram:
Small NW ---(eth1)-- Linux iptables --(eth0)---LAN NW
And with these requirements:
1. Allow only 1 Mac address aa-aa-aa-aa-aa-aa from Small NW to LAN NW
2. Allow list of Mac addresses from LAN NW access to Small NW
What will I... (2 Replies)
Hello,
I got a list of IP address from which I would like to remove the duplicates. I cat the file and pipe it to uniq -u or uniq -c, I got the same output with all the duplicates. Can anybody please tell me how I can remove the duplicates IPs from this file? This is what I used.
cat filename |... (3 Replies)
Hi there
I lost connectivity to one of our remote systems and when I checked the messages log I found the following:
Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s
Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1
Aug 16 13:20:51 host... (9 Replies)
Hi guys,
I got one problem which I definetily no idea.
What would the physical address be for virtual address?
1) 2ABC
2) 3F4B
Here is the page table:see attached
Thank you sos sososososso much!! (0 Replies)
:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message:
PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14
KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD)
EAX=EF822000... (10 Replies)
Hello,
Here is my problem. there are two files.
first.txt <<< contains email address
======
abc@mail.com
abd@mail.com
abe@mail.com
second.txt <<< contains webpage links
========
http//www.test.com/abc/index.html
http://www.test.com/abd/index.html
http://www.test.com/abe/index.html... (2 Replies)
Hi sir,
i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address.......
but i'm nt getting that how i can pass the MAC address to Frame........
Please give me an idea for making such program...
Thanks & regards
Krishna (3 Replies)
say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on?
And could you explain how to get the answer?
thanx in advance! (7 Replies)