Cisco: How to Change VLAN Management on Layer2 Device

Posted under TrainPro Tech Center by Mr Money on Saturday 14 March 2009 at 10:05 am

FYI Cisco layer2 device can only have one VLAN management. This article to show how to change VLAN1 management to VLAN2 using manage command.

1.The following command is to create VLAN management:

Cat3548XL#
Cat3548XL#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Cat3548XL(config)#int vlan1
Cat3548XL(config-if)#ip address 10.1.1.254 255.255.255.0
Cat3548XL(config-if)#no shut
Cat3548XL(config-if)#exit
Cat3548XL(config)#int vlan2
Cat3548XL(config-if)#ip address 10.1.12.254 255.255.255.0
Cat3548XL(config-if)#no shut
Cat3548XL(config-if)#end
Cat3548XL#

2. The above command both VLAN1 and VLAN2 have execute command of no shut. Let look at the result whether both VLAN1 or VLAN2 management is enable.

Cat3548XL#sh run int vlan1
Building configuration…

Current configuration:
!
interface VLAN1
ip address 10.1.1.254 255.255.255.0
no ip directed-broadcast
ip nat outside
end

Cat3548XL#sh run int vlan2
Building configuration…

Current configuration:
!
interface VLAN2
ip address 10.1.2.254 255.255.255.0
no ip directed-broadcast
ip nat outside
shutdown
end

3. As the result shown that VLAN2 is still shutdown. VLAN2 will continue to shut unless VLAN1 IP address is remove or the VLAN1 interface is shutdown. However we can still obtain the result by using the manage command. Let look at the following command.

Cat3548XL#
Cat3548XL#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Cat3548XL(config)#int vlan2
Cat3548XL(config-if)#manage
Cat3548XL(config-if)#end
Cat3548XL#

4. After execute the command manage on VLAN2, let show the running interface for both VLAN. (If the following command is execute from telnet session, by the time manage has been ⏎ , the connection will be lost. Telnet to the VLAN2 is possible now.)

Cat3548XL#sh run int vlan1
Building configuration…

Current configuration:
!
interface VLAN1
ip address 10.1.1.254 255.255.255.0
no ip directed-broadcast
ip nat outside
shutdown
end

Cat3548XL#sh run int vlan2
Building configuration…

Current configuration:
!
interface VLAN2
ip address 10.1.2.254 255.255.255.0
no ip directed-broadcast
ip nat outside
end


How to Set Up Trunk and Vlan on D-link DES-3526 Switch.

Posted under TrainPro Tech Center by Mr Money on Saturday 14 March 2009 at 9:48 am

This is aim to create VLAN on a non-Cisco switches. Let see on how to create VLAN for D-link switch.

Let look into the D-link web management to create VLAN.

DES-3526>Configuration>VLANs>Static VLAN Entry

Step1

Click Add or Configure VLAN by VID List to add a new VLAN.

Step2

Ensure that VID is input with the desire VLAN ID. The example I given, I used VLAN 5.

The VLAN Name can be specified with any name that describe the VLAN purpose.

The desire ports that are in the VLAN 5 required to be select as Egress only and the rest will be Tag and None.

If the D-link switch required to trunk to other switches that has VLAN as well you can enable the port that is connect to the other switch. In the example I am using port 25 to connect to another switch that can be Cisco, D-link or 3Com. Port 25 I have select Tag and Egress enable.

That all that is required to enable a working VLAN.


Copyright © 2010 TrainPro Blog. WP Theme created by Web Top.