R1

You might also like

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

enable

conf t
hostname R1
enable password PASSWORD
banner motd # RESTRICTED ACCESS #
ip ssh version 2
ip domain-name CCNA2
crypto key generate rsa
1024
username NAME password PASSWORD
line vty 0 15
transport input ssh
login local
exit

int s0/0/1
description Connexion avec R2
ip add 10.0.1.1 255.255.255.252
no shut
exit

int s0/0/0
description Connexion avec R3
ip add 10.0.2.1 255.255.255.252
no shut
exit

int Loopback0
ip add 1.1.1.1 255.255.255.255
no shut
exit

router rip
version 2
network 194.168.2.1
network 194.168.3.1
network 194.168.3.65
network 194.168.3.97
network 10.0.1.1
network 10.0.2.1
network 1.1.1.1
default-information originate
no auto-summary
ip route 0.0.0.0 0.0.0.0 Loopback0

service dhcp
ip dhcp excluded-address 194.168.2.1 194.168.2.5
ip dhcp excluded-address 194.168.3.1 194.168.3.5
ip dhcp excluded-address 194.168.3.65 194.168.3.69
ip dhcp excluded-address 194.168.3.97 194.168.3.101

ip dhcp pool vlan 10


network 194.168.2.0 255.255.255.0
default-router 194.168.2.1
exit

ip dhcp pool vlan 20


network 194.168.3.0 255.255.255.192
default-router 194.168.3.1
exit

ip dhcp pool vlan 30


network 194.168.3.64 255.255.255.224
default-router 194.168.3.65
exit

ip dhcp pool vlan 40


network 194.168.3.96 255.255.255.248
default-router 194.168.3.97
exit

You might also like