Answer the question
In order to leave comments, you need to log in
How to distribute several subnets on Cisco 2901 (stock) via DHCP?
Good afternoon dear community.
There was another question about this brand.
We have:
interface GigabitEthernet0/1
description LAN
ip address 192.168.6.1 255.255.255.0
ip address 192.168.7.1 255.255.255.0 secondary
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
ip dhcp pool LAN
import all
network 192.168.6.0 255.255.255.0
address range 192.168.6.10 192.168.6.200
default-router 192.168.6.1
dns-server 192.168.6.1
network 192.168.7.0 255.255.255.0 secondary
override default-router 192.168.7.1
!
ip dhcp pool HOST20
host 192.168.7.20 255.255.255.0
client-identifier aabb.ccdd.eeff
default-router 192.168.7.1
dns-server 192.168.7.1
!
Answer the question
In order to leave comments, you need to log in
it would be more logical to divide it into vlans, and give each wealan its own dhcp pool. Where static is needed, add dhcp to the reserve.
Perhaps you need to use not the secondary address on the port, but the sub interfaces. Try something like:
interface GigabitEthernet0/1.6
ip address 192.168.6.1 255.255.255.0
ip nat inside
interface GigabitEthernet0/1.7
ip address 192.168.7.1 255.255.255.0
ip nat inside
Cisco does not recommend interfering with 2 networks in one VLAN, usually this is fraught with glitches and difficulties during troubleshooting.
If you split into VLANs, like dubidrubi, then you also need to enable encapsulation on the interfaces:
interface GigabitEthernet0/1
encapsulation dot1Q
interface GigabitEthernet0/1.6
encapsulation dot1Q 6
<...>
interface GigabitEthernet0/1.7
encapsulation dot1Q 7
<...>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question