.


:




:

































 

 

 

 


11. VLAN Cisco.




, .8.6. Cisco 2950-24. 8.2 .

VLAN 20

VLAN 30

 

.8.6. .

 

8.2.

IP
2_1 10.0.0.1/8 Switch1 1 VLAN 20
2_2 10.0.0.3/8 Switch2 1 VLAN 20
3_1 10.0.0.2/8 Switch1 2 VLAN 30
3_2 10.0.0.4/8 Switch2 2 VLAN 30

 

, 2_1 2_2 VLAN 20, 3_1 3_2 VLAN 30.

 

. 2_1 . VLAN, .

 

VLAN 20 VLAN30, .

Switch1. . CLI, VLAN 20 VLAN30 2.

 

VLAN 20. :

 

Switch1# conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#

VLAN 20 VLAN 30 :

 

Switch1(config)# vlan 20

Switch1(config)# interface fastEthernet 0/1

Switch1(config-if-range)# switchport mode access

Switch1(config-if-range)# switchport access vlan 20

Switch1(config-if-range)# exit

Switch1(config)# vlan 30

Switch1(config)# interface fastEthernet 0/2

Switch1(config-if-range)# switchport mode access

Switch1(config-if-range)# switchport access vlan 30

 

VLAN- :

 

Switch1# sh vl br

 

, .8.7.

 

 

. 8.7. Switch1.

 

Switch2 (. 8.8).

 

 

. 8.7. Switch2.

 

, .

. .

 

Switch1 :

 

Switch1> en

Switch1# conf t

Switch1(config)# interface fastEthernet 0/3

Switch1(config)# switchport mode trunk

Switch1(config)# no shutdown

Switch1(config)# exit

 

FastEthernet0/3 , (.8.8).

 

 

.8.8. FastEthernet0/3.

 

Switch2 FastEthernet0/3 .

 

, . 2_1 2_2, 3_1 3_2. .

 

.

 

.

, .8.9. fastEthernet 0/4 .

 

10.0.0.0 : 10.2.0.0 10.3.0.0. IP 255.255.0.0, 8.3.

 

8.3.

IP
2_1 10.2.0.1/16 Switch1 1 VLAN 20
2_2 10.2.0.3/16 Switch2 1 VLAN 20
3_1 10.3.0.2/16 Switch1 2 VLAN 30
3_2 10.3.0.4/16 Switch2 2 VLAN 30

 

.

 

 

. 8.9. .

 

, .

Switch1 :

 

Switch1(config)# interface fastEthernet 0/4

Switch1(config-if)# switchport access vlan 20

 

Switch1 (.8.10):

 

.8.10. Switch1.

 

Switch2 :

 

Switch2(config)# interface fastEthernet 0/4

Switch2(config-if)# switchport access vlan 30

 

Switch2 (.8.11):

 

 

.8.11. Switch2.

 

IP :

 

Router1(config-if)# interface fa0/0

Router1(config-if)# ip address 10.2.0.254 255.255.0.0

Router1(config-if)# no shutdown

Router1(config-if)# interface fa0/1

Router1(config-if)# ip address 10.3.0.254 255.255.0.0

Router1(config-if)# no shutdown

 

. ( 8.4).

 

8.4.

Gataway
2_1 10.2.0.254
2_2 10.2.0.254
3_1 10.3.0.254
3_2 10.3.0.254

 

. .

 





:


: 2018-10-15; !; : 361 |


:

:

.
==> ...

1273 - | 1256 -


© 2015-2024 lektsii.org - -

: 0.02 .