### Advanced LAN configuration , VLAN, VTP, EtherChannel ###
part 1
1. SMI and EMI ios images (emi is enhanced one including BGP protocol configuration
2. VTP - revision number (the biggest one) is win
3. Don't use VLAN1 in configuration of switch
4. By default, switch is 'server mode' in VTP configuration
5. Switch's like 3550, 3560, there is no need to config 'ip default gateway' command... (This is a router ;))
switch# conf t
switch (config)#line con 0
switch(config-line)# logging synchromous
no console messages to interapte the typing
switch(config-line) # no exec-timeout
no session time-out
switch(config-line) # no ip domain-lookup
switch(config) # vlan int 100
switch(config-if)# ip address 192.168.100.1 255.255.255.0
### to configure VLAN's theris is a two methodes ###
switch# vlan data
% 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.
StorageSw3(vlan)#
### range command ###
torageSw3(config)#interface ra
StorageSw3(config)#interface range g
StorageSw3(config)#interface range gigabitEthernet ?
<0-0> GigabitEthernet interface number
StorageSw3(config)#interface range gigabitEthernet 0/22 - 24
StorageSw3(config-if-range)#
### trunk configuration ###
first of all it should be seted up trunk encapsulation protocol
and after that 'mode trunk'
StorageSw3(config-if-range)#switchport trunk encapsulation dot1q
StorageSw3(config-if-range)#switchport mode trunk
### VTP configuration ###
StorageSw3(config)#vtp mode server
StorageSw3(config)#vtp domain SOME-NAME
StorageSw3(config)#vtp password SOME-PASSWORD
StorageSw3(config)#vtp version 2
usually it will be 2, or 3 is more secure
torageSw3#sh vtp status
VTP Version : 2
Configuration Revision : 5
maximum VLANs supported locally : 1005
Number of existing VLANs : 8
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x41 0xBB 0x2D 0xCD 0x8C 0xBA 0x87 0x4D
Configuration last modified by 192.168.1.201 at 4-11-93 21:34:14
Local updater ID is 192.168.1.201 on interface Vl192 (lowest numbered VLAN inter
face found)
### ether channel configuration ###
there is two ether_channel mode, L2 and L3
StorageSw3(config)#interface range gigabitEthernet 0/22 - 24
StorageSw3(config-if-range)#cha
StorageSw3(config-if-range)#channel-g
StorageSw3(config-if-range)#channel-group ?
<1-48> Channel group number
StorageSw3(config-if-range)#channel-group 1 ?
StorageSw3(config-if-range)#channel-group 1 mode desirable