Advertisement
teknoraver

veth vlan

Oct 1st, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. root@fedora1:~# ip addr
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. inet 127.0.0.1/8 scope host lo
  5. valid_lft forever preferred_lft forever
  6. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
  7. link/ether 52:54:00:f0:e9:cc brd ff:ff:ff:ff:ff:ff
  8. inet 192.168.124.189/24 brd 192.168.124.255 scope global dynamic eth0
  9. valid_lft 2335sec preferred_lft 2335sec
  10. 3: veth0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  11. link/ether 42:d7:e1:59:87:4a brd ff:ff:ff:ff:ff:ff link-netns peer
  12. 4: vlan5@veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  13. link/ether 42:d7:e1:59:87:4a brd ff:ff:ff:ff:ff:ff
  14. inet 10.0.0.1/8 brd 10.255.255.255 scope global vlan5
  15. valid_lft forever preferred_lft forever
  16.  
  17. root@fedora1:~# ip -n peer addr
  18. 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
  19. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  20. 2: veth0p@if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  21. link/ether 2a:cf:78:a7:50:1f brd ff:ff:ff:ff:ff:ff link-netnsid 0
  22. inet6 fe80::28cf:78ff:fea7:501f/64 scope link
  23. valid_lft forever preferred_lft forever
  24. 3: vlan5@veth0p: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  25. link/ether 2a:cf:78:a7:50:1f brd ff:ff:ff:ff:ff:ff
  26. inet 10.0.0.2/8 brd 10.255.255.255 scope global vlan5
  27. valid_lft forever preferred_lft forever
  28. inet6 fe80::28cf:78ff:fea7:501f/64 scope link
  29. valid_lft forever preferred_lft forever
  30.  
  31. root@fedora1:~# iperf3 -c 10.0.0.1
  32. Connecting to host 10.0.0.1, port 5201
  33. [ 5] local 10.0.0.2 port 39662 connected to 10.0.0.1 port 5201
  34. [ ID] Interval Transfer Bitrate Retr Cwnd
  35. [ 5] 0.00-1.00 sec 5.90 GBytes 50.7 Gbits/sec 0 523 KBytes
  36. [ 5] 1.00-2.00 sec 5.85 GBytes 50.2 Gbits/sec 0 556 KBytes
  37. [ 5] 2.00-3.00 sec 5.93 GBytes 51.0 Gbits/sec 0 556 KBytes
  38. [ 5] 3.00-4.00 sec 5.90 GBytes 50.6 Gbits/sec 0 584 KBytes
  39. [ 5] 4.00-5.00 sec 5.94 GBytes 51.0 Gbits/sec 0 614 KBytes
  40. [ 5] 5.00-6.00 sec 5.91 GBytes 50.8 Gbits/sec 0 648 KBytes
  41. [ 5] 6.00-7.00 sec 5.96 GBytes 51.2 Gbits/sec 0 648 KBytes
  42. [ 5] 7.00-8.00 sec 5.88 GBytes 50.5 Gbits/sec 0 648 KBytes
  43. [ 5] 8.00-9.00 sec 5.96 GBytes 51.2 Gbits/sec 0 648 KBytes
  44. [ 5] 9.00-10.00 sec 5.96 GBytes 51.2 Gbits/sec 0 648 KBytes
  45. - - - - - - - - - - - - - - - - - - - - - - - - -
  46. [ ID] Interval Transfer Bitrate Retr
  47. [ 5] 0.00-10.00 sec 59.2 GBytes 50.8 Gbits/sec 0 sender
  48. [ 5] 0.00-10.04 sec 59.2 GBytes 50.6 Gbits/sec receiver
  49.  
  50. iperf Done.
  51.  
  52. root@fedora1:~# ethtool -K veth0 tso off gso off gro off
  53. root@fedora1:~# ip netns exec peer ethtool -K veth0p tso off gso off gro off
  54. root@fedora1:~# ip netns exec peer iperf3 -c 10.0.0.1
  55. Connecting to host 10.0.0.1, port 5201
  56. [ 5] local 10.0.0.2 port 39674 connected to 10.0.0.1 port 5201
  57. [ ID] Interval Transfer Bitrate Retr Cwnd
  58. [ 5] 0.00-1.00 sec 1.43 GBytes 12.3 Gbits/sec 0 266 KBytes
  59. [ 5] 1.00-2.00 sec 1.41 GBytes 12.2 Gbits/sec 27 327 KBytes
  60. [ 5] 2.00-3.00 sec 1.43 GBytes 12.3 Gbits/sec 0 327 KBytes
  61. [ 5] 3.00-4.00 sec 1.43 GBytes 12.3 Gbits/sec 0 327 KBytes
  62. [ 5] 4.00-5.00 sec 1.42 GBytes 12.2 Gbits/sec 0 327 KBytes
  63. [ 5] 5.00-6.00 sec 1.43 GBytes 12.3 Gbits/sec 0 327 KBytes
  64. [ 5] 6.00-7.00 sec 1.43 GBytes 12.3 Gbits/sec 0 327 KBytes
  65. [ 5] 7.00-8.00 sec 1.42 GBytes 12.2 Gbits/sec 0 328 KBytes
  66. [ 5] 8.00-9.00 sec 1.42 GBytes 12.2 Gbits/sec 0 328 KBytes
  67. [ 5] 9.00-10.00 sec 1.43 GBytes 12.3 Gbits/sec 0 366 KBytes
  68. - - - - - - - - - - - - - - - - - - - - - - - - -
  69. [ ID] Interval Transfer Bitrate Retr
  70. [ 5] 0.00-10.00 sec 14.3 GBytes 12.3 Gbits/sec 27 sender
  71. [ 5] 0.00-10.04 sec 14.3 GBytes 12.2 Gbits/sec receiver
  72.  
  73. iperf Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement