-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvlan-data.zeek
58 lines (47 loc) · 1.5 KB
/
vlan-data.zeek
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
##! Information about VLANs, mapping VLAN ID to the expected IP Address range and location information
# Reservoir Labs Inc. 2017 All Rights Reserved.
module VLANLocation;
export {
## Location/IP subnet information corresponding to each VLAN
type vlandata: record {
## Human readable description for the VLAN
description: string &log;
## Expected IPv4 subnet information if available.
ipv4net: subnet &log &optional;
## Expected IPv6 subnet information if available
ipv6net: subnet &log &optional;
## Location information for the VLAN if applicable eg Building East, First Floor etc
location: string &log &optional;
## give a tag of Buiding name or direction
area: string &log &optional;
field: string &log &default="unknown";
};
global vlanlist: table[int] of vlandata = table() &redef;
}
# This must be customized to each environment
redef vlanlist += {
[100] = [
$description="north",
$ipv4net=10.2.0.0 / 24,
$ipv6net=[2001:0468:1f07:000b::] / 64,
$location="north",
$field="#1 jiaoxue"],
[101] = [
$description="south",
$ipv4net=10.12.0.0 / 24,
$ipv6net=[2001:0468:1f07:000c::] / 64,
$location="south",
$field="#2 jiaoxue"],
[102] = [
$description="west",
$ipv4net=10.16.0.0 / 24,
$ipv6net=[2001:0468:1f07:000d::] / 64,
$location="west",
$field="#3 jiaoxue"],
[103] = [
$description="east",
$ipv4net=10.10.0.0 / 24,
$ipv6net=[2001:0468:1f07:f00e::] / 64,
$location="east",
$field="#4 jiaoxue"]
}