About ensp operation command

sys

VALNET 10

vlan 20

int g 1/01

port link-type access 

port access vlan 10

int g1/0/2

port link-type access

port access vlan 10

int g1/0/3

port link-type access

port access vlan 20

int g 1/0/4

port link-type access

port access vlan 20

qu

int g 1/0/48

port link-type trunk 

port trunk permit vlan 10 20

Switch on the right:

sys

vlan 10

vlan 20

int g1/0/1

port link-type access 

port access vlan 10

int g1/0/2

port link-type access

port access vlan 20

qu

int g 1/0/48

port link-type trunk

port trunk permit vlan 10 20

Switch above:

sys

vlan 10 

vlan 20

int range g1/0/1 to 1/0/2

port link-type trunk

port trunk permit vlan 10 20

int g1/0/48

port link-type trunk 

port trunk permit vlan 10 20

router:

sys

int g0/0.10

vlan-type dot1q vid 10

ip address 192.168.10.254 24

int g 0/0.20

vlan-type dot1q vid 20

ip add 192.168.20.254 24

Guess you like

Origin www.cnblogs.com/597lyq/p/11950547.html