shared-exp.ns 686 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#
# NS file to create the shared node pool. 
#
source tb_compat.tcl
set ns [new Simulator]

set vhost1 [$ns node]
tb-set-node-os $vhost1 FEDORA15-OPENVZ-STD
tb-set-node-sharingmode $vhost1 "shared_local"
10
$vhost1 set-fw-style "basic"
11
12

set vhost2 [$ns node]
13
tb-set-node-os $vhost2 XEN43-64-STD
14
tb-set-node-sharingmode $vhost2 "shared_local"
15
$vhost2 add-attribute xenvifrouting yes
16
$vhost2 set-fw-style "closed"
17

Leigh B Stoller's avatar
Leigh B Stoller committed
18
set vhost3 [$ns node]
19
tb-set-node-os $vhost3 XEN43-64-STD
Leigh B Stoller's avatar
Leigh B Stoller committed
20
tb-set-node-sharingmode $vhost3 "shared_local"
21
$vhost3 add-attribute xenvifrouting yes
22
$vhost3 set-fw-style "closed"
Leigh B Stoller's avatar
Leigh B Stoller committed
23

24
25
tb-fix-node $vhost1 pc1
tb-fix-node $vhost2 pc2
Leigh B Stoller's avatar
Leigh B Stoller committed
26
tb-fix-node $vhost3 pc3
27
28
29

$ns rtproto Static
$ns run