DHCP V4

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 5

DHCP V4

Router (config)# ip dhcp pool VLAN_10

Router (dhcp-config)# network 172.16.10.0 255.255.255.0

Router (dhcp-config)# default-router 172.16.10.1

Router (dhcp-config)# dns-server 172.16.2.10

Router (config)# ip dhcp excluded-address 172.16.10.1 172.16.10.20

DHCP V6

#stateless

ipv6 dhcp pool statelessdhcp

dns-server 2001:DB8:ACAD:A::A

domain-name statelessdhcp.com

exit

#Sur l’interface G0/0 activer le pool créé (statelessdhcp ) et l’option nd other-config-flag

interface GigabitEthernet0/0

ipv6 nd other-config-flag

ipv6 dhcp server statelessdhcp

end

Write

#stateful sur R2 avec une durée de Bail 86400 S (Soit un jour)

ipv6 dhcp pool statefuldhcp

address prefix 2001:DB8:ACAD:C::/80 lifetime 86400 86400

dns-server 2001:DB8:ACAD:A::A

domain-name statefuldhcp.com

#Sur l’interface G0/0 activer le pool créé (statefuldhcp ) et l’option nd managed-config-flag

interface GigabitEthernet0/0

ipv6 nd managed-config-flag

ipv6 dhcp server statefuldhcp

end

Write
OSPFv2

Routeur R1

router ospf 1

router-id 1.1.1.1

network 172.16.0.0 0.0.0.3 area 0

network 172.16.0.4 0.0.0.3 area 0

network 192.168.3.0 0.0.0.255 area 10

network 192.168.2.0 0.0.0.255 area 10

network 192.168.1.0 0.0.0.255 area 10

network 192.168.0.0 0.0.0.255 area 10

R1#write

OR

R1(config)#router ospf 1

R1(config-rtr)#area 10 range 192.168.0.0 255.255.252.0

R1#write

#Routeur R2 -Connecte sur internet

ip route 0.0.0.0 0.0.0.0 Serial0/1/0

router ospf 1

router-id 2.2.2.2

network 192.168.4.0 0.0.0.255 area 20

network 192.168.5.0 0.0.0.255 area 20

network 192.168.6.0 0.0.0.255 area 20

network 192.168.7.0 0.0.0.255 area 20

network 172.16.0.0 0.0.0.3 area 0

network 172.16.0.8 0.0.0.3 area 0

default-information originate

R2#write
Routeur R3

router ospf 1

router-id 3.3.3.3

network 172.16.0.4 0.0.0.3 area 0

network 172.16.0.8 0.0.0.3 area 0

R3#write

Or

R2(config)#router ospf 1

R2(config-rtr)#area 0 range 192.168.4.0 255.255.252.0

Ospfv3

#Configuration du protocole OSPFv3

Routeur R1

R1#config t

R1(config)#ipv6 router ospf 1

R1(config-rtr)#router-id 1.1.1.1

R1(config-rtr)#exit

R1(config)#interface s0/0/0

R1(config-if)#ipv6 ospf 1 area 0

R1(config-if)#interface loopback 0

R1(config-if)#ipv6 ospf 1 area 1

R1(config-if)#ipv6 ospf network point-to-point

R1(config-if)#end

Routeur R2

R2#config t

R2(config)#ipv6 router ospf 1

R2(config-rtr)#router-id 2.2.2.2

R2(config-rtr)#exit

R2(config)#interface s0/0/0

R2(config-if)#ipv6 ospf 1 area 0

R2(config)#interface s0/0/1
R2(config-if)#ipv6 ospf 1 area 0

R2(config)#interface loopback 8

R2(config-if)#ipv6 ospf 1 area 0

R2(config-if)#ipv6 ospf network point-to-point

Routeur R3

R3#config t

R3(config)#ipv6 router ospf 1

R3(config-rtr)#router-id 3.3.3.3

R3(config-rtr)#exit

R3(config)#interface s0/0/1

R3(config-if)#ipv6 ospf 1 area 0

R3(config)#interface loopback 4

R3(config-if)#ipv6 ospf 1 area 2

R3(config-if)#ipv6 ospf network point-to-point

R1(config-if)#end

PPP

Configuration du protocole PPP / PAP R1 et R2

A. Sur le routeur R1

username R2 password casapass

interface s0/0/0

encapsulation ppp

ppp authentication pap

ppp pap sent-username R1 password rabatpass

exit

end

write

B. Sur le routeur R2

username R1 password rabatpass

interface s0/0/0

encapsulation ppp
ppp authentication pap

ppp pap sent-username R2 password casapass

exit

end

write

4 Configuration du protocole PPP / CHAP R1 et R3

A. Sur le routeur R1

username R3 password cisco

interface s0/0/1

encapsulation ppp

ppp authentication chap

exit

end

write

B. Sur le routeur R3

username R1 password cisco

interface s0/0/1

encapsulation ppp

ppp authentication chap

exit

end

write

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy