Ajout TP-02
This commit is contained in:
30
TP-02/config/vlan_ESW2.conf
Normal file
30
TP-02/config/vlan_ESW2.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
hostname ESW2
|
||||
|
||||
! Configuration des interfaces
|
||||
|
||||
interface f1/1
|
||||
description Connexion vers le VLAN 10
|
||||
|
||||
switchport mode access
|
||||
switchport access vlan 10
|
||||
|
||||
no shutdown
|
||||
|
||||
interface f1/2
|
||||
description Connexion vers le VLAN 20
|
||||
|
||||
switchport mode access
|
||||
switchport access vlan 20
|
||||
|
||||
no shutdown
|
||||
|
||||
interface f1/0
|
||||
description Connexion vers le routeur R2
|
||||
|
||||
switchport mode trunk
|
||||
switchport trunk allowed vlan add 10,20
|
||||
|
||||
no shutdown
|
||||
|
||||
|
||||
end
|
||||
15
TP-02/config/vlan_R02.conf
Normal file
15
TP-02/config/vlan_R02.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
hostname R2
|
||||
|
||||
interface g0/0.10
|
||||
description Gateway pour le reseau 172.16.30.0/24
|
||||
ip address 172.16.30.254 255.255.255.0
|
||||
encapsulation dot1Q 10
|
||||
no shutdown
|
||||
|
||||
interface g0/0.20
|
||||
description Gateway pour le reseau 172.16.40.0/24
|
||||
ip address 172.16.40.254 255.255.255.0
|
||||
encapsulation dot1Q 20
|
||||
no shutdown
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user