VLAN , . , (. 7). Cisco.
, , VLAN (. 3). Router-on-a-Stick.
3 VLAN
VLAN | |||||||
SW-L2-1 | SW-L2-2 | SW-L3 | |||||
192.168.10.0/24 | 1,2 | 1,2 | 1,2,3 | 25,26 | |||
192.168.20.0/24 | 3,4 | 3,4 | 4,5,6 | 25,26 | |||
192.168.30.0/24 | 5,6 | 5,6 | 7,8,9 | 25,26 |
. 7
, , .
: VLAN !
. . , .
cisco-1>en
cisco-1# configure terminal
cisco-1(config)# interface gigabitEthernet 0/0
cisco-1(config-if)# no shutdown /
cisco-1(config-if)# exit
cisco-1(config)# interface gigabitEthernet 0/0.10 / 10 gigabitEthernet 0/0
cisco-1(config-subif)# encapsulation dot1Q 10 /, 802.1Q VLANID=10
cisco-1(config-subif)# ip address 192.168.10.1 255.255.255.0 / IP-
cisco-1(config-subif)# exit /
cisco-1(config)# interface gigabitEthernet 0/0.20
cisco-1(config-subif)# encapsulation dot1q 20
cisco-1(config-subif)# ip address 192.168.20.1 255.255.255.0
cisco-1(config-subif)# exit
cisco-1(config)# interface gigabitEthernet 0/0.30
cisco-1(config-subif)# encapsulation dot1Q 30
cisco-1(config-subif)# ip address 192.168.30.1 255.255.255.0
cisco-1(config)#^Z
:
cisco-1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES NVRAM up up
GigabitEthernet0/0.10 192.168.10.1 YES manual up up
GigabitEthernet0/0.20 192.168.20.1 YES manual up up
GigabitEthernet0/0.30 192.168.30.1 YES manual up up
: , VLAN . .
|
|
VLAN. ping , . traceroute , VLAN , , VLAN (. 8).
. 8
:
5 / 11
VLAN | ||||||||
SW-L2-1 | SW-L2-2 | SW-L3 | ||||||
192.168.50.0/24 | 5,6 | 5,6 | 3-5 | 14,15 | ||||
192.168.60.0/24 | 3,4 | 3,4 | 6-8 | 14,15 | ||||
192.168.70.0/24 | 1,2 | 1,2 | 9-11 | 14,15 | ||||
172.16.31.0/24 | 3,4 | 3,4 | 13,14 | 5,6 | ||||
172.16.51.0/24 | 5,6 | 5,6 | 15,16 | 5,6 | ||||
172.16.71.0/24 | 7,8 | 7,8 | 17,18 | 5,6 | ||||
192.168.9.0/24 | 1,3 | 1,3 | 2,4 | 23,24 | ||||
192.168.20.0/24 | 2,4 | 2,4 | 6,8 | 23,24 | ||||
192.168.50.0/24 | 5,7 | 5,7 | 10,12 | 23,24 | ||||
10.10.0.0/16 | 1,2 | 1,2 | 1-4 | 22,24 | ||||
10.35.0.0/16 | 3,4 | 3,4 | 5-8 | 22,24 | ||||
10.70.0.0/16 | 5,6 | 5,6 | 9-12 | 22,24 |
:
1. VLAN, VLAN, VLAN
2. VLAN, VLAN .
3. , , .