網頁

顯示具有 技術 標籤的文章。 顯示所有文章
顯示具有 技術 標籤的文章。 顯示所有文章

2011年1月9日 星期日

Configure VLAN on Cisco device(Part II)

Last time, we discuss about "how to configure VLAN on switch". Its objective express
1.Teach you to set trunk between Router and Switch
2.Teach you to set VLAN on Router for different VLAN segment
After doing the above steps, the traffic in different VLAN segment can exchange message.


Today, we will expand Switch and PC device and verify the VLAN function. This Lab will be similar with the production environment and can satisfy the practice necessity. 
The network diagram is as follow:


In this Lab, we want to let the package of vlan 10 and vlan 20 can exchange but vlan 1 fail with vlan 10 or vlan 20.


How to do it now?
(1).Configure Switch in the left-panel
Enable configuration and change hostname 


Set parameter on console terminal line


Add vlans to the vlan database


Configure a trunk port for Router


Configure a trunk port for sw2




Configure access ports 2~3 and vlan 10 for PC1 & PC2


Verify vlan setting


Building configuration



(2).Configure Switch in the right-panel
Enable configuration

Set parameter on console terminal line

Add vlans to the vlan database

Configure a trunk port for sw1

Configure access ports 3~4 and vlan 20 for PC5 & PC6

Verify vlan setting

Building configuration


(3).Configure Router

Enable configuration

Set parameter on console terminal line


Enable the fa1/0 interface


Configure Subinterfaces vlan and ip





Verify vlan and ip setting

Building configuration

(3).Set network parameter on PC1 ~ PC6
  • Configure PC1 (vlan 10)
IP address: 172.16.10.2   Subnet Mask:255.255.255.0    Gateway:171.16.10.1

  • Configure PC2 (vlan 10)
IP address: 172.16.10.3   Subnet Mask:255.255.255.0    Gateway:171.16.10.1

  • Configure PC3 (vlan 1)
IP address: 172.16.1.2   Subnet Mask:255.255.255.0    Gateway:171.16.1.1

  • Configure PC4 (vlan 1)
IP address: 172.16.1.3   Subnet Mask:255.255.255.0    Gateway:171.16.1.1

  • Configure PC5 (vlan 20)
IP address: 172.16.20.2   Subnet Mask:255.255.255.0    Gateway:171.16.20.1

  • Configure PC6 (vlan 20)
IP address: 172.16.20.3   Subnet Mask:255.255.255.0    Gateway:171.16.20.1



(4).Test IP Connectivity by ping command
on PC1, we can ping vlan 10 & 20, but vlan 1 fail



on PC3, we can ping vlan 1, but vlan 10 & 20 fail



on PC5, we can ping vlan 10 & 20, but vlan 1 fail



So the result that the procedure is proved is right in this lab now.

2010年12月30日 星期四

Configure VLAN on Cisco Network Device(Part I)

Recently,I am studying Cisco network technology due to my job will touch some network knowledge. Since go to the present corporation, I have no chance to touch any network skill when someone is the ownership of network engineer. I have to wake up some memory from network lab by myself.

First lab, How to configure VLAN on Cisco Switch & Router?


To search some article by Google and study some network book,the following steps are my lab experience for your reference.
Isolation Between Two Layer 2 VLANs on Switch(refer to Cisco)
A Layer 2 VLAN is the VLAN created in the switch and not configured with the interface vlan command. Hosts in the different Layer 2 VLANs cannot communicate with each other.



(1).Configure Switch by Console
  • Enter global configuration mode

1.Add vlans to the vlan database(VLAN Configuration in VLAN Configuration Mode)

2.Configure a trunk port for Router

3.Assigning Static-Access Ports to a VLAN  for PC1 or PC2




(2).Configure Router by Console
1.Add vlan entries to the vlan database

2.Enable the f0/0 interface

3.Configure Subinterfaces for each vlan


4.Confirm IP and VLAN Setup


5.Write Down Database


(3).Set network parameter on PC1 and PC2
Configure PC1
IP address: 192.168.1.2   Subnet Mask:255.255.255.0    Gateway:192.168.1.1

Configure PC2
IP address: 192.168.2.2   Subnet Mask:255.255.255.0    Gateway:192.168.2.1

(4).Test IP Connectivity between PC1 and PC2 by ping command

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.