diff options
| author | 姜萍 <[email protected]> | 2020-04-10 12:49:07 +0800 |
|---|---|---|
| committer | 姜萍 <[email protected]> | 2020-04-10 12:49:07 +0800 |
| commit | 569da0206a6705bd8f913a3c3a1da0ebd099ee2f (patch) | |
| tree | 623cc85540f00ec92d9885a637036416fd1fb95b | |
| parent | 11f30017086bec9feff546608deea2a1ad6b10a9 (diff) | |
Update README.md
| -rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |
