net namespace

2018-08-13  本文已影响0人  liyiscuu

ip netns {list | add delete | exec | identify | pids | monitor等}
ip [{-s | -v 等等}] link [ {add | delete | set | show} ] type [{bridge| bond | can | vcan | veth | vlan 等}]

1)ip netns exec ns1 ip link show|list
2)ip netns exec ns1 ip link set dev tap1 down 
3)ip netns exec ns1 ip address add 192.68.102.40/24 broadcast + dev tap1
4)ip netns exec ns1 ip link set dev tap1 up 
上一篇 下一篇

猜你喜欢

热点阅读