ensp命令

system-view
sysname Hexin
vlan batch 10 20
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan10  20
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan10  20
quit
interface Vlanif 10
ip address 192.168.10.254 ?
ip address 192.168.10.254 24
interface Vlanif 20
ip address 192.168.20.254 ?
ip address 192.168.20.254 24
////---------------查询----------------////
display ip interface brief
////---------------开启端口----------////
undo shutdown
////--------------保存---------------////
save
////--------------重启---------------////
reboot
posted @ 2019-11-26 16:22  你懂我意思吧?  阅读(655)  评论(3)    收藏  举报