J'ai créé une infrastructure réseau avec 5 VLAN mais les pc (machines virtuelles installées depuis des pc physiques) connectés aux VLANs ne reçoivent pas d'adresses ip via le DHCP (configuré sur notre routeur). Si j'effectue un IPCONFIG avec le CMD, on peut voir qu'une adresse APIPA est attribuée.
Voici la config de notre routeur:
Current configuration : 1159 bytes
!
! Last configuration change at 09:59:02 UTC Mon Feb 6 2017
version 15.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RT4
!
boot-start-marker
boot-end-marker
!
no aaa new-model
!
!
ip dhcp pool dhcp2
network 172.24.2.0 255.255.255.0
default-router 172.24.2.2
!
ip dhcp pool dhcp3
network 172.24.3.0 255.255.255.0
default-router 172.24.3.2
!
ip dhcp pool dhcp4
network 172.24.4.0 255.255.255.0
default-router 172.24.4.2
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
license udi pid C881-K9 sn FCZ19447078
!
interface FastEthernet0
switchport access vlan 5
switchport mode trunk
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
no ip address
shutdown
duplex auto
speed auto
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 172.24.2.2 255.255.255.0
!
interface Vlan3
ip address 172.24.3.2 255.255.255.0
!
interface Vlan4
ip address 172.24.4.2 255.255.255.0
!
interface Vlan5
ip address 172.24.5.2 255.255.255.0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
control-plane
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
line con 0
no modem enable
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
!
end
Et voici celle de notre switch:
Current configuration : 3218 bytes
!
! Last configuration change at 11:21:46 UTC Mon Feb 6 2017
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW4
!
boot-start-marker
boot-end-marker
!
no aaa new-model
system mtu routing 1500
ip routing
!
vlan internal allocation policy ascending
!
interface GigabitEthernet0/1
switchport access vlan 2
switchport mode access
!
interface GigabitEthernet0/2
switchport access vlan 2
switchport mode access
!
interface GigabitEthernet0/3
switchport access vlan 2
switchport mode access
!
interface GigabitEthernet0/4
switchport access vlan 2
switchport mode access
!
interface GigabitEthernet0/5
switchport access vlan 3
switchport mode access
!
interface GigabitEthernet0/6
switchport access vlan 3
switchport mode access
!
interface GigabitEthernet0/7
switchport access vlan 4
switchport mode access
!
interface GigabitEthernet0/8
switchport access vlan 5
switchport trunk native vlan 5
switchport mode trunk
!
interface GigabitEthernet0/9
no keepalive
!
interface GigabitEthernet0/10
no keepalive
!
interface GigabitEthernet0/11
!
interface GigabitEthernet0/12
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 172.24.2.1 255.255.255.0
!
interface Vlan3
ip address 172.24.3.1 255.255.255.0
!
interface Vlan4
ip address 172.24.4.1 255.255.255.0
!
interface Vlan5
ip address 172.24.5.1 255.255.255.0
!
ip forward-protocol nd
ip http server
ip http secure-server
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end
J'utilise Puty pour la configuration des appareils
Si tu as un service dhcp il doit être jognable sur une ip.
Est ce que tes vms arrivent à contacter cette ip ?
Est ce que l'hôte qui héberge les vms arrive à contacter cette ip ?
Thomas | Community manager | ikoula Serveurs dédiés, VPS et Cloud Public
Problème DHCP avec VLAN
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
Thomas | Community manager | ikoula Serveurs dédiés, VPS et Cloud Public