access the shell and namespace on OcNOS and iperf3
start-shell | |
---|---|
start-shell SPS1>en SPS1#start- SPS1#start-shell bash-5.0$ su - Password: [the password is = "root" ] root@SPS1:~# | |
namespace | Network NameSpace ip netns |
root@SPS1:~# ip netns list zebosfib1 (id: 0) zebosfib0 | |
which NS ? | for upgrade / access CTRL plane: use namespace: zebosfib1 to access data plane : use namespace: default ( zebosfib0 ) |
management IP@ | ip netns exec zebosfib1 ip add | grep 172 zebosfib1 ip netns exec zebosfib0 ip add | grep 172 root@R4PLAB:/home/ocnos# ip netns exec zebosfib1 ip add | grep 172 inet 172.16.10.204/24 brd 172.16.10.255 scope global dynamic eth0 |
base router interface | show dev root@R10CE:~# ip netns exec zebosfib0 ip add show dev xe10 10011: xe10: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default link/ether e8:c5:7a:fa:f2:28 brd ff:ff:ff:ff:ff:ff root@R10CE:~# ip netns exec zebosfib0 ip add show dev po1 100001: po1: <BROADCAST,MULTICAST,ALLMULTI,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default link/ether e8:c5:7a:fa:f2:3c brd ff:ff:ff:ff:ff:ff inet6 fe80::eac5:7aff:fefa:f23c/64 scope link valid_lft forever preferred_lft forever |
ping | root@R10CE:~# ping 10.10.10.1 |
fast ping | ping 10.10.10.1 -i 0 |
ip address in vrf | |
ping in a vrf | |
install debin package | |
Mgt interface in zebosfib1 | ip netns exec zebosfib1 apt-get update ip netns exec zebosfib1 apt-get install iperf3 |
other interface in zebosfib0 select the interface ( in this case po1.240 ) | ip a | grep -A 2 po1.240 node root@R10GPS:/home/ocnos# ip a | grep -A 2 po1.240 491553008: po1.240: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether e8:c5:7a:fa:f2:3c brd ff:ff:ff:ff:ff:ff inet 10.10.10.10/24 brd 10.10.10.255 scope global po1.240 valid_lft forever preferred_lft forever inet6 fe80::eac5:7aff:fefa:f23c/64 scope link |
iperf3 | iperf3 new iperf: Speed Test and stats |
just adding the source IP@ of the server : server side: iperf3 -s 10.10.10.10 client side: iperf3 -c 10.10.10.10 -t 0 | |