| VUSTACK(1) | General Commands Manual | VUSTACK(1) |
vustack – set the default networking stack
vustack [options ...] stack command [args]
vunet is the VUOS module for networking virtualization. Networking stacks can be loaded using vumount(1) and are identified by a pathname: the mount point. vustack selects the stack to use among those available; command runs using the stack selected vustack.
Load vunet and mount a stack:
$ vu_insmod vunet
$ vumount -t vunetvdestack vde:// /dev/net/vde
Run ip link using the stack mounted in /dev/net/vde:
$ vustack /dev/net/vde ip link 1: lo: *LOOPBACK* mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: vde0: *BROADCAST,MULTICAST* mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 5a:1e:97:fa:ab:a3 brd ff:ff:ff:ff:ff:ff
Run ip link set vde0 up selecting /dev/net/vde only for the families supported by vunetvdestack:
$ vustack -s -v /dev/net/vde ip link set vde0 up Using /dev/net/vde for the following address families:
inet(2) inet6(10) netlink(16) packet(17)
mount a null stack and use it to disable netlink:
$ vumount -t vunetnull vde:// /dev/net/null $ exec vustack -f netlink -v /dev/net/null bash Using /dev/net/null for the following address families:
netlink(16) $ ip addr Cannot open netlink socket: Address family not supported by protocol
VirtualSquare. Project leader: Renzo Davoli
| November 2024 | VirtualSquare-VUOS |