Appendix 2. VLAN-based routing
App.2-2
TI 30A10A30-01E
Create VLANs
Next step is to create four VLANs for VLAN-based routing, using “vlan” commands in VLAN
mode.
The following example shows commands to create four VLANs and assign VLAN IDs 11 to 14
respectively.
F0A0202.ai
(Hirschmann MACH) (Vlan)#vlan 11
(Hirschmann MACH) (Vlan)#vlan 12
(Hirschmann MACH) (Vlan)#vlan 13
(Hirschmann MACH) (Vlan)#vlan 14
(Hirschmann MACH) (Vlan)#vlan routing 11
Logical interface 9/1 created
(Hirschmann MACH) (Vlan)#vlan routing 12
Logical interface 9/2 created
(Hirschmann MACH) (Vlan)#vlan routing 13
Logical interface 9/3 created
(Hirschmann MACH) (Vlan)#vlan routing 14
Logical interface 9/4 created
Figure Create VLANs
The “Logical interface” number shown above indicates the virtual router port for each VLAN.
To confirm the created VLANs, use “show vlan brief” command in Privileged Exec mode. The
following example shows the result of “show vlan brief” command execution display.
F0A0203.ai
(Hirschmann MACH) #show vlan brief
Max. VLAN ID................................... 4042
Max. supported VLANs........................... 256
Number of currently configured VLANs........... 5
VLAN 0 Transparent Mode (Prio. Tagged Frames).. Disabled
VLAN ID VLAN Name VLAN Type VLAN Creation Time
------- -------------------------------- --------- ------------------
1 Default Default 0 days, 04:27:34
11 Static 0 days, 04:28:19
12 Static 0 days, 04:29:24
13 Static 0 days, 04:29:28
14 Static 0 days, 04:29:34
Figure ConfirmthecreatedVLANs
Sep. 19, 2014-00