FreeBSD 14.0 访问vde2 虚拟交换机方法

回复
admin
网站管理员
帖子: 459
注册时间: 周四 3月 15, 2018 3:56 pm
来自: 广东深圳
联系:

FreeBSD 14.0 访问vde2 虚拟交换机方法

帖子 admin »

root@tot107:/etc/X11 # vdeterm /tmp/mgmt1
VDE switch V.2.3.3
(C) Virtual Square Team (coord. R. Davoli) 2005,2006,2007 - GPLv2

vde[/tmp/mgmt1]: ds/showinfo

ctl dir /tmp/vde1
std mode 0660
Success
vde[/tmp/mgmt1]: port/print

Port 0001 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
Current User: NONE Access Control: (User: NONE - Group: NONE)
-- endpoint ID 0006 module tuntap : tap0
Port 0002 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
Current User: root Access Control: (User: NONE - Group: NONE)
-- endpoint ID 0003 module unix prog : QEMU user=root PID=2054 SSH=192.168.1.2
Port 0003 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
Current User: root Access Control: (User: NONE - Group: NONE)
-- endpoint ID 0007 module unix prog : QEMU user=root PID=1559
Port 0004 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
Current User: root Access Control: (User: NONE - Group: NONE)
-- endpoint ID 0008 module unix prog : QEMU user=root PID=1560
Success
vde[/tmp/mgmt1]: help

COMMAND PATH SYNTAX HELP
------------ -------------- ------------
ds ============ DATA SOCKET MENU
ds/showinfo show ds info
help [arg] Help (limited to arg when specified)
logout logout from this mgmt terminal
shutdown shutdown of the switch
showinfo show switch version and info
load path load a configuration script
hash ============ HASH TABLE MENU
hash/showinfo show hash info
hash/setsize N change hash size
hash/setgcint N change garbage collector interval
hash/setexpire N change hash entries expire time
hash/setminper N minimum persistence time
hash/print print the hash table
hash/find MAC [VLAN] MAC lookup
fstp ============ FAST SPANNING TREE MENU
fstp/showinfo show fstp info
fstp/setfstp 0/1 Fast spanning tree protocol 1=ON 0=OFF
fstp/setedge VLAN PORT 1/0 Define an edge port for a vlan 1=Y 0=N
fstp/bonus VLAN PORT COST set the port bonus for a vlan
fstp/print [N] print fst data for the defined vlan
port ============ PORT STATUS MENU
port/showinfo show port info
port/setnumports N set the number of ports
port/sethub 0/1 1=HUB 0=switch
port/setvlan N VLAN set port VLAN (untagged)
port/createauto create a port with an automatically allocated id (inactive|notallocatable)
port/create N create the port N (inactive|notallocatable)
port/remove N remove the port N
port/allocatable N 0/1 Is the port allocatable as unnamed? 1=Y 0=N
port/setuser N user access control: set user
port/setgroup N user access control: set group
port/epclose N ID remove the endpoint port N/id ID
port/print [N] print the port/endpoint table
port/allprint [N] print the port/endpoint table (including inactive port)
vlan ============ VLAN MANAGEMENT MENU
vlan/create N create the VLAN with tag N
vlan/remove N remove the VLAN with tag N
vlan/addport N PORT add port to the vlan N (tagged)
vlan/delport N PORT delete port from the vlan N (tagged)
vlan/print [N] print the list of defined vlan
vlan/allprint [N] print the list of defined vlan (including inactive port)
Success
vde[/tmp/mgmt1]: logout
回复