Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PS1='\h($(ip netns identify))\$ '
- matteo-desktop()# speedtest --simple
- Ping: 4.627 ms
- Download: 671.62 Mbit/s
- Upload: 187.43 Mbit/s
- matteo-desktop()# speedtest --simple
- Ping: 4.548 ms
- Download: 688.31 Mbit/s
- Upload: 187.31 Mbit/s
- matteo-desktop()# speedtest --simple
- Ping: 3.885 ms
- Download: 640.42 Mbit/s
- Upload: 175.78 Mbit/s
- matteo-desktop()# ping -q -c100 -i.1 192.168.85.1
- PING 192.168.85.1 (192.168.85.1) 56(84) bytes of data.
- --- 192.168.85.1 ping statistics ---
- 100 packets transmitted, 100 received, 0% packet loss, time 10871ms
- rtt min/avg/max/mdev = 0.261/0.466/0.562/0.078 ms
- [VETH]
- matteo-desktop()# ip link add veth0 type veth peer name veth1
- matteo-desktop()# brctl addif br0 veth0
- matteo-desktop()# ip netns add veth
- matteo-desktop()# ip link set veth1 netns veth
- matteo-desktop()# ip netns exec veth /bin/bash
- matteo-desktop(veth)# ifconfig veth1 192.168.85.101
- matteo-desktop(veth)# ip ro add default via 192.168.85.1
- matteo-desktop(veth)# speedtest --simple
- Ping: 4.067 ms
- Download: 489.23 Mbit/s
- Upload: 187.48 Mbit/s
- matteo-desktop(veth)# speedtest --simple
- Ping: 4.709 ms
- Download: 462.48 Mbit/s
- Upload: 179.38 Mbit/s
- matteo-desktop(veth)# speedtest --simple
- Ping: 4.768 ms
- Download: 494.56 Mbit/s
- Upload: 182.91 Mbit/s
- matteo-desktop(veth)# ping -q -c100 -i.1 192.168.85.1
- PING 192.168.85.1 (192.168.85.1) 56(84) bytes of data.
- --- 192.168.85.1 ping statistics ---
- 100 packets transmitted, 100 received, 0% packet loss, time 10882ms
- rtt min/avg/max/mdev = 0.253/0.484/0.575/0.059 ms
- [MACVLAN]
- matteo-desktop()# ip link add link eth0 mac0 type macvlan
- matteo-desktop()# ip link set mac0 netns macvlan
- matteo-desktop()# ip netns exec macvlan /bin/bash
- matteo-desktop(macvlan)# ifconfig mac0 192.168.85.102
- matteo-desktop(macvlan)# ip ro add default gw 192.168.85.1
- matteo-desktop(macvlan)# ip ro add default via 192.168.85.1
- matteo-desktop(macvlan)# speedtest --simple
- Ping: 5.04 ms
- Download: 653.70 Mbit/s
- Upload: 183.12 Mbit/s
- matteo-desktop(macvlan)# speedtest --simple
- Ping: 4.607 ms
- Download: 666.71 Mbit/s
- Upload: 183.12 Mbit/s
- matteo-desktop(macvlan)# speedtest --simple
- Ping: 4.692 ms
- Download: 700.53 Mbit/s
- Upload: 175.26 Mbit/s
- matteo-desktop(macvlan)# ping -q -c100 -i.1 192.168.85.1
- PING 192.168.85.1 (192.168.85.1) 56(84) bytes of data.
- --- 192.168.85.1 ping statistics ---
- 100 packets transmitted, 100 received, 0% packet loss, time 10871ms
- rtt min/avg/max/mdev = 0.284/0.481/0.522/0.056 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement