Configuring a Layer 3 VLAN Interface
The Layer 3 interface is a VLAN interface. Use the following configuration sequence:
- Create a VLAN using the set vlans vlan-id command.
- Associate an L3 interface with the VLAN using the set vlans vlan-id l3-interface command.
- Configure the IP address and prefix length for the virtual interface using the set l3-interface vlan-interface address prefix-length command.
Note |
---|
|
Code Block |
---|
admin@XorPlus# set vlans vlan-id 2 admin@XorPlus# set vlans vlan-id 3 admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2 admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3 admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2 admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set vlanl3-interface interface vlan-2interface vif vlan-2 address 192.168.1.1 prefix-length 24 admin@XorPlus# set vlanl3-interface interface vlan-3interface vif vlan-3 address 192.168.2.1 prefix-length 24 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# run show vlanl3-interface vlan-2 Hwaddr C8:0A:A9:9E:14:9F, Vlan:2, State:DOWN Inet addr: 192.168.1.1/24 fe80::ca0a:a9ff:fe9e:149f/64 Traffic statistics: IPv4 Input Packets............................0 IPv4 Forwarding Packets.......................0 IPv6 Input Packets............................0 IPv6 Forwarding Packets.......................0 vlan-3 Hwaddr C8:0A:A9:9E:14:9F, Vlan:3, State:UP Inet addr: 192.168.2.1/24 fe80::ca0a:a9ff:fe9e:149f/64 Traffic statistics: IPv4 Input Packets............................0 IPv4 Forwarding Packets.......................0 IPv6 Input Packets............................0 IPv6 Forwarding Packets.......................0 admin@XorPlus# |
...
Code Block |
---|
admin@Xorplus# set vlanl3-interface vlan-interface vlan-2 mtu 2000 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. |
Configuring the Rate Limiting
L3 VLAN interface rate limit is applied to packets delivered out from the CPU, controlling shock of large flow on CPU, releasing the burden on CPU.
Code Block |
---|
admin@Xorplus# set vlanl3-interface vlan-interface vlan200 rate-limit 1024 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. |
...