From 569da0206a6705bd8f913a3c3a1da0ebd099ee2f Mon Sep 17 00:00:00 2001 From: 姜萍 Date: Fri, 10 Apr 2020 12:49:07 +0800 Subject: Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 443ca31..bb440ce 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,18 @@ +测试一: 1. ./run_bfshell.sh -b ~/labs/super_vlan/bfrt_python/setup.py ## 测试两个sub_vlan之间ARP +方法一: 2. sudo ip addr add 192.168.1.254/24 dev veth3 3. sudo scapy 4. p = sr1(ARP(psrc='192.168.1.13',pdst='192.168.1.1')) +方法二: +5. 进入/super_vlan/pkt/目录 +6. 运行发送数据包的脚本:sudo python ./twosub_send.py ## 测试同一个sub_vlan二层通信 -5. 进入到/super_vlan/pkt/目录 -6. 运行发送数据包的脚本:sudo python ./subin_send.py \ No newline at end of file +7. 进入到/super_vlan/pkt/目录 +8. 运行发送数据包的脚本:sudo python ./subin_send.py + +测试二: +用ptf测试 +./run_p4_tests.sh -p super_vlan_test -t ~/labs/super_vlan_test/ptf -s test.(ClassName) \ No newline at end of file -- cgit v1.2.3