...
set vlans vlan-id <vlan-id> l3-interface <interface-name>
set l3-interface vlan-interface interfaceinterface <interface-name> vif <vif-name> name> address <ip-address> prefix-length <number>
...
If you want to configure the DHCP server for a user-defined VRF, you need to configure this step.
set l3-interface vlan-interface interfaceinterface <interface-name> vrf <vrf-name>
...
Code Block |
---|
admin@Xorplus# set vlans vlan-id 100 admin@Xorplus# set vlans vlan-id 200 admin@Xorplus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 100 admin@Xorplus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 200 admin@Xorplus# set vlans vlan-id 100 l3-interface vlan100 admin@Xorplus# set vlans vlan-id 200 l3-interface vlan200 admin@Xorplus# set vlan-interface set l3-interface vlan-interface vlan100 vif vlan100 address 10.1.10.11 prefix-length 24 admin@Xorplus# set vlan-interface interface vlan200 vifset l3-interface vlan-interface vlan200 address 10.2.10.11 prefix-length 24 |
...