Configuration Note 12 Document #: LTRT-31672
Layer 2 Bridging using CLI
The table below describes how to configure a VLAN on Layer 3:
Table 3-2: VLAN on Layer 3 Commands
Command Description
Enter the data configuration menu.
(config-data)# interface vlan
[Vlan-ID]
Allows you to enter a specific interface
VLAN mode.
Vlan-ID ā actual VLAN number.
(conf-if-GE SlotNum/PortNum)#
Assigns an IP address to the VLAN
interface.
3.2 Examples
In this example, two interfaces have been assigned to the same VLAN and the interface
VLAN layer 3 has also been configured.
Figure 3-1: VLAN
Client 1
Host on Vlan100
Client 2
Host on Vlan100
MSBR
The above example is implemented using the following commands:
MSBR(config-data)# interface gigabitethernet 4/1
MSBR(conf-if-GE 4/1)# switchport mode access
MSBR(conf-if-GE 4/1)# switchport access vlan 100
MSBR(conf-if-GE 4/1)# exit
MSBR(config-data)# interface gigabitethernet 4/2
MSBR(conf-if-GE 4/2)# switchport mode access
MSBR(conf-if-GE 4/2)# switchport access vlan 100
MSBR(conf-if-GE 4/2)# exit
MSBR(config-data)# interface vlan 100
MSBR(conf-if-VLAN 100)# ip address 192.168.100.1 255.255.255.0