Docsity

Configuration de Réseau: Exercices et Commandes Cisco, Notes de Fondements informatiques

Toggle sidebar
bg1
1
Banner moted
router1(confi g) # banner motd #Wel come to Router1 -
Authorized User s Only #
router1(confi g) # ip host router2 160.10.1.2
router1(confi g) #ser vice password-encryption
router1(confi g- if) # bandwidth 64
router1(confi g- if) #med ia -type 10 base T
router1(confi g- if) # description connexion au réseau
lan
Pour attribuer des tables d’hôtes aux adress es :
router (config) #ip host add1 add2
router1(confi g) #ip de faul t-network N°ss r és
OU: ip route 0.0.0.0 0.0.0.0
CDP:
router1(confi g) #cdp run
router1(confi g- if) #cdp enable
(remet à 0 les compteurs de trafique)
router1#cle ar cdp counters
router1(confi g) # cdp timer 50
router1(confi g) # cdp holdtime 170
STATIC ROUTES:
router1(confi g) #ip r oute 10.1.1.0 255 .255.255.0
12.5.10.1
router1(confi g) #ip r oute 0.0.0.0 0.0.0.0 passerelle
RIP :
router1(confi g) # router rip
router1(confi g- router) # network 160.10.0.0
router1(confi g- router) #di stance 75
désactiver l’envoi de Mjr ver un interfac e
router1(confi g- router) #pa ssive-interface fa0/ 0
route par defaut
r(config)#ip route 0.0.0.0 0.0.0.0 {route de
reception}
router1(confi g- router) #neighbor ip add
router1(confi g- if) #ip r ip send/receive versio n 1/2
router1# clear ip rou te *
router1# debu g ip rip
router1# undeb ug all
IGRP :
router1(confi g) # router igrp 200{n° system
autonome}
router1(confi g- router) # network 160.10.0.0
router1# debu g ip igrp events
route r1# debug ip igrp transa ctions
EIGRP :
router1(confi g) # router eigrp 100
router1(confi g- router) # network 160.10.0.0
router1(confi g- router) # network 175.10.0.0
router1# debu g ip eigrp
active la j ournalisation des chargement de
contiguité de voisin
r(config-if)#ei gr p lo g- nei ghb or -cha nge s
desactivé la function de resumé automatique
r(config-if)#no auto-summary
Définie @re sume
r(config-if)#ip summary-addr ess ei gr p
n°SA+@+msk+D A
OSPF :
router1(confi g) # router ospf 1
router1(confi g)#router ospf {id pr ocessus}
router1(confi g- router) # network @ {mask generiqu}
area {id zone }
router1(confi g- router) # network 175.10.1.0 0.0.0.255
area 0
interface loopback
router1(confi g)#interface loopback n°
router1(confi g-if)#ip add {@} {mask}
router(config-i f)#bandwitch n°
router(config-i f)#ip OSPF priority N°
router(config-i f)#ip OSPF cost N°
route par defaut
router1(confi g- router) #de faul t-i nformation-originate
configuration des compteurs ospf
router(config-i f)#ip OSPF hello-inter val 30s
router(config-i f)#ip OSPF dead-inte rval 30s
IP ACCESS-LISTS
standard
r(config)# access-list {n°
acl}{permit/deny}{condition}
r(config)# inte rface {type}
r(config-if)# ip access-group {n° acl }{in/out}
r(config)#access-list 2 deny 17 2.16.1.1
r(config)#access-list 2 permi t 172.16.1.0 0.0.0.255
r(config)#inte rfa ce E 0
r(config-if)#ip access- gr oup 2 in
entendues
r(config)#access6list{n°acl}{deny/permit}{proto cole}
{@+mask generique=source}{@+mask
generique=destination}{eq/gt/it/neq}{port}
r(config)# access-list 100 perm it tcp host 175.10.1.2
any eq telne t
r(config)# access-list 100 perm it icmp host 180.10.1.2
any
r(config)# inter face serial0
r(config-if)# no ip access-group 1 in
r(config-if)# ip access-group 100 i n
ACL NOMMEES :
router1(confi g) #ip a ccess-list extended/ standed
(name)
router1(confi g- ext-na cl)#permit/deny protocole
source msk générique destination msk généri que
opérateur port
STP
_Spanning- tre e{identifiant de vlan}ro ot:de signer le
commutateur ra cine
_Spanning- tre e{identifiant de vlan}{pri ority}:changer
le niveau de priorité
_Spanning- tre e cost{coût}:modifie le co ut STP
_Debug spanni ng- tree:affiche les infor ma tions de
changement topologique STP
Commutateurs
Reinitialis ation de la config du c ommutateur et
rechargement
SW #delete fla sh :vlan.dat
SW #erase star tup-config
SW #reload
SW #delete nvram
Configuration @mac statiques
SW (confi g)#mac-address-tablestatic(@mac de
hote)interface fast Ether net {n°}vlan{nom vlan}
Configuration de la securité de s por ts
SW (confi g)#interfa ce fastethernet 0/2
SW (confi g-if)#switchport por t-security
> enable
# configure terminal
(config)# hostname SW
SW (confi g)# e nab le password cisco
SW (confi g)# i nter face vlan1
SW (confi g-if)# ip address 197.10 .1.99 255.255.255.0
SW (confi g-if)# no shutdown
SW (confi g-if)# exit
SW (confi g)# i p default-gateway 197.10.1.1
SW (confi g)# ma c-address-table static 4444-4444-
4444 vlan 1 int fa0/5
SW (confi g)# e xit
SW # show mac-address-table
SW (confi g)# i nter face fa0/9
SW (confi g-if)# switchport port-se curi ty
SW (confi g-if)# switchport port-se curi ty ma ximum 1
@ IP DE COMMUTATEURS
2950sw3(co nfig) # interface vlan1
2950sw3(co nfig -i f)# ip address 197.10.1.99
255.255.255.0
2950sw3(co nfig -i f)# no shutdown
2950sw3(co nfig -i f)# exit
NAT
Statique
router1(confi g) # ip na t inside source static
{@local}{@gl oba l}
router1(confi g) # inter face ethernet0
router1(confi g- if) # ip na t inside
router1(confi g- if) # inter face serial0
router1(confi g- if) # ip na t outside
router1(confi g- if) # no shut
dynamique
router1(confi g) # ip nat pool {no m pool}{@
debut}{@fin}netmask {msk}
router1(confi g) # ip nat pool pool1 169 .10.1.50
169.10.1.100 netmask 255.255.255.0
router1(confi g) # ip nat inside source l ist {n°acl} pool
{nom pool}
router1(confi g) # access-list {n°acl}
permit{source}{msk generique}
R (config)# interface Ethernet 0
R (config-i f)# ip address 160.10.1.1 255.255.255.0
R (config-i f)# ip nat inside
R (config-i f)# in terface serial 0
R (config-i f)# ip nat outside
PAT
R (config)# access-list 1 permit 160.10.1.0 0.0.0.255
R (config)# ip na t inside source list 1 interface serial0
overload
R (config)# ip na t pool {nom pool }{@
debut}{@fin}netmask {msk}
R (config)# interface Ethernet 0
R (config-i f)# ip address 160.10.1.1 255.255.255.0
R (config-i f)# ip nat inside
R (config-i f)# in terface serial 0
R (config-i f)# ip nat outside
R (config-i f)# exit
show ip nat translations
show ip nat sta tistics
DHCP :
R (config)#i p DHCP pool{nom }
R (config)# ip DHCP pool TOTO
R (dhcp-config )#ne twork{@ reso}{msk}
R(config)#i p dhcp excluded-addr ess{@debut}{@fi n}
R (dhcp-config )#l ea se time {definer duré de bail}
ex:
R(config)#i p dhcp pool subnet 12
R(dhcp-confi g)#ne twork 172.16.20.0
R (dhcp-config )#de faul t-router 172.16 .12.254
R (dhcp-config )#dns-server 172.16.1.2
R (dhcp-config )#ne tbios-name-server 172 .16.1.3
PPP
une authentification unidirectionnelle.
Lab_A (config-if)# encapsulation ppp
Lab_A (config-if)# ppp authentication pap callin
Lab_A (config-if)# ppp pap sent- username Lab_A
password password_pap
Lab_B (config) # username Lab_A password
password_pap
Lab_B (config-if)# encapsulation ppp
Lab_B (config-if)# ppp authentication pap
Pour une authentification bidirectionnelle, il
suffit de procéder comme s uit
Lab_A (config)# username Lab_B password
password_pap
Lab_A (config-if)# encapsulation ppp
Lab_A (config-if)# ppp authentication pap
Lab_A (config-if)# ppp pap sent- username Lab_A
password password_pap
Lab_B (config) # username Lab_A password
password_pap
Lab_B (config-if)# encapsulation ppp
Lab_B (config-if)# ppp authentication pap
Lab_B (config-if)# ppp pap sent- username Lab_B
password password_pap
CHAP
Lab_A (config)# username Lab_B password
password_chap
Lab_A (config-if)# encapsulation ppp
Lab_A (config-if)# ppp authentication chap
Lab_B (config) # username Lab_A password
password_chap
Lab_B (config-if)# encapsulation ppp
Lab_B (config-if)# ppp authentication chap
FRAME RELAY
Routeur LAB A
interface Ser ia l0/0
no ip address
encapsulation frame-relay
!
interface Ser ia l0/0.1 point-to-point
ip address 10.1.1.1 255.255.255.0
frame-relay interface-dlci 100
!
interface Ser ia l0/0.2 multipoint
ip address 10.1.2.1 255.255.255.0
frame-relay interface-dlci 101
frame-relay interface-dlci 102
!
router rip
network 10.0.0.0
ROUTEUR LAB D
interface Ser ia l0/0
ip address 10.1.1.2 255.255.255.0
encapsulation frame-relay
frame-relay interface-dlci 200
router rip
network 10.0.0.0
ROUTEUR B
interface Ser ia l0/0
ip address 10.1.2.2 255.255.255.0
encapsulation frame-relay
frame-relay interface-dlci 300
router rip
network 10.0.0.0
ROUTEUR C
interface Ser ia l0/0
ip address 10.1.2.3 255.255.255.0
encapsulation frame-relay
frame-relay interface-dlci 400
router rip
network 10.0.0.0
ISDN BRI-BRI using Legac y DDR
router1(confi g) # isdn switch-type ba sic- ni
router1(confi g) # dia ler-li st 1 protocol ip permit
router1(confi g) # username router 2 password cisco
router1(confi g) # inter face bri0
router1(confi g- if) # encap ppp
router1(confi g- if) # ip ad dress 200.10.1.1
255.255.255.0
router1(confi g- if) # isdn spid1 32177820 010 100
router1(confi g- if) # dia ler- gr ou p 1
router1(confi g- if) # dia ler map ip 200.10.1.2 name
router2 broadcast 7782002
router1(confi g- if) # ppp authentication chap
router1(confi g- if) # no shut
ISDN BRI-BRI using Dialer P rofiles
router1(confi g) # isdn switch-type ba sic- ni
router1(confi g) # dia ler-li st 1 protocol ip permit
router1(confi g) # user name router2 password cisco
router1(confi g) # inter face bri0
router1(confi g- if) # encap ppp
router1(confi g- if) # ppp authentication chap
router1(confi g- if) # isdn spid1 32177820 010 100
router1(confi g- if) # dia ler pool-member 1
router1(confi g- if) # no shut
router1(confi g- if) # inter face dialer 1
router1(confi g- if) # no shut
router1(confi g- if) # ip ad dress 200.10.1.1
255.255.255.0
router1(confi g- if) # encap ppp
router1(confi g- if) # dia ler- gr ou p 1
router1(confi g- if) # dia ler pool 1
router1(confi g- if) # dia ler r emo te- name router2
router1(confi g- if) # dia ler string 7782002
router1(confi g- if) # ppp authentication chap
ISDN P RI us ing Dialer Profiles
router1(confi g) # isdn switch-type ba sic- ni
router1(confi g) # dia ler-li st 1 protocol ip permit
router1(confi g) # username router 2 pa sswor d cisco
router1(confi g) # inter face bri0/0
router1(confi g- if) # encap ppp
router1(confi g- if) # ppp authentication chap
router1(confi g- if) # isdn spid1 32177820 010 100
router1(confi g- if) # dia ler pool-member 1
router1(confi g- if) # no shut
router1(confi g- if) # inter face dialer 2
router1(confi g- if) # no shut
router1(confi g- if) # ip ad dress 201.10.1.1
255.255.255.0
router1(confi g- if) # encap ppp
router1(confi g- if) # dia ler- gr ou p 1
router1(confi g- if) # dia ler pool 1
router1(confi g- if) # dia ler r emo te- name router2
router1(confi g- if) # dia ler string 7782002
router1(confi g- if) # ppp authentication chap
router2(confi g) # isdn switch-type pr imar y-5e sss
router2(confi g) # dia ler-li st 1 protocol ip permit
router2(confi g) # username router 1 pa ssword cisco
router2(confi g) # controller t1 0/0
router2(confi g- controller)# framing esf
router2(confi g- controller)# linecode b8zs
router2(confi g- controller)# pri-group timeslots 1-24
router2(confi g- controller)# exit
router2(confi g) # inter face serial0/0:23
router2(confi g- if) # encapsulation ppp
router2(confi g- if) # ppp authentication chap
router2(confi g- if) # dia ler pool-member 2
router2(confi g- if) # no shut
router2(confi g- if) # inter face dialer 2
router2(confi g- if) # ip ad dress 201.10.1.2
255.255.255.0
router2(confi g- if) # encapsulation ppp
router2(confi g-if)# dialer-group 1
VLAN
Configuration du switch_A
Création des VLANs
SW_A# vlan da tabase
SW _A(vla n)# vla n 2 name VLAN_2
SW _A(vla n)# vla n 3 name VLAN_3
SW _A(vla n)# vla n 4 name VLAN_4
SW _A(vla n)# vtp domain cisco
SW _A(vla n)# vtp server
SW _A(vla n)# e xit
Création des trunk
SW _A(con fig) # inter face fastEthernet 0/1
SW _A(con fig- if) # switchport mode trunk
SW _A(con fig- if) # switchport trunk al lowed vlan 2-4
SW _A(con fig- if) # exit
SW _A(con fig) # inter face fastEthernet 0/8
SW _A(con fig- if) # switchport mode trunk
SW _A(con fig- if) # switchport trunk al lowed vlan 2-4
SW _A(con fig- if) # exit
Configuration du switch_A
Attribution de s VLANs aux ports
SW _A(con fig) # inter face fastEthernet 0/2
SW _A(con fig- if) # switchport mode access
SW _A(con fig- if) # switchport access vlan 2
SW _A(con fig- if) # exit
SW _A(con fig) # inter face fastEthernet 0/3
SW _A(con fig- if) # switchport mode access
SW _A(con fig- if) # switchport access vlan 3
SW _A(con fig- if) # exit
SW _A(con fig) # inter face fastEthernet 0/4
SW _A(con fig- if) # switchport mode access
SW _A(con fig- if) # switchport access vlan 4
SW _A(con fig- if) # exit
Configuration du switch_B
Création des VLANs
Adhésion a u domaine cisco
SW _B# vlan da tabase
SW _B(vla n)# vtp domain cisco
SW _B(vla n)# vtp client
SW _B(vla n)# e xit
Création du trunk
SW _B(confi g) # inter face fastEthernet 0/1
SW _B(confi g- if) # switchport mode trunk
SW _B(confi g- if) # switchport trunk al lowed vlan 2-4
SW _B(confi g- if) # exit
Configuration du switch_B
Attribution de s VLANs aux ports
SW _B(confi g) # inter face fastEthernet 0/2
SW _B(confi g- if) # switchport mode access
SW _B(confi g- if) # switchport access vlan 2
SW _B(confi g- if) # exit
SW _B(confi g) # inter face fastEthernet 0/3
SW _B(confi g- if) # switchport mode access
SW _B(confi g- if) # switchport access vlan 3
SW _B(confi g- if) # exit
SW _B(confi g) # inter face fastEthernet 0/ 4
SW _B(confi g- if) # switchport mode access
SW _B(confi g- if) # switchport access vlan 4
SW _B(confi g- if) # exit
Configuration du Routeur R1
R1(config)# i nter face fastEthernet 0/0
R1(config-if)# ip address 200.0.0.1 255.255.255.0
R1(config-if)# exit
R1(config)# i nter face fastEthernet 0/0 .2
R1(config-subif)# encapsulation dot1q 2
R1(config-subif)# ip address 10.0.0.1 255.255.255.0
R1(config-subif)# exit
R1(config)# i nter face fastEthernet 0/0 .3
R1(config-subif)# encapsulation dot1q 3
R1(config-subi f)# ip address 172.16.0.1
255.255.255.0
R1(config-subif)# exit
R1(config)# i nter face fastEthernet 0/0 .4
R1(config-subif)# encapsulation dot1q 4
R1(config-subif)# ip address 192.168.0.1
255.255.255.0
R1(config-subif)# exit
TELNET :
router1> telne t 160.10.1.2
router1# disconnect 1
TFTP :
router4# copy running-config tftp
router4# copy tftp startup-config
TRACE ROUTE:
router1#trace route 192.168.2.2
router1(confi g) #defaukt-route 192.168.0.254
docsity.com

Aperçu partiel du texte

Télécharge Configuration de Réseau: Exercices et Commandes Cisco et plus Notes au format PDF de Fondements informatiques sur Docsity uniquement!

Banner moted router1(config)# banner motd #Welcome to Router1 - Authorized Users Only # router1(config)# ip host router2 160.10.1. router1(config)#service password-encryption router1(config-if)# bandwidth 64 router1(config-if)#media-type 10 base T router1(config-if)# description connexion au réseau lan Pour attribuer des tables d’hôtes aux adresses : router (config)#ip host add1 add router1(config)#ip default-network N°ss rés OU : ip route 0.0.0.0 0.0.0.

CDP: router1(config)#cdp run router1(config-if)#cdp enable (remet à 0 les compteurs de trafique) router1#clear cdp counters router1(config)# cdp timer 50 router1(config)# cdp holdtime 170

STATIC ROUTES: router1(config)#ip route 10.1.1.0 255.255.255. 12.5.10. router1(config)#ip route 0.0.0.0 0.0.0.0 passerelle

RIP : router1(config)# router rip router1(config-router)# network 160.10.0. router1(config-router)#distance 75 désactiver l’envoi de Mjr ver un interface router1(config-router)#passive-interface fa0/ route par defaut r(config)#ip route 0.0.0.0 0.0.0.0 {route de reception} router1(config-router)#neighbor ip add router1(config-if)#ip rip send/receive version 1/ router 1 # clear ip route * router1# debug ip rip router1# undebug all

IGRP : router1(config)# router igrp 200{n° system autonome} router1(config-router)# network 160.10.0. router1# debug ip igrp events router1# debug ip igrp transactions

EIGRP : router1(config)# router eigrp 100 router1(config-router)# network 160.10.0. router1(config-router)# network 175.10.0. router1# debug ip eigrp active la journalisation des chargement de contiguité de voisin r(config-if)#eigrp log-neighbor-changes desactivé la function de resumé automatique r(config-if)#no auto-summary Définie @resume r(config-if)#ip summary-address eigrp n°SA+@+msk+DA

OSPF : router1(config)# router ospf 1 router1(config)#router ospf {id processus} router1(config-router)# network @ {mask generiqu} area {id zone} router1(config-router)# network 175.10.1.0 0.0.0. area 0 interface loopback router1(config)#interface loopback n° router1(config-if)#ip add {@} {mask} router(config-if)#bandwitch n° router(config-if)#ip OSPF priority N° router(config-if)#ip OSPF cost N° route par defaut router1(config-router)#default-information-originate configuration des compteurs ospf router(config-if)#ip OSPF hello-interval 30s router(config-if)#ip OSPF dead-interval 30s

IP ACCESS-LISTS standard r(config)# access-list {n° acl}{permit/deny}{condition} r(config)# interface {type} r(config-if)# ip access-group {n° acl}{in/out} r(config)#access-list 2 deny 172.16.1. r(config)#access-list 2 permit 172.16.1.0 0.0.0. r(config)#interface E 0 r(config-if)#ip access-group 2 in entendues r(config)#access 6 list{n°acl}{deny/permit}{protocole} {@+mask generique=source}{@+mask generique=destination}{eq/gt/it/neq}{port} r(config)# access-list 100 permit tcp host 175.10.1. any eq telnet r(config)# access-list 100 permit icmp host 180.10.1. any r(config)# interface serial r(config-if)# no ip access-group 1 in r(config-if)# ip access-group 100 in ACL NOMMEES : router1(config)#ip access-list extended/standed (name) router1(config-ext-nacl)#permit/deny protocole source msk générique destination msk générique opérateur port

STP _Spanning-tree{identifiant de vlan}root:designer le commutateur racine _Spanning-tree{identifiant de vlan}{priority}:changer le niveau de priorité _Spanning-tree cost{coût}:modifie le cout STP _Debug spanning-tree:affiche les informations de changement topologique STP

Commutateurs Reinitialisation de la config du commutateur et rechargement SW #delete flash :vlan.dat SW #erase startup-config SW #reload SW #delete nvram

Configuration @mac statiques SW (config)#mac-address-tablestatic(@mac de hote)interface fast Ethernet {n°}vlan{nom vlan} Configuration de la securité des ports SW (config)#interface fastethernet 0/ SW (config-if)#switchport port-security

> enable

configure terminal

(config)# hostname SW SW (config)# enable password cisco SW (config)# interface vlan SW (config-if)# ip address 197.10.1.99 255.255.255. SW (config-if)# no shutdown SW (config-if)# exit SW (config)# ip default-gateway 197.10.1.

SW (config)# mac-address-table static 4444-4444- 4444 vlan 1 int fa0/ SW (config)# exit SW # show mac-address-table

SW (config)# interface fa0/ SW (config-if)# switchport port-security SW (config-if)# switchport port-security maximum 1

@ IP DE COMMUTATEURS 2950sw3(config)# interface vlan 2950sw3(config-if)# ip address 197.10.1. 255.255.255. 2950sw3(config-if)# no shutdown 2950sw3(config-if)# exit

NAT

Statique router1(config)# ip nat inside source static {@local}{@global} router1(config)# interface ethernet router1(config-if)# ip nat inside router1(config-if)# interface serial router1(config-if)# ip nat outside router1(config-if)# no shut dynamique router1(config)# ip nat pool {nom pool}{@ debut}{@fin}netmask {msk} router1(config)# ip nat pool pool1 169.10.1. 169.10.1.100 netmask 255.255.255. router1(config)# ip nat inside source list {n°acl} pool {nom pool} router1(config)# access-list {n°acl} permit{source}{msk generique} R (config)# interface Ethernet 0 R (config-if)# ip address 160.10.1.1 255.255.255. R (config-if)# ip nat inside R (config-if)# interface serial 0 R (config-if)# ip nat outside

PAT

R (config)# access-list 1 permit 160.10.1.0 0.0.0. R (config)# ip nat inside source list 1 interface serial overload R (config)# ip nat pool {nom pool}{@ debut}{@fin}netmask {msk} R (config)# interface Ethernet 0 R (config-if)# ip address 160.10.1.1 255.255.255. R (config-if)# ip nat inside R (config-if)# interface serial 0 R (config-if)# ip nat outside R (config-if)# exit show ip nat translations show ip nat statistics

DHCP : R (config)#ip DHCP pool{nom } R (config)# ip DHCP pool TOTO R (dhcp-config)#network{@ reso}{msk}

R(config)#ip dhcp excluded-address{@debut}{@fin} R (dhcp-config)#lease time {definer duré de bail} ex: R(config)#ip dhcp pool subnet 12 R(dhcp-config)#network 172.16.20. R (dhcp-config)#default-router 172.16.12. R (dhcp-config)#dns-server 172.16.1. R (dhcp-config)#netbios-name-server 172. 1 6.1. PPP une authentification unidirectionnelle. Lab_A (config-if)# encapsulation ppp Lab_A (config-if)# ppp authentication pap callin Lab_A (config-if)# ppp pap sent-username Lab_A password password_pap

Lab_B (config)# username Lab_A password password_pap Lab_B (config-if)# encapsulation ppp Lab_B (config-if)# ppp authentication pap Pour une authentification bidirectionnelle, il suffit de procéder comme suit Lab_A (config)# username Lab_B password password_pap Lab_A (config-if)# encapsulation ppp Lab_A (config-if)# ppp authentication pap Lab_A (config-if)# ppp pap sent-username Lab_A password password_pap

Lab_B (config)# username Lab_A password password_pap Lab_B (config-if)# encapsulation ppp Lab_B (config-if)# ppp authentication pap Lab_B (config-if)# ppp pap sent-username Lab_B password password_pap CHAP Lab_A (config)# username Lab_B password password_chap Lab_A (config-if)# encapsulation ppp Lab_A (config-if)# ppp authentication chap

Lab_B (config)# username Lab_A password password_chap Lab_B (config-if)# encapsulation ppp Lab_B (config-if)# ppp authentication chap

FRAME RELAY

Routeur LAB A interface Serial0/ no ip address encapsulation frame-relay ! interface Serial0/0.1 point-to-point ip address 10.1.1.1 255.255.255. frame-relay interface-dlci 100 ! interface Serial0/0.2 multipoint ip address 10.1.2.1 255.255.255. frame-relay interface-dlci 101 frame-relay interface-dlci 102 ! router rip network 10.0.0.

ROUTEUR LAB D interface Serial0/ ip address 10.1.1.2 255.255.255. encapsulation frame-relay frame-relay interface-dlci 200 router rip network 10.0.0.

ROUTEUR B interface Serial0/ ip address 10.1.2.2 255.255.255. encapsulation frame-relay frame-relay interface-dlci 300 router rip network 10.0.0.

ROUTEUR C interface Serial0/ ip address 10.1.2.3 255.255.255. encapsulation frame-relay frame-relay interface-dlci 400 router rip network 10.0.0. ISDN BRI-BRI using Legacy DDR router1(config)# isdn switch-type basic-ni router1(config)# dialer-list 1 protocol ip permit router1(config)# username router2 password cisco router1(config)# interface bri router1(config-if)# encap ppp router1(config-if)# ip address 200.10.1. 255.255.255. router1(config-if)# isdn spid1 32177820010100 router1(config-if)# dialer-group 1 router1(config-if)# dialer map ip 200.10.1.2 name router2 broadcast 7782002 router1(config-if)# ppp authentication chap router1(config-if)# no shut ISDN BRI-BRI using Dialer Profiles router1(config)# isdn switch-type basic-ni router1(config)# dialer-list 1 protocol ip permit router1(config)# username router2 password cisco router1(config)# interface bri router1(config-if)# encap ppp router1(config-if)# ppp authentication chap router1(config-if)# isdn spid1 32177820010100 router1(config-if)# dialer pool-member 1 router1(config-if)# no shut router1(config-if)# interface dialer 1 router1(config-if)# no shut router1(config-if)# ip address 200.10.1. 255.255.255. router1(config-if)# encap ppp router1(config-if)# dialer-group 1 router1(config-if)# dialer pool 1 router1(config-if)# dialer remote-name router router1(config-if)# dialer string 7782002 router1(config-if)# ppp authentication chap ISDN PRI using Dialer Profiles router1(config)# isdn switch-type basic-ni router1(config)# dialer-list 1 protocol ip permit router1(config)# username router2 password cisco router1(config)# interface bri0/ router1(config-if)# encap ppp router1(config-if)# ppp authentication chap router1(config-if)# isdn spid1 32177820010100 router1(config-if)# dialer pool-member 1 router1(config-if)# no shut router1(config-if)# interface dialer 2 router1(config-if)# no shut router1(config-if)# ip address 201.10.1. 255.255.255. router1(config-if)# encap ppp router1(config-if)# dialer-group 1 router1(config-if)# dialer pool 1 router1(config-if)# dialer remote-name router router1(config-if)# dialer string 7782002 router1(config-if)# ppp authentication chap

router2(config)# isdn switch-type primary-5esss router2(config)# dialer-list 1 protocol ip permit router2(config)# username router1 password cisco router2(config)# controller t1 0/ 0 router2(config-controller)# framing esf router2(config-controller)# linecode b8zs router2(config-controller)# pri-group timeslots 1- 24 router2(config-controller)# exit router2(config)# interface serial0/0: router2(config-if)# encapsulation ppp router2(config-if)# ppp authentication chap router2(config-if)# dialer pool-member 2 router2(config-if)# no shut

router2(config-if)# interface dialer 2 router2(config-if)# ip address 201.10.1. 255.255.255. router2(config-if)# encapsulation ppp router2(config-if)# dialer-group 1

VLAN

Configuration du switch_A Création des VLANs SW_A# vlan database SW A(vlan)# vlan 2 name VLAN SW A(vlan)# vlan 3 name VLAN SW A(vlan)# vlan 4 name VLAN SW _A(vlan)# vtp domain cisco SW _A(vlan)# vtp server SW _A(vlan)# exit

Création des trunk SW _A(config)# interface fastEthernet 0/ SW _A(config-if)# switchport mode trunk SW _A(config-if)# switchport trunk allowed vlan 2- 4 SW _A(config-if)# exit SW _A(config)# interface fastEthernet 0/ SW _A(config-if)# switchport mode trunk SW _A(config-if)# switchport trunk allowed vlan 2- 4 SW _A(config-if)# exit

Configuration du switch_A Attribution des VLANs aux ports SW _A(config)# interface fastEthernet 0/ SW _A(config-if)# switchport mode access SW _A(config-if)# switchport access vlan 2 SW _A(config-if)# exit SW _A(config)# interface fastEthernet 0/ SW _A(config-if)# switchport mode access SW _A(config-if)# switchport access vlan 3 SW _A(config-if)# exit SW _A(config)# interface fastEthernet 0/ SW _A(config-if)# switchport mode access SW _A(config-if)# switchport access vlan 4 SW _A(config-if)# exit

Configuration du switch_B Création des VLANs Adhésion au domaine cisco SW _B# vlan database SW _B(vlan)# vtp domain cisco SW _B(vlan)# vtp client SW _B(vlan)# exit Création du trunk SW _B(config)# interface fastEthernet 0/ SW _B(config-if)# switchport mode trunk SW _B(config-if)# switchport trunk allowed vlan 2- 4 SW _B(config-if)# exit

Configuration du switch_B Attribution des VLANs aux ports SW _B(config)# interface fastEthernet 0/ SW _B(config-if)# switchport mode access SW _B(config-if)# switchport access vlan 2 SW _B(config-if)# exit SW _B(config)# interface fastEthernet 0/ SW _B(config-if)# switchport mode access SW _B(config-if)# switchport access vlan 3 SW _B(config-if)# exit SW _B(config)# interface fastEthernet 0/ SW _B(config-if)# switchport mode access SW _B(config-if)# switchport access vlan 4 SW _B(config-if)# exit

Configuration du Routeur R R1(config)# interface fastEthernet 0/ R1(config-if)# ip address 200.0.0.1 255.255.255. R1(config-if)# exit

R1(config)# interface fastEthernet 0/0. R1(config-subif)# encapsulation dot1q 2 R1(config-subif)# ip address 10.0.0.1 255.255.255. R1(config-subif)# exit

R1(config)# interface fastEthernet 0/0. R1(config-subif)# encapsulation dot1q 3 R1(config-subif)# ip address 172.16.0. 255.255.255. R1(config-subif)# exit

R1(config)# interface fastEthernet 0/0. R1(config-subif)# encapsulation dot1q 4 R1(config-subif)# ip address 192.168.0. 255.255.255. R1(config-subif)# exit

TELNET : router1> telnet 160.10.1. router1# disconnect 1 TFTP : router4# copy running-config tftp router4# copy tftp startup-config

TRACE ROUTE: router1#traceroute 192.168.2. router1(config)#defaukt-route 192.168.0.

docsity.com