system-view
sysname Hexin
vlan batch 10 20
sysname Hexin
vlan batch 10 20
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan10 20
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
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
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
ip address 192.168.20.254 ?
ip address 192.168.20.254 24
////---------------查询----------------////
display ip interface brief
////---------------开启端口----------////
undo shutdown
////--------------保存---------------////
save
////--------------重启---------------////
reboot