Solved

vlans and dhcp pools

Posted on 2006-11-07
2
1,174 Views
Last Modified: 2009-08-26
I have a cisco 877 I need to create 2 vlans. I would then like to associate a vlan to 2 of the switch prorts on the router and the other vlan to the other 2 ports. I would also like to have dhcp activated but have a set of ips for each vlan. so port 0,1 would give out 192.168.1.?  and port 2,3 10.34.8.? Can anyone piont me in the right direction ?

Thanks
steve
0
Comment
Question by:steve_mills
2 Comments
 
LVL 79

Accepted Solution

by:
lrmoore earned 250 total points
ID: 17896603

vlan 2
vlan 3
interface Fast0
 switchport access vlan 2
interface Fast1
 switchport access vlan 2
interface Fast2
 switchport access vlan 3
interface Fast3
 switchport access vlan 3
interface vlan 2
 ip address 192.168.1.1 255.255.255.0
interface vlan 3
 ip address 10.34.8.1 255.255.255.0

ip dhcp pool VLAN2
 network 192.168.1.0/24
 default-router 192.168.1.1
 dns-server 10.34.8.100

ip dhcp pool VLAN3
 network 10.34.8.0/24
 default-router 10.34.8.1
 dns-server 10.34.8.100

0
 

Author Comment

by:steve_mills
ID: 17903289
Hi Irmoore
This worked great thanks for the config.

Thanks
Steve
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now