Lab 2‐1 Subnet Design - devinziegler/Devin-Tech-Journal GitHub Wiki
vlan <vlan_number>
This command will create the VLAN, and assign it to a number
name <VLAN_name>
This is a subcommand for the vlan command, this allows you to name the vlan you just created.
Once a vlan is created it can be assigned to a switch port. Navigate to the interface or use the range
flag to select a range of interfaces. For Example:
int range fa0/1-5
This command will allow you to configure ports fa0/1 through fa0/5
To assign a VLAN to a specific port in access mode, use the following command:
switchport access vlan <vlan_number>
Trunk ports allow vlan communication between switches.
switchport trunk encapsulation dot1q
This command defines the encapsulation to be used on the trunking port.
switchport mode trunk
This command will enable trunking on the selected interface
Enable routing on a layer 3 switch with the following command:
ip routing
interface vlan <vlan#>
Select the interface to configure
ip address <ip_address> <subnet_mask>
Configures the VLAN interface with the desired IP address