Jump to content

Welcome to [ iT ] Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
MU Moi ra - MU SS2

MU Moi ra - MU Co Xua



Hình ảnh

Lab "hay" về VLAN!!!


  • Please log in to reply
No replies to this topic

#1
kiepIT

kiepIT

    Thành viên mới

  • Newbies
  • 1 Bài Viết:
1.Mô hình và yêu cầu:

Posted Image

2.Thực hiện

Switch 1

Switch>en
Switch#vlan database
% 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.

Switch(vlan)#vlan 2 name Technical
VLAN 2 added:
Name: Technical
Switch(vlan)#vlan 3 name Marketing
VLAN 3 added:
Name: Marketing
Switch(vlan)#vlan 4 name Finance
VLAN 4 added:
Name: Finance
Switch(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/4
Switch(config-if)#sw acc vlan 2
Switch(config-if)#exit
Switch(config-if)#int fa0/5
Switch(config-if)#sw acc vlan 3
Switch(config-if)#exit
Switch(config)#int fa0/6
Switch(config-if)#sw acc vlan 4
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw m tr
Switch(config-if)#sw tr allowed vlan all
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#sw m tr

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if)#sw tr all
Switch(config-if)#sw tr allowed vlan all
Switch(config-if)#exit

Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.1.1 255.255.255.0
Switch(config-if)#no shut


Switch 2

Switch>en
Switch#vlan database
% 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.

Switch(vlan)#vlan 2 name Technical
VLAN 2 added:
Name: Technical
Switch(vlan)#vlan 3 name Marketing
VLAN 3 added:
Name: Marketing
Switch(vlan)#vlan 4 name Finance
VLAN 4 added:
Name: Finance
Switch(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/4
Switch(config-if)#sw acc vlan 2
Switch(config-if)#exit
Switch(config-if)#int fa0/5
Switch(config-if)#sw acc vlan 3
Switch(config-if)#exit
Switch(config)#int fa0/6
Switch(config-if)#sw acc vlan 4
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw m tr
Switch(config-if)#sw tr allowed vlan all
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#sw m tr

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if)#sw tr all
Switch(config-if)#sw tr allowed vlan all
Switch(config-if)#exit

Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.2.1 255.255.255.0
Switch(config-if)#no shut



Switch 3

Switch>en
Switch#vlan database
% 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.

Switch(vlan)#vlan 2 name Technical
VLAN 2 added:
Name: Technical
Switch(vlan)#vlan 3 name Marketing
VLAN 3 added:
Name: Marketing
Switch(vlan)#vlan 4 name Finance
VLAN 4 added:
Name: Finance
Switch(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/3
Switch(config-if)#sw acc vlan 2
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#sw acc vlan 3
Switch(config-if)#exit
Switch(config)#int fa0/5
Switch(config-if)#sw acc vlan 4
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw m tr
Switch(config-if)#sw tr allowed vlan all
Switch(config-if)#exit
Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.3.1 255.255.255.0
Switch(config-if)#no shut


Router

Continue with configuration dialog? [yes/no]: no


Press RETURN to get started!



Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.0.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#ip dhcp pool net1
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp pool net2
Router(dhcp-config)#network 192.168.2.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp pool net3
Router(dhcp-config)#network 192.168.3.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp pool net4
Router(dhcp-config)#network 192.168.4.0 255.255.255.0
Router(dhcp-config)#de
Router(dhcp-config)#default-router 192.168.0.1
Router(dhcp-config)#exit

Router(config)#int fa0/0.1

%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to upRouter(config-subif)#
Router(config-subif)#en
Router(config-subif)#en dot1Q 1 na
Router(config-subif)#en dot1Q 1 native
Router(config-subif)#ip add 192.168.1.2 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa0/0.2

%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to upRouter(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add 192.168.2.2 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa0/0.3

%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to upRouter(config-subif)#
Router(config-subif)#en do
Router(config-subif)#en dot1Q 3
Router(config-subif)#ip add 192.168.3.2 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa0/0.4

%LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to upRouter(config-subif)#
Router(config-subif)#en d
Router(config-subif)#en dot1Q 4
Router(config-subif)#ip add 192.168.4.2 255.255.255.0
Router(config-subif)#exit
Router(config)#
%SYS-5-CONFIG_I: Configured from console by console


SaigonLAB Center
IT Service & Training Center
Tel : 08.3.8681.456
Add : 702/1M, Su Van Hanh (nd) Street 10 District, HCMC City

Bài viết này được chỉnh sửa bởi anninh20042000: 04 March 2009 - 01:11 PM







Mu Mới ra - Mu Phục Sinh

Balloon vs. Thorns

MU Phuc Hung

Làm Việc Tài Nhà

Mu Da Nang

Tuyển Nhân Viên Bán Hàng

Tư vấn sức khỏe trực tuyến