File: mkalias-de0

package info (click to toggle)
hammerhead 2.1.3-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 704 kB
  • ctags: 588
  • sloc: cpp: 4,782; sh: 2,794; makefile: 240; perl: 41; csh: 11
file content (13 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# Simple csh script to add a bunch of aliases which
# hammer can use to simulate lots of different machines connecting.
#

set mick=1

while ($mick != 255)
  ifconfig de0 alias 10.0.1.$mick netmask 255.255.0.0
  ifconfig de0 alias 10.0.2.$mick netmask 255.255.0.0
  @ mick += 1
end