No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 65.1%
  • P4 34.9%
Find a file
2020-04-18 21:44:06 +08:00
bfrt_python 0410 commit 2020-04-10 12:02:56 +08:00
p4src 0418 commit 2020-04-18 19:01:36 +08:00
pkt 0410 commit 2020-04-10 12:02:56 +08:00
ptf 0418 commit-3 2020-04-18 21:44:06 +08:00
.DS_Store 0418 commit-2 2020-04-18 21:42:44 +08:00
README.md Update README.md 2020-04-10 12:49:07 +08:00

测试一:

  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二层通信

  1. 进入到/super_vlan/pkt/目录
  2. 运行发送数据包的脚本sudo python ./subin_send.py

测试二: 用ptf测试 ./run_p4_tests.sh -p super_vlan_test -t ~/labs/super_vlan_test/ptf -s test.(ClassName)