0% found this document useful (0 votes)
22 views8 pages

Commend TP

Uploaded by

Yàs Sér
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views8 pages

Commend TP

Uploaded by

Yàs Sér
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

// VLSM

1- Routage Statique

//Cammend SHOW in All Protocol

// Swithe/Router basics configeration

-> Hostname,PassWord , Speed ,Duplex, TelNet#

//Cammend SHOW in All Protocol

2- Routage Dynamique

2-1 OSPF(Signel Area)

2-2 OSPF(Multi Area)

2-3 OSPF(Freater)/COST/BANDWITH#

2-4 OSPF/Static/RIP#

//Cammend SHOW in All Protocol

3- VLAN

3-1 Acces Port

3-2 Trunk Port

3-3 Router inter-Vlan#

//Cammend SHOW in All Protocol

4- STP

4-1 STP#

4-2 PVST

4-3 STP(Freater)#

4-5 RSTP#

4-6 MST#

4-7 EtherChannel#

4-8 HSRP
4-9 Track Objects

4-10 Authontification

4-11 VRRP

4-12 GLBP

4-13
Inter-VLAN Routing

//Cammend SHOW in All Pro

// VLSM

1- Routage Statique

Router> enable

Router# configure terminal

Router(config)#

Router(config)# ip route [adresse de destination] [masque de sous-réseau] [prochaine saut]

Router(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.1

Router(config)# end

Router# show ip route

Router# write memory

Router> enable

Router# show ip route

Router# show ip route 192.168.1.0

Router# show running-config

//Cammend SHOW in All Protocol

// Swithe/Router basics configeration

-> Hostname,PassWord , Speed ,Duplex, TelNet

//Cammend SHOW in All Protocol


2- Routage Dynamique

2-1 OSPF(Signel Area)

=================

Configuration IP de l'interface de loopback

Activer OSPF sur le routeur :


Router(config)# router ospf [numéro de processus OSPF]

Router(config-router)# router ospf 1

Configurer l'ID de routeur OSPF :


Router(config-router)# router-id [ID du routeur OSPF]

Assurez-vous que l'ID du routeur OSPF est unique dans le domaine OSPF. Par exemple :
Router(config-router)# router-id 1.1.1.1

Configurer les réseaux OSPF sur les interfaces :


Router(config-router)# network [adresse réseau] [wildcard mask] area [numéro
d'aire OSPF]

Par exemple :
Router(config-router)# network 192.168.1.0 0.0.0.255 area 0

Router(config-router)# network 192.168.2.0 0.0.0.255 area 0

Vérifier la configuration OSPF :


Router# show ip ospf

Router# show ip ospf interface

Router# show ip ospf neighbor

Sauvegarder la configuration :
Router(config-router)# end

Router# write memory

Afficher la configuration OSPF :


Router# show running-config | section router ospf

Vér

ifier les informations OSPF sur les interfaces :


Router# show ip ospf interface

Vérifier les voisins OSPF :


Router# show ip ospf neighbor

Vérifier la base de données LSDB (Link State Database) OSPF :


Router# show ip ospf database

Vérifier les routes OSPF dans la table de routage :


Router# show ip route ospf

Vérifier l'état global OSPF :


Router# show ip ospf

Router# show ip ospf database

Router# show ip ospf database net

Router# show ip ospf database router

Annonce d'une route par défaut par un routeur OSPF :


Router(config-router)# router ospf [numéro de processus OSPF]

Router(config-router)# default-information originate [always]

2-2 OSPF(Multi Area)

2-3 OSPF(Freater)

2-4 OSPF/Static/RIP

//Cammend SHOW in All Protocol

3- VLAN

3-1 Acces Port

Access the Switch:

Switch> enable

Switch# configure terminal

Create VLANs:

Switch(config)# vlan 10

Switch(config-vlan)# name Sales


Switch(config-vlan)# exit

Switch(config)# vlan 20

Switch(config-vlan)# name Marketing

Switch(config-vlan)# exit

Assign VLANs to Switch Ports:

Switch(config)# interface range fastEthernet 0/1 - 10

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

Switch(config-if-range)# switchport access vlan 10

Switch(config-if-range)# exit

Switch(config)# interface range fastEthernet 0/11 - 20

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

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

Switch(config-if-range)# exit

Verify Configuration:

Switch# show vlan

Switch# show interfaces status

3-2 Trunk Port

Access the Switch:

Switch> enable

Switch# configure terminal

Access the Interface Configuration Mode:

Switch(config)# interface fastEthernet 0/1

Configure the Interface as a Trunk:

Switch(config-if)# switchport mode trunk

Specify the Allowed VLANs (Optional):


Switch(config-if)# switchport trunk allowed vlan [vlan-list]

Configure Trunking Protocol (Optional):

Switch(config-if)# switchport trunk encapsulation dot1q

Verify Configuration:

Switch# show interfaces trunk

3-3 Router inter-Vlan

//Cammend SHOW in All Protocol

4- STP

4-1 STP

4-2 PVST

Enable Per-VLAN Spanning Tree:

Switch(config)# spanning-tree mode pvst

Configure the Bridge Priority for Each VLAN (Optional):

Switch(config)# spanning-tree vlan [vlan-id] priority [priority-value]

Verify Configuration:

Switch# show spanning-tree

Adjust Forwarding Delays (Optional):

Switch(config)# spanning-tree vlan [vlan-id] forward-time [seconds]

Switch(config)# spanning-tree vlan [vlan-id] hello-time [seconds]

Switch(config)# spanning-tree vlan [vlan-id] max-age [seconds]

Configure the Root Bridge for Each VLAN (Optional):

Switch(config)# spanning-tree vlan [vlan-id] root [primary | secondary]

Configure PortFast on Access Ports (Optional):

Switch(config)# interface [interface-type] [interface-number]

Switch(config-if)# spanning-tree portfast

Verify Port States:

Switch# show spanning-tree vlan [vlan-id] brief


Save Configuration:

Switch# write memory

4-3 STP(Freater)

4-5 RSTP

4-6 MST

4-7 EtherChannel

4-8 HSRP

Access RouterA:

RouterA> enable

RouterA# configure terminal

Configure HSRP on the First Interface:

RouterA(config)# interface [interface-type] [interface-number]

RouterA(config-if)# standby [group-number] ip [virtual-ip]

RouterA(config-if)# standby [group-number] priority [priority-value]

RouterA(config-if)# standby [group-number] preempt

For example:

RouterA(config)# interface GigabitEthernet0/0

RouterA(config-if)# standby 1 ip 192.168.1.254

RouterA(config-if)# standby 1 priority 110

RouterA(config-if)# standby 1 preempt

Access RouterB:

RouterB> enable

RouterB# configure terminal

Configure HSRP on the Second Interface:

RouterB(config)# interface [interface-type] [interface-number]

RouterB(config-if)# standby [group-number] ip [virtual-ip]

RouterB(config-if)# standby [group-number] priority [priority-value]

RouterB(config-if)# standby [group-number] preempt


For example:

RouterB(config)# interface GigabitEthernet0/0

RouterB(config-if)# standby 1 ip 192.168.1.254

RouterB(config-if)# standby 1 priority 100

RouterB(config-if)# standby 1 preempt

Verify HSRP Configuration:

RouterA# show standby

RouterB# show standby

//Cammend SHOW in All Protocol

You might also like