blob: cf55d63c2f279abab7ca152c3fa2df8c758877e6 (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
set int state tuntap-0 down
set int ip address GigabitEthernet2/1/0 1.2.3.4/24
set int state GigabitEthernet2/1/0 up
cre sub GigabitEthernet2/1/0 1 dot1q 7
set int state GigabitEthernet2/1/0.1 up
set int state GigabitEthernet2/2/0 up
cre sub GigabitEthernet2/2/0 1 dot1q 9
set int state GigabitEthernet2/2/0.1 up
loop create
set int l2 bridge loop0 0 bvi
set int ip table loop0 0
set int state loop0 up
set int l2 bridge GigabitEthernet2/1/0.1 0
set int l2 bridge GigabitEthernet2/2/0.1 0
set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1
set int l2 tag-rewrite GigabitEthernet2/2/0.1 pop 1
l2fib add 00:22:44:06:08:0a 0 GigabitEthernet2/1/0.1 static
l2fib add 00:02:04:06:08:0a 0 GigabitEthernet2/2/0.1 static
ip route table 0 8.0.0.1/32 via loop0
set ip neighbor loop0 8.0.0.1 00:02:04:06:08:0a
ip route add 1.2.3.3/32 via GigabitEthernet2/1/0 IP4: 00:15:17:61:73:47 -> 00:15:17:61:73:46
cle er
cle int
cle run
packet-generator new { \
name bvi_to_l2 \
limit 100 \
node ethernet-input \
interface GigabitEthernet2/1/0 \
data { \
IP4: 0050.56b7.7c83 -> 0050.56b7.296d \
GRE: 1.2.3.3 -> 8.0.0.1 mpls_unicast \
}
}
packet-generator new { \
name l2_to_bvi \
limit 50 \
node ethernet-input \
interface GigabitEthernet2/2/0 \
data { \
IP4: 0050.56b7.7c83 -> dead.0000.0000 vlan 9 \
GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast \
} \
}
packet-generator new { \
name l2_to_bvi_via_flood \
limit 25 \
node ethernet-input \
interface GigabitEthernet2/2/0 \
data { \
IP4: 0050.56b7.7c83 -> ffff.ffff.ffff vlan 9 \
GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast \
} \
}
|