Solved

vlans and dhcp pools

Posted on 2006-11-07
2
1,175 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

New Server 172.16.200.2  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address 172.16.100.2. But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
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…

803 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