Académique Documents
Professionnel Documents
Culture Documents
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
« Configuration BASIC »
Federateur(config)#vlan 110
Federateur(config-vlan)#name DATA1
Federateur(config-vlan)#vlan 120
Federateur(config-vlan)#name DATA2
Federateur(config-vlan)#vlan 130
Federateur(config-vlan)#name DATA3
Federateur(config-vlan)#vlan 199
Federateur(config-vlan)#name Management
Federateur(config-vlan)#exit
Federateur(config)#exit
Federateur#
Federateur#wr
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Federateur#
Federateur#show vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
110 enet 100110 1500 - - - - - 0 0
120 enet 100120 1500 - - - - - 0 0
130 enet 100130 1500 - - - - - 0 0
199 enet 100199 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Switch>enable
Switch#conf t
Switch(config)#hostname SA1
SA1(config)#username youssef secret sopra
SA1(config)#enable secret tekup
SA1(config)#no ip domain-lookup
SA1(config)#line console 0
SA1(config-line)#login local
SA1(config-line)#exit
SA1(config)#line vty 0 4
SA1(config-line)#login local
SA1(config-line)#exit
SA1(config)#
SA1(config)#vlan 110
SA1(config-vlan)#name DATA1
SA1(config-vlan)#vlan 120
SA1(config-vlan)#name DATA2
SA1(config-vlan)#vlan 130
SA1(config-vlan)#name DATA3
SA1(config-vlan)#vlan 199
SA1(config-vlan)#name Management
SA1(config-vlan)#exit
SA1(config)#interface F0/18
SA1(config-if)#switchport mode access
SA1(config-if)#switchport access vlan 199
SA1(config-if)#exit
SA1(config)#int F0/1
SA1(config-if)#switchport mode access
SA1(config-if)#switchport access vlan 110
SA1(config-if)#exit
SA1(config)#interface f0/2
SA1(config-if)#switchport mode access
SA1(config-if)#switchport access vlan 120
SA1(config-if)#exit
SA1(config)#int f0/3
SA1(config-if)#switchport mode access
SA1(config-if)#switchport access vlan 130
SA1(config-if)#end
SA1#
%SYS-5-CONFIG_I: Configured from console by console
SA1#wr
Building configuration...
[OK]
SA1#
SA1#show vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
110 enet 100110 1500 - - - - - 0 0
120 enet 100120 1500 - - - - - 0 0
SA1#
SA1#
Switch>enable
Switch#conf t
Switch(config)#hostname SA2
SA2(config)#no ip domain-lookup
SA2(config)#username youssef secret sopra
SA2(config)#enable secret tekup
SA2(config)#line console 0
SA2(config-line)#login locale
SA2(config-line)#exit
SA2(config)#line vty 0 4
SA2(config-line)#login local
SA2(config-line)#exit
« Création des VLAN »
SA2(config)#vlan 110
SA2(config-vlan)#name DATA1
SA2(config-vlan)#vlan 120
SA2(config-vlan)#name DATA2
SA2(config-vlan)#vlan 130
SA2(config-vlan)#name DATA3
SA2(config-vlan)#vlan 199
SA2(config-vlan)#name Management
SA2(config-vlan)#exit
« Affectation de Port/VLAN »
SA2(config)#int f0/18
SA2(config-if)#switchport mode access
SA2(config-if)#switchport access vlan 199
SA2(config-if)#exit
SA2(config)#int f0/1
SA2(config-if)#switchport mode access
SA2(config-if)#switchport access vlan 110
SA2(config-if)#exit
SA2(config)#int f0/2
SA2(config-if)#switchport mode access
SA2(config-if)#switchport access vlan 120
SA2(config-if)#exit
SA2(config)#int
SA2(config)#interface f0/3
SA2(config-if)#switchport mode access
SA2(config-if)#switchport access vlan 130
SA2(config-if)#^Z
SA2#wr
SA2#show vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
110 enet 100110 1500 - - - - - 0 0
120 enet 100120 1500 - - - - - 0 0
130 enet 100130 1500 - - - - - 0 0
199 enet 100199 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Federateur#
Federateur#conf t
Federateur(config)#interface range g1/0/1-3
Federateur(config-if-range)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured
to "trunk" mode.
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured
to "trunk" mode.
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured
to "trunk" mode.
« ERREUR : Obligation de choisir le protocole de Dot1Q ou ISL parce que Switch 3650
supporte les deux protocoles »
SA2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SA2(config)#int
SA2(config)#interface g0/1
SA2(config-if)#switchport mode trunk
SA2(config-if)#switchport trunk native vlan 199
SA2(config-if)#switchport trunk allowed vlan 110,120,130,199
SA2(config-if)#
SA2(config-if)#^Z
SA2#wr
SA2#
« Vérifier Configuration de TRUNK au niveau Fédérateur »
Federateur#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig1/0/2 on 802.1q trunking 199
Gig1/0/3 on 802.1q trunking 199
Federateur#
R2#show ip route
R2#
« Configuration DHCP de 3 Pool au niveau Routeur R2 : VLAN-110, VLAN-120 et
VLAN-130 »
R2#conf t
R2(config)#ip dhcp excluded-address 10.10.110.1 10.10.110.39
R2(config)#ip dhcp excluded-address 10.10.120.1 10.10.120.40
R2(config)#ip dhcp excluded-address 10.10.130.1 10.10.130.41
SA1#conf t
SA1(config)#ip default-gateway 10.10.199.1
SA1(config)#interface vlan 199
SA1(config-if)#ip address 10.10.199.11 255.255.255.0
SA1(config-if)#end
SA1#wr
SA2#conf t
SA2(config)#ip default-gateway 10.10.199.1
SA2(config)#interface vlan 199
SA2(config-if)#ip address 10.10.199.12 255.255.255.0
SA2(config-if)#end
SA2#wr
C:\>ping 10.10.199.102
C:\>ping 10.10.110.40
C:\>ping 10.10.110.40
C:\>tracert 10.10.110.40
1 0 ms 0 ms 0 ms 10.10.199.1
2 0 ms 1 ms 0 ms 10.10.110.40
Trace complete.
C:\>tracert 10.10.199.102
1 0 ms 0 ms 0 ms 10.10.199.102
Trace complete.
C:\>telnet 10.10.199.10
Trying 10.10.199.10 ...Open
Username: youssef
Password:
Federateur>enable
Password:
Federateur#
Federateur#
Federateur#
Federateur#wr
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Federateur#