Route maps

Route-maps are generic mechanisms which you can use in many configurations, mainly the  redistribute command  and for PBR. You can use PBR to force traffic to paths that are different from the ones in the normal forwarding/route table. You can use PBR to control traffic based on ToS, packet size and type, and source address, among others

 

These are some of the differences between route-maps and ACLs:

  • Route-maps frequently use ACLs as matching criteria.
  • The main result from the evaluation of an access list is a yes or no answer—an ACL either permits or denies input data. Applied to redistribution, an ACL determines if a particular route can (route matches ACLs permit statement) or can not (matches deny statement) be redistributed. Typical route-maps not only permit (some) redistributed routes but also modify information associated with the route, when it is redistributed into another protocol. See the Route-Map Basics section of this document for route-map modification examples.
  • Route-maps are more flexible than ACLs and can verify routes based on criteria which ACLs can not verify. For example, a route-map can verify if the type of route is internal or if it has a specific tag.
  • Each ACL ends with an implicit deny statement, by design convention; there is no similar convention for route-maps. If the end of a route-map is reached during matching attempts, the result depends on the specific application of the route-map. Fortunately, route-maps that are applied to redistribution behave the same way as ACLs: if the route does not match any clause in a route-map then the route redistribution is denied, as if the route-map contained deny statement at the end.

 

  • Route-maps can have permit and deny clauses. In route-map ospf-to-eigrp, there is one deny clause (with sequence number 10) and two permit clauses. The deny clause rejects route matches from redistribution. Therefore, these rules apply:
    • If you use an ACL in a route-map permit clause, routes that are permitted by the ACL are redistributed.
    • If you use an ACL in a route-map deny clause, routes that are permitted by the ACL are not redistributed.
    • If you use an ACL in a route-map permit or deny clause, and the ACL denies a route, then the route-map clause match is not found and the next route-map clause is evaluated.

Remarques : par l’action par default est permit.

router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#route-map TEST-LOOP ?
<0-65535>  Sequence to insert to/delete from existing route-map entry
deny       Route map denies set operations
permit     Route map permits set operations
<cr>

router(config)#route-map TEST-LOOP 40
router(config-route-map)#end
router#sh run | inc route-map TEST-LOOP
route-map TEST-LOOP deny 5
route-map TEST-LOOP permit 10
route-map TEST-LOOP permit 40
router#

 

  • A match or set command in each clause can be missed or repeated several times, if one of these conditions exist:
    • If several match commands are present in a clause, all must succeed for a given route in order for that route to match the clause (in other words, the logical AND algorithm is applied for multiple match commands).
    • If a match command refers to several objects in one command, either of them should match (the logical OR algorithm is applied). For example, in the match ip address 101 121 command, a route is permitted if it is permitted by access list 101 or access list 121.
    • If a match command is not present, all routes match the clause. In the previous example, all routes that reach clause 30 match; therefore, the end of the route-map is never reached.
    • If a set command is not present in a route-map permit clause then the route is redistributed without modification of its current attributes.

Do not configure a set command in a deny route-map clause because the deny clause prohibits route redistribution—there is no information to modify.

 

A route-map clause without a match or set command performs an action. An empty permit clause allows a redistribution of the remaining routes without modification. An empty deny clause does not allows a redistribution of other routes.

 

 

vtp primary server and vtp

switch(config)#vlan 91
switch(config-vlan)#pri
switch(config-vlan)#private-vlan
% Incomplete command.

switch(config-vlan)#private-vlan  ?
association  Configure association between private VLANs
community    Configure the VLAN as a community private VLAN
isolated     Configure the VLAN as an isolated private VLAN
primary      Configure the VLAN as a primary private VLAN

switch(config-vlan)#private-vlan  primary
%Private VLANs can only be configured when VTP is in transparent/off mode.

switch(config-vlan)#exit
switch(config)#vtp version ?
<1-3>  Set the administrative domain VTP version number

switch(config)#vtp version 3
switch(config)#exit
switch#sh vtp status
VTP Version capable             : 1 to 3
VTP version running             : 3
VTP Domain Name                 : VTP_LAB
VTP Pruning Mode                : Enabled
VTP Traps Generation            : Disabled
Device ID                       : 6416.8d9f.3533

Feature VLAN:
————–
VTP Operating Mode                : Server
Number of existing VLANs          : 23
Number of existing extended VLANs : 0
Maximum VLANs supported locally   : 1005
Configuration Revision            : 0
Primary ID                        : 0000.0000.0000
Primary Description               :
MD5 digest                        : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

Feature MST:
————–
VTP Operating Mode                : Transparent

Feature UNKNOWN:
————–
VTP Operating Mode                : Transparent

switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch(config)#vlan 91
VTP VLAN configuration not allowed when device is not the primary server for vlan database.
switch(config)#
switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch(config)#vtp
switch(config)#vtp pri
switch(config)#vtp pri
switch(config)#exit
switch#vt
switch#vtp pro
switch#vtp pr
switch#vtp primary ?
force  Do not check for conflicting devices
mst    MST feature
vlan   Vlan feature
<cr>

switch#vtp primary
This system is becoming primary server for feature vlan
No conflicting VTP3 devices found.
Do you want to continue? [confirm]
switch#sh vtp status
VTP Version capable             : 1 to 3
VTP version running             : 3
VTP Domain Name                 : VTP_LAB
VTP Pruning Mode                : Enabled
VTP Traps Generation            : Disabled
Device ID                       : 6416.8d9f.0500

Feature VLAN:
————–
VTP Operating Mode                : Primary Server
Number of existing VLANs          : 23
Number of existing extended VLANs : 0
Maximum VLANs supported locally   : 1005
Configuration Revision            : 1
Primary ID                        : 6416.8d9f.0500
Primary Description               : switch
MD5 digest                        : 0x3D 0x73 0x8C 0x11 0x5F 0x82 0x15 0xF9
0x4D 0xC4 0x3B 0xCB 0x27 0x12 0x35 0x1B

Feature MST:
————–
VTP Operating Mode                : Transparent

Feature UNKNOWN:
————–
VTP Operating Mode                : Transparent

switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch(config)#vlan 91
switch(config-vlan)#pr
switch(config-vlan)#private-vlan pr
switch(config-vlan)#private-vlan primary
switch(config-vlan)#end
switch#

notes switching

Enabling VTP pruning on a VTP server enables pruning for the entire management domain.

Cisco switches always have VLAN 1 as the default VLAN, which is needed for many protocol communication between switches like spanning-tree protocol for instance.

You can’t change or even delete the default VLAN, it is mandatory.

The native VLAN is the only VLAN which is not tagged in a trunk, in other words, native VLAN frames are transmitted unchanged.

 

 

#show spanning-tree vlan 1 summary
Switch is in rapid-pvst mode
Root bridge for VLAN0001 is 4097.6416.8d9d.4580.
EtherChannel misconfig guard is enabled
Extended system ID           is enabled
Portfast Default             is disabled
PortFast BPDU Guard Default  is disabled
Portfast BPDU Filter Default is disabled
Loopguard Default            is disabled
UplinkFast                   is disabled
BackboneFast                 is disabled
Configured Pathcost method used is short

Name                   Blocking Listening Learning Forwarding STP Active
———————- ——– ——— ——– ———- ———-
VLAN0001                     0         0        0          2          2

notes

  1. when extended range vlans are created, they are not stored in the VLAN database file
  2. To switch from switching port to routing portm uses no switchport on a multi-layer switch.

3750-LA210-ISAM-EFM(config)#int fa 1/0/7
3750-LA210-ISAM-EFM(config-if)#ip addr 1.0.4.3 255.255.255.248
^
% Invalid input detected at ‘^’ marker.

3750-LA210-ISAM-EFM(config-if)#no swi
3750-LA210-ISAM-EFM(config-if)#no switchport
3750-LA210-ISAM-EFM(config-if)#ip addr 1.0.4.3 255.255.255.248
3750-LA210-ISAM-EFM(config-if)#

Port security

Port security can only be configured on static access ports or trunk ports. A secure port cannot be a dynamic access port.

A secure port cannot be a destination port for Switched Port Analyzer (SPAN).

A secure port cannot belong to a Gigabit EtherChannel port group.


Note Voice VLAN is only supported on access ports and not on trunk ports, even though the configuration is allowed.


A secure port cannot be a private-VLAN port.

When you enable port security on an interface that is also configured with a voice VLAN, set the maximum allowed secure addresses on the port to two.

AAA

http://www.cisco.com/c/en/us/support/docs/security-vpn/terminal-access-controller-access-control-system-tacacs-/10384-security.html

 

 

To enable AAA, you need to configure the aaa new-model command in global configuration.

Warning: The aaa new-model command immediately applies local authentication to all lines and interfaces (except console line line con 0). If a telnet session is opened to the router after enabling this command (or if a connection times out and has to reconnect), then the user has to be authenticated using the the local database of the router. To avoid being locked out of the router, we recommend that you define a username and password on the access server before starting the AAA configuration. Do this a follows:

SWITCH#
SWITCH#sh run  | s line
line con 0
 privilege level 15
line vty 0 4
 session-timeout 120
 privilege level 15
 no login
line vty 5 15
 session-timeout 120
 no login
SWITCH#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SWITCH(config)#aaa ne
SWITCH(config)#aaa new-model
SWITCH(config)#exit
SWITCH#sh run  | s line
Enter configuration commands, one per line.  End with CNTL/Z.
line con 0
 privilege level 15
line vty 0 4
 session-timeout 120
 privilege level 15  <== No login disappeared
line vty 5 15
 session-timeout 120
SWITCH#

SWITCH(config)#username labo password 0 labo
SWITCH(config)#exit
SWITCH#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SWITCH(config)#aaa ?
  accounting       Accounting configurations parameters.
  attribute        AAA attribute definitions
  authentication   Authentication configurations parameters.
  authorization    Authorization configurations parameters.
  cache            AAA cache definitions
  configuration    Authorization configuration parameters.
  dnis             Associate certain AAA parameters to a specific DNIS number
  group            AAA group definitions
  local            AAA Local Authen/Authz Method Lists
  local            AAA Local method options
  max-sessions     Adjust initial hash size for estimated max sessions
  memory           AAA memory parameters
  nas              NAS specific configuration
  new-model        Enable NEW access control commands and functions.(Disables OLD commands.)
  pod              POD processing
  policy           AAA policy parameters
  server           Local AAA server
  service-profile  Service-Profile parameters
  session-id       AAA Session ID
  traceback        Traceback recording
  user             AAA user definitions

SWITCH(config)#tacacsser
SWITCH(config)#tacacs-ser
SWITCH(config)#tacacs-server ?
  administration    Start tacacs+ deamon handling administrative messages
  attribute         Customize selected tacacs attributes
  cache             AAA auth cache default server group
  directed-request  Allow user to specify tacacs server to use with `@server'
  dns-alias-lookup  Enable IP Domain Name System Alias lookup for TACACS servers
  domain-stripping  Strip the domain from the username
  host              Specify a TACACS server
  key               Set TACACS+ encryption key.
  packet            Modify TACACS+ packet options
  timeout           Time to wait for a TACACS server to reply

SWITCH(config)#tacacs-server ho
SWITCH(config)#tacacs-server host 10.10.10.1 ?
  key                per-server encryption key (overrides default)
  nat                To send client's post NAT address to tacacs+ server
  port               TCP port for TACACS+ server (default is 49)
  single-connection  Multiplex all packets over a single tcp connection to server (for CiscoSecure)
  timeout            Time to wait for this TACACS server to reply (overrides default)
  <cr>

SWITCH(config)#tacacs-server host 10.10.10.1 po
SWITCH(config)#tacacs-server host 10.10.10.1 port 49 ?
  key      per-server encryption key (overrides default)
  timeout  Time to wait for this TACACS server to reply (overrides default)
  <cr>

SWITCH(config)#tacacs-server host 10.10.10.1 port 49 ke
SWITCH(config)#tacacs-server host 10.10.10.1 port 49 key ?
  0     Specifies an UNENCRYPTED key will follow
  7     Specifies HIDDEN key will follow
  LINE  The UNENCRYPTED (cleartext) shared key

SWITCH(config)#tacacs-server host 10.10.10.1 port 49 key test ?
LINE    <cr>

SWITCH(config)#tacacs-server host 10.10.10.1 port 49 key test

Authentication verifies users before they are allowed access to the network and network services (which are verified with authorization).

To configure AAA authentication :

  1. First define a named list of authentication methods (in global configuration mode).
  2. Apply that list to one or more interfaces (in interface configuration mode).

The only exception is the default method list (which is named “default”). The default method list is automatically applied to all interfaces except those that have a named method list explicitly defined. A defined method list overrides the default method list.

It is important to note that the Cisco IOS software attempts authentication with the next listed authentication method only when there is no response from the previous method. If authentication fails at any point in this cycle, meaning that the AAA server or local username database responds by denying the user access (indicated by a FAIL), the authentication process stops and no other authentication methods are attempted.

 

 

SWITCH(config)#aaa authentication ?
arap             Set authentication lists for arap.
attempts         Set the maximum number of authentication attempts
banner           Message to use when starting login/authentication.
dot1x            Set authentication lists for IEEE 802.1x.
  enable           Set authentication list for enable.
eou              Set authentication lists for EAPoUDP
fail-message     Message to use for failed login/authentication.
login            Set authentication lists for logins.
password-prompt  Text to use when prompting for a password
ppp              Set authentication lists for ppp.
sgbp             Set authentication lists for sgbp.
suppress         Do not send access request for a specific type of user.
username-prompt  Text to use when prompting for a username

SWITCH(config)#aaa authentication

3750-LA210-ISAM-EFM(config)#aaa authentication enable ?
default  The default authentication list.

3750-LA210-ISAM-EFM(config)#aaa authentication enable de
3750-LA210-ISAM-EFM(config)#aaa authentication enable default ?
cache   Use Cached-group
enable  Use enable password for authentication.
group   Use Server-group
line    Use line password for authentication.
none    NO authentication.

3750-LA210-ISAM-EFM(config)#aaa authentication enable default gr
3750-LA210-ISAM-EFM(config)#aaa authentication enable default group ?
WORD     Server-group name
ldap     Use list of all LDAP hosts.
tacacs+  Use list of all Tacacs+ hosts.

3750-LA210-ISAM-EFM(config)#aaa authentication enable default group ta
3750-LA210-ISAM-EFM(config)#aaa authentication enable default group tacacs+ ?
cache   Use Cached-group
enable  Use enable password for authentication.
group   Use Server-group
line    Use line password for authentication.
none    NO authentication.
<cr>

3750-LA210-ISAM-EFM(config)#aaa authentication enable default group tacacs+ en
3750-LA210-ISAM-EFM(config)#aaa authentication enable default group tacacs+ enable
3750-LA210-ISAM-EFM(config)#enable pas
3750-LA210-ISAM-EFM(config)#enable password ?
0      Specifies an UNENCRYPTED password will follow
7      Specifies a HIDDEN password will follow
LINE   The UNENCRYPTED (cleartext) ‘enable’ password
level  Set exec level password

3750-LA210-ISAM-EFM(config)#enable password 0 labo
3750-LA210-ISAM-EFM(config)#exit
3750-LA210-ISAM-EFM#dis
3750-LA210-ISAM-EFM#disa
3750-LA210-ISAM-EFM#disable
3750-LA210-ISAM-EFM#disable
3750-LA210-ISAM-EFM>ena
3750-LA210-ISAM-EFM>enable
Password:
3750-LA210-ISAM-EFM#

 

Note: The group keyword provides a way to group existing server hosts. The feature allows the user to select a subset of the configured server hosts and use them for a particular service. For more information on this advanced feature, refer to the document AAA Server-Group.

 

Let’s expand the configuration from Example 1 so that console login is only authenticated by the password set on line con 0.

The list CONSOLE is defined and then applied to line con 0.

We configure:

Router(config)# aaa authentication login CONSOLE line 

In the command above:

  • the named list is CONSOLE.
  • there is only one authentication method (line).

Once a named list (in this example, CONSOLE) is created, it must be applied to a line or interface for it to come into effect. This is done using the login authentication list_name command:

    Router(config)# line con 0 
    Router(config-line)# exec-timeout 0 0 
    Router(config-line)# password cisco 
    Router(config-line)# login authentication CONSOLE 

The CONSOLE list overrides the default method list default on line con 0. You need to enter the password “cisco” (configured on line con 0) to get console access. The default list is still used on tty, vty and aux.

Note: To have console access authenticated by a local username and password, use:

Router(config)# aaa authentication login CONSOLE local 

PVST Sim. Inconsistent

I turned on mst protocol in my switch and telnet connection via vlan 245 is down.
Let’s see what happened. Yet, we have only one vlan 245 on the switch and it is not on root port neither designated port mode, It was blocked, Type of connection is P2p Bound(PVST) and *PVST_Inc for PVST.

750#sh spanning-tree vlan 245

MST0
Spanning tree enabled protocol mstp
Root ID    Priority    8193
Address     6416.8d9f.0500
Cost        200000
Port        26 (FastEthernet1/0/24)
Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

Bridge ID  Priority    32768  (priority 32768 sys-id-ext 0)
Address     6416.8d1d.8a80
Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

Interface           Role Sts Cost      Prio.Nbr Type
——————- —- — ——— ——– ——————————–
Fa1/0/2             Desg BKN*200000    128.4    P2p Bound(PVST) *PVST_Inc

3750#sh spanning-tree vlan 245 detail

MST0 is executing the mstp compatible Spanning Tree protocol
Bridge Identifier has priority 32768, sysid 0, address 6416.8d1d.8a80
Configured hello time 2, max age 20, forward delay 15, transmit hold-count 6
Current root has priority 8193, address 6416.8d9f.0500
Root port is 26 (FastEthernet1/0/24), cost of root path is 200000
Topology change flag not set, detected flag not set
Number of topology changes 3 last change occurred 00:08:21 ago
from FastEthernet1/0/5
Times:  hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0

Port 4 (FastEthernet1/0/2) of MST0 is broken  (PVST Sim. Inconsistent)
Port path cost 200000, Port priority 128, Port Identifier 128.4.
Designated root has priority 8193, address 6416.8d9f.0500
Designated bridge has priority 32768, address 6416.8d1d.8a80
Designated port id is 128.4, designated path cost 200000
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 0
Link type is point-to-point by default, Boundary PVST
BPDU: sent 533, received 1052

Well with mst we have to think instance and not vlans

3750-LA210-ISAM-EFM#sh spanning-tree mst 0

##### MST0    vlans mapped:   1-2,4,7-4094
Bridge        address 6416.8d1d.8a80  priority      32768 (32768 sysid 0)
Root          address 6416.8d9f.0500  priority      8193  (8192 sysid 1)
port    Fa1/0/24        path cost     200000
Regional Root this switch
Operational   hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured    hello time 2 , forward delay 15, max age 20, max hops    20

Interface        Role Sts Cost      Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa1/0/1          Desg FWD 200000    128.3    P2p
Fa1/0/2          Desg BKN*200000    128.4    P2p Bound(PVST) *PVST_Inc
Fa1/0/5          Desg FWD 200000    128.7    P2p
Fa1/0/24         Root BKN*200000    128.26   Shr Bound(PVST) *PVST_Inc

3750-LA210-ISAM-EFM#
3750-LA210-ISAM-EFM#sh spanning-tree vlan 200

MST0
Spanning tree enabled protocol mstp
Root ID    Priority    8193
Address     6416.8d9f.0500
Cost        200000
Port        26 (FastEthernet1/0/24)
Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

Bridge ID  Priority    32768  (priority 32768 sys-id-ext 0)
Address     6416.8d1d.8a80
Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

Interface           Role Sts Cost      Prio.Nbr Type
——————- —- — ——— ——– ——————————–
Fa1/0/24            Root BKN*200000    128.26   Shr Bound(PVST) *PVST_Inc

So what happened, I googled PVST Sim. Inconsistent and I found this document

http://www.cisco.com/c/en/us/support/docs/lan-switching/multiple-instance-stp-mistp-8021s/116464-configure-pvst-00.html

 

Some new commands

3750#show spanning-tree inconsistentports

Name                 Interface                Inconsistency
——————– ———————— ——————
MST0                 FastEthernet1/0/2        PVST Sim. Inconsistent
MST0                 FastEthernet1/0/24       PVST Sim. Inconsistent

3750#show spanning-tree mst configuration
Name      []
Revision  0     Instances configured 1

Instance  Vlans mapped
——–  ———————————————————————
0         1-4094
——————————————————————————-
3750#

I add some configuration, just for practise  :

3750#sh run | be mst
spanning-tree mode mst
spanning-tree extend system-id
!
spanning-tree mst configuration
name TEST
revision 3
instance 1 vlan 3, 5-6
!
spanning-tree vlan 1,10,195,2424-2425,2428 priority 4096
spanning-tree vlan 201 priority 8192
!

3750#sh spanning-tree mst configuration
Name      [TEST]
Revision  3     Instances configured 2

Instance  Vlans mapped
——–  ———————————————————————
0         1-2,4,7-4094
1         3,5-6
——————————————————————————-
3750#sh spanning-tree inconsistentports

Name                 Interface                Inconsistency
——————– ———————— ——————
MST0                 FastEthernet1/0/2        PVST Sim. Inconsistent
MST0                 FastEthernet1/0/24       PVST Sim. Inconsistent

Number of inconsistent ports (segments) in the system : 2

3750#

Well I don t have time to troubleshoot today, I will replace mst per rstp+. And I will continue another day.

when I did that, my switch was too slow

3750#sh processes cpu history

555555555555444445555544444444445555544444444447777755555444
100
90
80
70
60
50
40
30
20
10 ************     *****          *****          **********
0….5….1….1….2….2….3….3….4….4….5….5….6
0    5    0    5    0    5    0    5    0    5    0
CPU% per second (last 60 seconds)

3  9999    3          4         1
776777577043387773686775776798777778673786667777777767776777
100
90          *##*
80          *##*
70          *##*
60          *##*
50          *##*               *
40       *  ####               *
30       *  ####    *          *
20       *  ####    *          *
10 ****#*########***#*#********##********#*#*****************
0….5….1….1….2….2….3….3….4….4….5….5….6
0    5    0    5    0    5    0    5    0    5    0
CPU% per minute (last 60 minutes)
* = maximum CPU%   # = average CPU%

so  I activated storm-control on the interfaces :

3750#sh run int fa 1/0/24
Building configuration…

Current configuration : 394 bytes
!
interface FastEthernet1/0/24
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,120
switchport mode trunk
load-interval 30
storm-control broadcast level 75.00 65.00
storm-control multicast level 75.00 65.00
storm-control unicast level 75.00 65.00
storm-control action shutdown
end

3750#

voice VLAN

3 types

1 – access mode vlan, both IP phone and PC are on the same vlan. a third party phone did not support the concept the voice vlan for exemple or we use a softphone
Nevertheless if the third softphone support it, we can use dot1p. dot1p marking trame is like a dot1q but the vlan field is setted to 0

conf t
int fa 1/0/10
switchport mode access
switchport access vlan 300
! dot1p marking trame
switchport voice vlan dot1p

but we like vlan seperation because it help us with performance and security.

2 – multi vlan access ports: tow ports one vlan ports tagged 802.1q and one Data vlan untagged vlan . we have to configure CDP and not LLDP-MED so that
work, CDP, espacially CDP v2 will say to the vlan : you belong to the vlan 400. Know when the phone boot up and it does DHCP request, it use vlan 400.

int fa 1/0/11
switchport mode access
switchport access vlan 300
switchport voice vlan 400

3 – trunk mode : vlan tagged for the voice and vlan untagged for the data. it is safer to pruned off unused vlans
int fa 1/0/12
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 300
switchport voice vlan 400
switchport trunk allowed vlan 300,400

VTP notes

unable to perform trunk negociation on port fa0/3 because of VTP domain mismatch

3750-(config)#vtp pruning
Cannot modify pruning unless in VTP server mode
3750-(config)#

3750config)#vtp version 2
Cannot modify version in VTP client mode unless the system is in VTP version 3
3750(config)#

VTP transparent mode revision number is always 0 so to be on go back to 0 revision number, we can change the mode to transparent and back again to client or server.se can delete flash

 

VTP configuration ois not on the NVRAM on the startup config but on the vlan.dat.

https://webcache.googleusercontent.com/search?q=cache:hUtN7qqkdaIJ:https://cciepursuit.wordpress.com/2007/06/29/completely-clearing-a-cisco-switchkinda/+&cd=2&hl=fr&ct=clnk&gl=fr

When a new switch is added to a network, with version 2, it would see a vtp message coming and is automatically get automatically the vtp domain. in v3 you have to set it manually. with v3 you can protocet the vtp password.

VTP domains are case sensitive.

version 2 vs version 1 : token ring is supported and Version-Dependent Transparent Mode

In VTPversion 1, a VTP transparent network deviceinspects VTP messages for the domain name and version and forwards a message only if the version and domain name match. Because only one domain is supported, VTP version 2 forwards VTP messages in transparent mode without checking the version 1.2 or 3

Support for extended range VLAN database propagation—VTP version 1 and version 2 support VLANs 1 to 1000 only. In VTP version 3, the entire VLAN range is supported (VLANs 1 to 4094). The pruning of VLANs still applies to VLANs 1 to 1000 only. Extended-range VLANs are supported in VTP version 3 only. Private VLANs are supported in VTP version 3.
Also  only one primary and a one secondery server domain on vtp version 3. and only that primary server can update the vtp databases,
vtp version 3 support mst but what dose it mean I don’t know ????
Do not enable VTP version 2 on a network device unless all of the network devices in the same VTP domain are version 2-capable. When you enable VTP version 2 on a network device, all of the version 2-capable network devices in the domain enable VTP version 2
VTP version 3 supports extended-range VLANs (VLAN numbers 1006 to 4094). If you convert from VTP version 3 to VTP version 2, the VLANs in the range 1006 to 4094 are removed from VTP control

 

VTP version 3 is

 

configuration VTP
! it is server by default
vtp mode server
vtp domain CasESensitive
vtp password PASSW0RD
! Pruning is not enabled by default
vtp pruning
! VTP is version 2 by default

3750#sh vtp status
VTP Version capable             : 1 to 3
VTP version running             : 2
VTP Domain Name                 : VTP_LAB
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : 6416.8d9f.0500
Configuration last modified by 1.1.34.151 at 3-7-93 04:21:00
Local updater ID is 1.1.34.151 on interface Vl1 (lowest numbered VLAN interface found)
Preferred interface name is 1/0/24

Feature VLAN:
————–
VTP Operating Mode                : Server
Maximum VLANs supported locally   : 1005
Number of existing VLANs          : 18
Configuration Revision            : 32
MD5 digest                        : 0xC9 0x40 0xD3 0xBA 0xC2 0x57 0x49 0x70
0x02 0xD5 0x26 0xE6 0x82 0x98 0x80 0xDD
3750#