12-09-2003 01:34 AM - edited 03-02-2019 12:13 PM
Hello,
I have two LAN segments
Ethernet 0/0 and Ethernet 0/1
Ethernet0/0
description *** LAN 1 ***
ip address 192.168.0.1 255.255.255.0
no ip proxy-arp
ip accounting access-violations
and
Ethernet0/1
description *** LAN 2 ***
ip address 192.168.1.1 255.255.255.0
no ip proxy-arp
ip accounting access-violations
arp timeout 1200
I use also DHCP pool for the first LAN
ip dhcp pool lan
network 192.168.0.2 255.255.255.0
domain-name mydomain.gr
dns-server 192.168.0.3
default-router 192.168.0.1
netbios-node-type b-node
lease 30
How can I use the second DHCP pool for the second LAN ??
Thanks
George
Solved! Go to Solution.
12-09-2003 02:30 AM
Hello George,
just configure two DHCP pools, the clients will get their addresses from the pool that is in the same range as the respective Ethernet interfaces to which the clients are connected:
ip dhcp excluded-address 192.168.0.1
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.0.3
!
ip dhcp pool lan0 (pool for LAN1)
network 192.168.0.0 255.255.255.0
domain-name mydomain.gr
dns-server 192.168.0.3
default-router 192.168.0.1
netbios-node-type b-node
lease 30
!
ip dhcp-pool lan1 (pool for LAN1)
network 192.168.1.0 255.255.255.0
domain-name mydomain.gr
dns-server 192.168.0.3
default-router 192.168.1.1
netbios-node-type b-node
lease 30
I don't know if you are using the same DNS server for both LANs, otherwise change the addresses accordingly.
Regards,
GP
12-09-2003 02:30 AM
Hello George,
just configure two DHCP pools, the clients will get their addresses from the pool that is in the same range as the respective Ethernet interfaces to which the clients are connected:
ip dhcp excluded-address 192.168.0.1
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.0.3
!
ip dhcp pool lan0 (pool for LAN1)
network 192.168.0.0 255.255.255.0
domain-name mydomain.gr
dns-server 192.168.0.3
default-router 192.168.0.1
netbios-node-type b-node
lease 30
!
ip dhcp-pool lan1 (pool for LAN1)
network 192.168.1.0 255.255.255.0
domain-name mydomain.gr
dns-server 192.168.0.3
default-router 192.168.1.1
netbios-node-type b-node
lease 30
I don't know if you are using the same DNS server for both LANs, otherwise change the addresses accordingly.
Regards,
GP
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: