Queria postar uma foto da minha rede, mas não tenho reputação suficiente, então vou tentar explicar sem ela:
Tenho um roteador R1 que é o Servidor DHCP da minha Rede, que está conectado (Interface f0/0) a um switch (SW1) e (Interface f0/2) outro roteador R2 (Interface f0/1) (que será o Servidor dns). O Switch SW1 está conectado a 3 hosts (H1-H3), H1 e H2 estão na VLAN10 e H3 na VLAN20. O roteador R2 também está conectado (Interface f0/2) a um switch SW2 que também está conectado a 3 Hosts (H4-H6), H4-H5 está na VLAN30 e H6 na VLAN40.
Percebi que R1 está fornecendo endereços IP aos hosts 1-3, mas quando tentei o mesmo para o host 4-6, não funcionou. Tentei configurar um endereço IP Helper para a VLAN30 e VLAN40 para encaminhar as mensagens de descoberta, mas não consegui funcionar :(
Configuração para R1:
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
ip dhcp excluded-address 192.168.40.1
!
ip dhcp pool VLAN10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 10.12.0.1
!
ip dhcp pool VLAN20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 10.12.0.1
!
ip dhcp pool VLAN30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 10.12.0.1
!
ip dhcp pool VLAN40
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 10.12.0.1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
no switchport
ip address 10.13.0.1 255.255.255.252
!
interface FastEthernet0/2
no switchport
ip address 10.12.0.1 255.255.255.252
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
!
!
router ospf 1
log-adjacency-changes
network 10.12.0.0 0.0.0.3 area 0
network 10.13.0.0 0.0.0.3 area 0
network 10.31.0.0 0.0.0.3 area 0
!
no ip http server
ip forward-protocol nd
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
Configuração para R2:
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
ip domain name example.com
ip host R2 10.32.0.1
ip host R1 10.12.0.1
ip host R3 10.23.0.2
ip host R3.example.com 10.23.0.2
ip host R1.example.com 10.12.0.1
ip host R2.example.com 10.32.0.1
ip host google.com 8.8.8.8
ip name-server 10.12.0.2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
interface FastEthernet0/0
no switchport
ip address 10.23.0.1 255.255.255.252
!
interface FastEthernet0/1
no switchport
ip address 10.12.0.2 255.255.255.252
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan30
ip address 192.168.30.1 255.255.255.0
ip helper-address 10.12.0.1
!
!
router ospf 2
log-adjacency-changes
network 10.12.0.0 0.0.0.3 area 0
network 10.23.0.0 0.0.0.3 area 0
network 10.32.0.0 0.0.0.3 area 0
!
no ip http server
ip forward-protocol nd
!
ip dns server
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
Eu sei que a VLAN40 ainda não tem um endereço auxiliar, só queria que funcionasse primeiro na VLAN30.
Você precisa criar a VLAN 30 antes de poder usá-la:
Você também precisa de algumas portas de acesso na VLAN onde os hosts estão conectados.