Switch – Configure VLANs and Trunk

Switch – VLAN names:

Switch>en

Switch#conf t

Switch(config)#vlan 10

Switch(config-vlan)#name students

Switch(config-vlan)#vlan 20

Switch(config-vlan)#name faculty

Switch(config-vlan)#vlan 30

Switch(config-vlan)#name administration

Switch(config-vlan)#vlan 55

Switch(config-vlan)#name native

Switch(config-vlan)#vlan 77

Switch(config-vlan)#name mgt

Switch(config-vlan)#

Switch#show vlan

Default Gateway:

Switch#conf t

Switch(config)#int vlan 77

Switch(config-if)#ip address 192.168.77.2 255.255.255.0

Switch(config-if)#

Switch#conf t

Switch(config)#ip default-gateway 192.168.77.1

Switch(config)#

Configure VLAN:

Switch#conf t

Switch(config)#int fa0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#switchport trunk allowed vlan 1,10,30,40,50,77

Switch(config-if)#switchport trunk native vlan 55

Switch(config-if)#int fa0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/3

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#int fa0/4

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 30

Switch(config-if)#int fa0/5

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 77

Switch(config-if)#

Switchport Trunk Allowed Vlan:

Switch#conf t

Switch(config)#int fa0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#switchport trunk allowed vlan 1,10,30,40,55,77

Switch(config-if)#switchport trunk native vlan 55

Switch(config-if)#

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s