建立虚拟接口
int vlanif 10
ip address ip 子网掩码
示例
1.配置好ip,子网掩码,网关
2.vlan划分
vlan batch 10 20
int e0/0/1
port link-type access
port defaule vlan 10
int e0/0/2
port link-type access
port defaule vlan 10
int e0/0/3
port link-type access
port defaule vlan 20
int e0/0/4
port link-type access
port defaule vlan 20
3.配置虚拟接口
int vlanif 10
ip address 192.168.1.254 24
int vlanif 20
ip address 192.168.2.254 24