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.
1 2
Switch(vlan)#vtp domain abc Changing VTP domain name from NULL to abc
1 2
Switch(vlan)#vtp server Device mode already VTP SERVER.
1 2 3
Switch(vlan)#exit APPLY completed. Exiting....
1 2
Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.
1
Switch(config)#vlan 10
1
Switch(config-vlan)#vlan 20
2、配置vlan client(Switch2):
1
Switch>en
1 2 3 4
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.
1 2
Switch(vlan)#vtp domain abc Changing VTP domain name from NULL to abc
1 2
Switch(vlan)#vtp client Setting device to VTP CLIENT mode.
1 2 3
Switch(vlan)#exit APPLY completed. Exiting....
1 2
Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.
1
Switch(config)#int f0/1
1
Switch(config-if)#switchport mode access
1
Switch(config-if)#switchport access vlan 10
1
Switch(config-if)#int f0/2
1
Switch(config-if)#switchport mode access
1
Switch(config-if)#switchport access vlan 20
1
Switch(config-if)#int f0/3
1 2 3 4
Switch(config-if)#switchport mode trunk Switch(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
3、配置vlan client(Switch3):
1
Switch>en
1 2 3 4
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.
1 2
Switch(vlan)#vtp domain abc Changing VTP domain name from NULL to abc
1 2
Switch(vlan)#vtp client Setting device to VTP CLIENT mode.
1 2 3
Switch(vlan)#exit APPLY completed. Exiting....
1 2
Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.
1
Switch(config)#int f0/1
1
Switch(config-if)#switchport mode access
1
Switch(config-if)#switchport access vlan 10
1
Switch(config-if)#int f0/2
1
Switch(config-if)#switchport mode access
1
Switch(config-if)#switchport access vlan 20
1
Switch(config-if)#int f0/3
1 2 3 4
Switch(config-if)#switchport mode trunk Switch(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
近期评论