[Click] ToDevice via a GRE tunnel
pplive
p2pnet10 at gmail.com
Sat Mar 16 15:32:10 EDT 2013
Hey,
I would like to send data via a created GRE tunnel. The .click script is:
InfiniteSource(DATA \<00 00 c0 ae 67 ef 00 00 00 00 00 00 08 00
45 00 00 28 00 00 00 00 40 11 77 c3 01 00 00 01
02 00 00 02 13 69 13 69 00 14 d6 41 55 44 50 20
70 61 63 6b 65 74 21 0a>, LIMIT 5, STOP true)
// -> Strip(14)
// -> Align(4, 0) // in case we're not on x86
// -> CheckIPHeader(BADSRC 18.26.4.255 2.255.255.255 1.255.255.255)
// -> Print(ok)
->EtherEncap(0x0800,0:0:0:0:0:1,0:0:0:0:0:2)
-> ToDevice(gre1);
Also, my ifconfig output is:
eth0 Link encap:Ethernet HWaddr 00:0e:0c:66:83:d0
inet addr:10.0.1.1 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe66:83d0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3326 errors:0 dropped:0 overruns:0 frame:0
TX packets:3907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:275022 (275.0 KB) TX bytes:3419244 (3.4 MB)
eth3 Link encap:Ethernet HWaddr 00:11:43:d6:d3:a5
inet addr:192.168.1.119 Bcast:192.168.3.255 Mask:255.255.252.0
inet6 addr: fe80::211:43ff:fed6:d3a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12654 errors:0 dropped:0 overruns:0 frame:0
TX packets:6741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1950463 (1.9 MB) TX bytes:1108595 (1.1 MB)
gre1 Link encap:UNSPEC HWaddr
0A-00-01-01-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.1.2 P-t-P:192.168.1.1 Mask:255.255.255.252
UP POINTOPOINT RUNNING NOARP MTU:1476 Metric:1
RX packets:1113 errors:0 dropped:0 overruns:0 frame:0
TX packets:1417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:63160 (63.1 KB) TX bytes:2003332 (2.0 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14743 (14.7 KB) TX bytes:14743 (14.7 KB)
I have created a point-to-point gre tunnel with some other node (gre1). The
eth0 is the data NIC and eth3 is the control NIC in Deterlab.
When I try to execute the .click file, the output is :
ToDevice(gre1): Invalid argument
ToDevice(gre1): Invalid argument
ToDevice(gre1): Invalid argument
ToDevice(gre1): Invalid argument
ToDevice(gre1): Invalid argument
It seems that ToDevice cannot send data over the created 'gre1' tunnel.
Could you please provide some method to solve it? Thanks!
Best regads,
Alex
More information about the click
mailing list