creates 2 connected namespaces vpp1 & vpp2

Posted dream397

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了creates 2 connected namespaces vpp1 & vpp2相关的知识,希望对你有一定的参考价值。

#!/bin/bash
  #
  # set up a network env with 2 namespaces:
  #
  # [ vpp1 ]------[vpp]------[ vpp2 ]
  #
  # vpp1: 192.168.0.1
  # vpp2: 192.168.0.2
   
  ip netns delete vpp1
  ip netns delete vpp2
  ip netns add vpp1
  ip netns add vpp2
   
  vppctl tap connect vpp1
  vppctl tap connect vpp2
  vppctl set interface state tap-0 up
  vppctl set interface state tap-1 up
  ip link set dev vpp1 netns vpp1
  ip link set dev vpp2 netns vpp2
  ip netns exec vpp1 ip link set vpp1 up
  ip netns exec vpp2 ip link set vpp2 up
   
  vppctl set interface l2 bridge tap-0 23
  vppctl set interface l2 bridge tap-1 23
   
  ip netns exec vpp1 ip addr add 192.168.0.1/24 dev vpp1
  ip netns exec vpp2 ip addr add 192.168.0.2/24 dev vpp2
   
  # smoke-test
  ip netns exec vpp1 ping -c1 192.168.0.2
  ip netns exec vpp2 ping -c1 192.168.0.1

https://www.slideshare.net/npsg/vpp-72218327

以上是关于creates 2 connected namespaces vpp1 & vpp2的主要内容,如果未能解决你的问题,请参考以下文章

Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...

WebSocketApp 与 create_connection

MySQL参数最大连接数max_connections

Activiti启报错: Cannot create PoolableConnectionFactory (Could not create connection to database server

Oracle系列1Oracle 的connect权限和create session的区别

Genymotion Unable to create Virtual Device:Connection timeout