steps to reproduce a TC rule error

1.
/workspace/cloud_tools/configure_asap_devtest_env.sh

2.
export CONFIG=/workspace/dev_reg_conf.sh

3.
ifconfig enp0s8f0 1.1.1.1
arp -s 1.1.1.2 aa:bb:dd:aa:bb:cc
arp -s 1.1.1.3 dd:bb:dd:aa:bb:cc

4.
ip link add vxlan1 type vxlan id 98 dev enp0s8f0 dstport 4789
tc qdisc add dev enp0s8f0_0 ingress
tc filter add dev enp0s8f0_0 protocol 802.1Q pref 2 chain 0 parent ffff: \
        flower vlan_id 10 vlan_prio 0 \
        dst_mac 68:54:ed:00:3f:7e \
        src_mac e4:68:02:00:08:02 \
        vlan_ethtype ip ip_proto icmp \
        ip_tos 0/3 \
        ip_ttl 64/ff \
        dst_ip 3.3.3.13 \
        action tunnel_key set src_ip 1.1.1.1 dst_ip 1.1.1.2 \
        id 8914036 \
        dst_port 4789 \
        nocsum ttl 64 pipe \
        action vlan pop pipe \
        action mirred egress redirect dev vxlan1 \
        action tunnel_key set src_ip 1.1.1.1 dst_ip 1.1.1.3 id 50 dst_port 4789 \
        nocsum ttl 64 pipe \
        action pedit ex munge ip ttl set 63 pipe action mirred egress redirect dev vxlan1
tc filter show dev enp0s8f0_0 protocol 802.1Q pref 2 chain 0 parent ffff:
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章