CCNA VLAN

 







s1


Switch>en

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/24

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport mode trunk 


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up


Switch(config-if)#ex

Switch(config)#vtp domain agrawal

Changing VTP domain name from NULL to agrawal

Switch(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console



Switch#vlan database 

% Warning: It is recommended to configure VLAN from config mode,

  as VLAN database mode is being deprecated. Please consult user

  documentation for configuring VTP/VLAN in config mode.


Switch(vlan)#vlan 10 name admin

VLAN 10 added:

    Name: admin


Switch(vlan)#vlan 11 name hr

VLAN 11 added:

    Name: hr



Switch(vlan)#vlan 12 name sever

VLAN 12 added:

    Name: sever

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/1

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#interface f0/2

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 11

Switch(config-if)#ex

Switch(config)#interface f0/3

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 12

Switch(config-if)#ex


s2


Switch>en

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/24

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport mode trunk 


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up


Switch(config-if)#ex

Switch(config)#interface f0/23

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport mode trunk 


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up


Switch(config-if)#ex

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/1

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#interface f0/2

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 11

Switch(config-if)#ex

Switch(config)#interface f0/3

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 12

Switch(config-if)#ex



s3


Switch>en

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/24

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport mode trunk 



%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up


Switch(config-if)#ex

Switch#conf

Configuring from terminal, memory, or network [terminal]? 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#interface f0/1

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#interface f0/2

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 11

Switch(config-if)#ex

Switch(config)#interface f0/3

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan 12

Switch(config-if)#ex







Follow me on Instagram 

Join me on LinkedIn

Follow me on FB

Subscribe the channel 

Subscribe the channel

Comments

Popular Posts