I assume you are asking similar to router on a stick configuration.
here in Exos we just configure interfaces as tagged or untagged for specific vlans.
We create vlans and assign ip address to them.
Create vlan vlan10
config vlan10 tag 10
config vlan10 ipaddress 192.168.1.1/24
config vlan10 add ports 1-10 untagged.
config vlan10 add ports 48 tagged--------------assuming this is the uplink port.
enable ipforwarding
now we can add more vlans
Create vlan vlan20
config vlan20 tag 20
config vlan20 ipaddress 192.168.2.1/24
config vlan20 add ports 11-20 untagged.
config vlan20 add ports 48 tagged---------------assuming this is the uplink port.
prior to all we should do the below command
config default delete ports all ---removes all ports from default vlan.