DHCP en routage inter vlan
Fermé
_Pillow
Messages postés
1
Date d'inscription
dimanche 1 mai 2016
Statut
Membre
Dernière intervention
1 mai 2016
-
1 mai 2016 à 20:55
shesh05 Messages postés 8 Date d'inscription jeudi 21 juillet 2016 Statut Membre Dernière intervention 21 juillet 2016 - 21 juil. 2016 à 13:07
shesh05 Messages postés 8 Date d'inscription jeudi 21 juillet 2016 Statut Membre Dernière intervention 21 juillet 2016 - 21 juil. 2016 à 13:07
A voir également:
- DHCP en routage inter vlan
- Serveur dhcp - Guide
- Ftth attente réponse dhcp ✓ - Forum Freebox
- Inter chat - Forum Réseaux sociaux
- Vlan tagged untagged - Forum Réseau
- Hôte d’expérience inter-appareils - Accueil - Windows
1 réponse
shesh05
Messages postés
8
Date d'inscription
jeudi 21 juillet 2016
Statut
Membre
Dernière intervention
21 juillet 2016
21 juil. 2016 à 13:07
21 juil. 2016 à 13:07
Hello
Voici la conf du routeur
Router#sh run
Building configuration...
Current configuration : 4637 bytes
!
! No configuration change since last restart
version 15.1
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$ykVf$kePnZ15FGtZS0AKL3hcs9/
!
no aaa new-model
!
clock timezone GMT 0 4
clock calendar-valid
!
!
!
ip dhcp excluded-address 10.10.10.1 10.10.10.30
ip dhcp excluded-address 10.10.20.1 10.10.20.30
ip dhcp excluded-address 10.10.30.1 10.10.30.30
!
ip dhcp pool WIFI
import all
network 10.10.20.0 255.255.255.0
default-router 10.10.20.1
dns-server 8.8.8.8
!
ip dhcp pool CCTV
import all
network 10.10.30.0 255.255.255.0
default-router 10.10.30.1
dns-server 8.8.8.8
!
ip dhcp pool Management
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 8.8.8.8
!
!
!
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
license udi pid CISCO1941/K9 sn FGL154225HK
!
!
no spanning-tree optimize bpdu transmission
vtp mode transparent
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description ZTE_WAN_FE1
ip ddns update hostname Router.zapto.org
ip ddns update Router
ip address 20.20.20.2 255.255.255.0
ip mtu 1498
ip nat outside
ip virtual-reassembly in
ip tcp adjust-mss 1400
duplex auto
speed 100
ipv6 enable
!
interface GigabitEthernet0/1
description LAN
no ip address
ip nat inside
ip virtual-reassembly in
load-interval 30
duplex auto
speed auto
!
interface GigabitEthernet0/1.1
description MGMT
encapsulation dot1Q 101
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
interface GigabitEthernet0/1.2
description WIFI_AP
encapsulation dot1Q 201
ip address 10.10.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
interface GigabitEthernet0/1.3
description CCTV_CAM
encapsulation dot1Q 301
ip address 10.10.30.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface GigabitEthernet0/1.4
description IP_MGMT
encapsulation dot1Q 200
ip nat inside
ip virtual-reassembly in
shutdown
!
ip default-gateway 20.20.20.1
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip dns server
ip nat inside source list 101 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 20.20.20.1
!
access-list 101 permit ip 10.10.0.0 0.0.0.255 any
access-list 101 permit ip 10.10.10.0 0.0.0.255 any
access-list 101 permit ip 10.10.20.0 0.0.0.255 any
access-list 101 permit ip 10.10.30.0 0.0.0.255 any
access-list 101 permit ip 20.20.20.0 0.0.0.255 any
!
!
!
!
!
snmp-server community shesh%2016 RO
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps syslog
snmp-server host 192.168.212.128 version 2c public
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 xxxxxxxxxxxxxxxxxxxx
login
transport input all
line vty 5 15
login
transport input all
!
scheduler allocate 20000 1000
end
========================
Pour le Switch
SW_01#sh run
Building configuration...
Current configuration : 5082 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW_01
!
enable secret 5 $1$ykVf$kePnZ15FGtZS0AKL3hcs9/
!
ip subnet-zero
!
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
spanning-tree mode rapid-pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
spanning-tree vlan 1-4093 priority 16384
!
!
!
!
interface FastEthernet0/1
switchport access vlan 101
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/2
switchport access vlan 101
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/3
switchport access vlan 201
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/4
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/5
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/6
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/7
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/8
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/9
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/10
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/11
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/12
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/13
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/14
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/15
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/16
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/17
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/18
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/19
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/20
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/21
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/22
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/23
description SW_02-F0/24
switchport trunk allowed vlan 101,201,301
switchport mode trunk
switchport nonegotiate
logging event spanning-tree
load-interval 30
shutdown
!
interface FastEthernet0/24
description CISCO1941_Gi0/1
switchport trunk allowed vlan 101,201,301
switchport mode trunk
switchport nonegotiate
logging event spanning-tree
load-interval 30
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan101
ip address 10.10.10.4 255.255.255.0
no ip route-cache
!
ip default-gateway 20.20.20.1
ip http server
snmp-server community public RO
snmp-server enable traps snmp authentication warmstart linkdown linkup coldstart
snmp-server enable traps config
snmp-server enable traps copy-config
snmp-server enable traps syslog
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps port-security
snmp-server enable traps vlan-membership
snmp-server host 192.168.212.128 version 2c public
!
line con 0
line vty 0 4
password xxxxxxxxxxxxxxxxxxxxxx
login
line vty 5 15
login
!
!
end
==========================
c'est tout
Voici la conf du routeur
Router#sh run
Building configuration...
Current configuration : 4637 bytes
!
! No configuration change since last restart
version 15.1
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$ykVf$kePnZ15FGtZS0AKL3hcs9/
!
no aaa new-model
!
clock timezone GMT 0 4
clock calendar-valid
!
!
!
ip dhcp excluded-address 10.10.10.1 10.10.10.30
ip dhcp excluded-address 10.10.20.1 10.10.20.30
ip dhcp excluded-address 10.10.30.1 10.10.30.30
!
ip dhcp pool WIFI
import all
network 10.10.20.0 255.255.255.0
default-router 10.10.20.1
dns-server 8.8.8.8
!
ip dhcp pool CCTV
import all
network 10.10.30.0 255.255.255.0
default-router 10.10.30.1
dns-server 8.8.8.8
!
ip dhcp pool Management
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 8.8.8.8
!
!
!
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
license udi pid CISCO1941/K9 sn FGL154225HK
!
!
no spanning-tree optimize bpdu transmission
vtp mode transparent
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description ZTE_WAN_FE1
ip ddns update hostname Router.zapto.org
ip ddns update Router
ip address 20.20.20.2 255.255.255.0
ip mtu 1498
ip nat outside
ip virtual-reassembly in
ip tcp adjust-mss 1400
duplex auto
speed 100
ipv6 enable
!
interface GigabitEthernet0/1
description LAN
no ip address
ip nat inside
ip virtual-reassembly in
load-interval 30
duplex auto
speed auto
!
interface GigabitEthernet0/1.1
description MGMT
encapsulation dot1Q 101
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
interface GigabitEthernet0/1.2
description WIFI_AP
encapsulation dot1Q 201
ip address 10.10.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
interface GigabitEthernet0/1.3
description CCTV_CAM
encapsulation dot1Q 301
ip address 10.10.30.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface GigabitEthernet0/1.4
description IP_MGMT
encapsulation dot1Q 200
ip nat inside
ip virtual-reassembly in
shutdown
!
ip default-gateway 20.20.20.1
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip dns server
ip nat inside source list 101 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 20.20.20.1
!
access-list 101 permit ip 10.10.0.0 0.0.0.255 any
access-list 101 permit ip 10.10.10.0 0.0.0.255 any
access-list 101 permit ip 10.10.20.0 0.0.0.255 any
access-list 101 permit ip 10.10.30.0 0.0.0.255 any
access-list 101 permit ip 20.20.20.0 0.0.0.255 any
!
!
!
!
!
snmp-server community shesh%2016 RO
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps syslog
snmp-server host 192.168.212.128 version 2c public
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 xxxxxxxxxxxxxxxxxxxx
login
transport input all
line vty 5 15
login
transport input all
!
scheduler allocate 20000 1000
end
========================
Pour le Switch
SW_01#sh run
Building configuration...
Current configuration : 5082 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW_01
!
enable secret 5 $1$ykVf$kePnZ15FGtZS0AKL3hcs9/
!
ip subnet-zero
!
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
spanning-tree mode rapid-pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
spanning-tree vlan 1-4093 priority 16384
!
!
!
!
interface FastEthernet0/1
switchport access vlan 101
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/2
switchport access vlan 101
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/3
switchport access vlan 201
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/4
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/5
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/6
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/7
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/8
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/9
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/10
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/11
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/12
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/13
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/14
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/15
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/16
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/17
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/18
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/19
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/20
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/21
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/22
switchport mode access
switchport nonegotiate
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree cost 1000
!
interface FastEthernet0/23
description SW_02-F0/24
switchport trunk allowed vlan 101,201,301
switchport mode trunk
switchport nonegotiate
logging event spanning-tree
load-interval 30
shutdown
!
interface FastEthernet0/24
description CISCO1941_Gi0/1
switchport trunk allowed vlan 101,201,301
switchport mode trunk
switchport nonegotiate
logging event spanning-tree
load-interval 30
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan101
ip address 10.10.10.4 255.255.255.0
no ip route-cache
!
ip default-gateway 20.20.20.1
ip http server
snmp-server community public RO
snmp-server enable traps snmp authentication warmstart linkdown linkup coldstart
snmp-server enable traps config
snmp-server enable traps copy-config
snmp-server enable traps syslog
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps port-security
snmp-server enable traps vlan-membership
snmp-server host 192.168.212.128 version 2c public
!
line con 0
line vty 0 4
password xxxxxxxxxxxxxxxxxxxxxx
login
line vty 5 15
login
!
!
end
==========================
c'est tout