Routernél ezt kell megadni saját 03 01 feladat
(vlan1 mindig felügyelet)
(kimeneti cím = első v. utolsó)
(exit nem muszály közben)
ena
conf t
————————————————————
int fa 0/0
no sh
al interfészek beállítása
int fa 0/0.1
encapsulation dot1Q 1
ip address 192.168.1.1 255.255.255.192
int fa 0/0.2
encapsulation dot1Q 2
ip address 192.168.1.65 255.255.255.224
int fa 0/0.3
encapsulation dot1Q 3
ip address 192.168.1.97 255.255.255.240
int fa 0/0.4
encapsulation dot1Q 4
ip address 192.168.1.113 255.255.255.248
stb.
Switch (server)
S1(config)#vlan 10
S1(config-vlan)#name tanulok
S1(config-vlan)#int range f0/1-2
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 10
S1(config-if-range)#exit
S1(config)#
S1(config)#vlan 20
S1(config-vlan)#name tanarok
S1(config-vlan)#int range f0/3-4
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 20
S1(config-if-range)#end
vlan 1 felügyelet 4csoport / külön nem kell megadni, benne marad
vlan database ??? switch függő – lkekérdezni
lekérdezni vlan 2 belép (vlan 1 nem ad semmit)
Switch(config)#vlan ?
Switch(config)#vlan 2 ?
Switch(config-vlan)#?
VLAN configuration commands:
exit Apply changes, bump revision number, and exit mode
name Ascii name of the VLAN
no Negate a command or set its defaults
remote-span Add the Remote Switched Port Analyzer (RSPAN) feature to the VLAN
vlan 2 name 1csoport
vlan 3 name 2csoport
vlan 4 name 3csoport
Switch(config)#vtp ?
domain Set the name of the VTP administrative domain.
mode Configure VTP device mode
password Set the password for the VTP administrative domain
version Set the adminstrative domain to VTP version
vtp mode server
vtp domain iroda
exit
közös interface-nél trunk
int fa 0/1
switchport mode trunk
exit
int fa 0/2
switchport mode trunk
exit
vlanhoz rendelés
int fa 0/3
switchport mode access / felügyelelt
switchport acces vlan 2 / 2-es felügyelet
exit
int fa 0/4
switchport mode access
switchport acces vlan 3
exit
int fa 0/5
switchport mode access
switchport acces vlan 4
exit
Switch (client)
vlan database ???
vtp mode client
vtp domain iroda
int fa 0/1
switchport mode trunk
exit
int fa 0/2
switchport mode access / felügyelelt mód
switchport acces vlan 4 / 4-es felügyelet
exit
int fa 0/3
switchport mode access
switchport acces vlan 2
exit
int fa 0/4
switchport mode access
switchport acces vlan 3
exit
stb.
——————————————————————
vlan -ok törlése
no vlan
no vlan 2
stb.
delete vlan.dat / A parancs kiadása és a switch újraindítása után a korábban konfigurált VLAN-ok többé már nem lesznek elérhetők.
erase startup-config
trunk visszaállítása
interface fa0/1
no switchport trunk allowed vlan
no switchport trunk native vlan
end
Switch(config-if)# switchport mode { access | dynamic { auto | desirable } | trunk }
Routernél ezt kell megadni (vlan1 mindig felügyelet)
interface fastethernet 0/0
no sh
interface fastethernet 0/0.1
encapsulation dot1Q 1
ip address 192.168.1.1 255.255.255.248
(kimeneti cím = első v. utolsó)
(exit nem muszály közben)
interface fastethernet 0/0.2
encapsulation dot1Q 2
ip address 223.0.0.1 255.255.255.192
//marketing
interface fastethernet 0/0.3
encapsulation dot1Q 3
ip address 223.0.0.65 255.255.255.224
//kiszolgálók
interface fastethernet 0/0.4
encapsulation dot1Q 4
ip address 223.0.0.129 255.255.255.248
stb.
- emelet Switchnél (server) állítjuk be
enable módban adjuk meg:
vlan database
vlan 2 name kutatas
vlan 3 name marketing
vlan 4 name kiszolgalo
vtp server
vtp domain group1
exit
conf term
(0/1, 0/2, 0/3 trunk; 0/4 kiszolgáló;0/5-0/8 kutatás,0/9-0/11 marketing)
interface fastethernet 0/1
switchport mode trunk
exit
interface fastethernet 0/2
switchport mode trunk
exit
interface fastethernet 0/3
switchport mode trunk
exit
interface fastethernet 0/4
switchport mode access
switchport acces vlan 4
exit
interface fastethernet 0/5
switchport mode access
switchport acces vlan 2
exit
interface fastethernet 0/6
switchport mode access
switchport acces vlan 2
exit
interface fastethernet 0/7
switchport mode access
switchport acces vlan 2
exit
interface fastethernet 0/8
switchport mode access
switchport acces vlan 2
exit
interface fastethernet 0/9
switchport mode access
switchport acces vlan 3
exit
interface fastethernet 0/10
switchport mode access
switchport acces vlan 3
exit
interface fastethernet 0/11
switchport mode access
switchport acces vlan 3
exit
??? interface vlan 1
ip address 223.0.0.138 255.255.255.248
no sh
exit
- emelet switch (client)
0/1-0/2 trunk,
0/3-0/6 marketing,
vlan database
vtp client
vtp domain group1
Esettanulmány 12. oldal
- emelet
0/1-0/2 trunk
0/3-0/10 8db kutatás
0/11-0/12 2db értékesítés
Kutatás fejlesztés 36
223.0.0.0/26
Maketing 18
223.0.0.64/27
Adminisztráció 14
223.0.0.96/28
Távoli értékesítés 10
223.0.0.112/28
Kiszolgáló 5
223.0.0.128/29
felügyelet 4 (hálózati eszközök)
223.0.0.136/29
soros2
223.0.0.144/30
két router között
223.0.0.148/30
soros1
223.0.0.152/30
Maszk
/24 255.255.255.0
/25 255.255.255.128 10000000
/26 255.255.255.192 11000000
/27 255.255.255.224 11100000
/28 255.255.255.240
/29 255.255.255.248 11111000
/30 255.255.255.252 11111100