Mishaal
1 post

recently i have notice that the switch will select to lowest vlan number as the switch management vlan as well as it will select the lowest vlan when sending snmp i was wandering is there a way that i can select a specific vlan.

also when showing the CDP it will select the lowest vlan, in some cases we have the same vlan in more than 1 switch and in that case i get confuse when reviewing the snmp server for log.

i have over come this problem by making special id for each switch and assign it for every vlan in that switch as example I've 3 vlan 100,101,102 in 3 switches A,B & C so what i did is like this i will assign the ID 119,118,117 for that switches A,B&C so i will give the following ip for each vlan in

Switch A
vlan 100 172.16.100.119 , vlan 101 172.16.101.119, vlan 102 172.16.102.119. .

switch B

vlan 100 172.16.100.118 , vlan 101 172.16.101.118, vlan 102 172.16.102.118. .

switch C
vlan 100 172.16.100.117 , vlan 101 172.16.101.117, vlan 102 172.16.102.117. .

well after doing this it has been easier for me identifying from which switch this log has come.

this my way in overcoming this so, is there any other way or suggestion?

octavian
6 posts

Well, your switches, if they are L2, can reside in multiple vlan's, but will use a single vlan to communicate outside the network, giving the fact that ip default network command accepts only one IP as argument.

So, all your switches (L2) will have to belong to a single management vlan. That is the whole point of having a management vlan.

If you have a MLS switch (L3) you could configure it to use a certain IP address (loopback or whatever SVI you like) to send NTP/SNMP/or any management traffic. The command would be something like source interface NAME for a specific protocol.

Dig on cisco.com for snmp.

Router(config)# snmp-server trap-source interface

Specifies a source interface for trap or inform notifications.

Viewing 1 - 2 of 2

  • 1