Search this Blog

Tuesday, August 2, 2011

Sample configuration for Cisco 881 Router with different vlan

We have configured it to use public IP with default vlan1 for all 4 LAN ports. We would like to configure the 2 ports to be used for public IP (123.123.123.160-175) with vlan (External network) and the other 2 ports for internal IP (192.168.XXX.XXX) with vlan as well. How can we configure it?

Also, we would like to enable and configure the dhcp service on our router to allocate the IP to our internal network with different subnet. We plan to connect the 2 internal ports (192.168.) to our Layer 2 switch, so all the devices able to get the IP from dhcp server on our router. Can someone share a sample configuration?

A sample configuration will look something like this...

ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool INSIDE-VLAN-POOL
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 4.2.2.2
lease 0 2

vlan 2
name Inside VLAN

interface FastEthernet0
description To Internet
switchport mode access
switchport access vlan 1
no ip address

interface FastEthernet1
description To LAN
switchport mode access
switchport access vlan 2
no ip address

interface Vlan1
description Outside VLAN
ip address 11.11.11.1 255.255.255.0
!
interface Vlan2
description Inside VLAN
ip address 10.10.10.1 255.255.255.0


Citation - This blog post does not reflect original content from the author. Rather it summarizes content that are relevant to the topic from different sources in the web. The sources might include any online discussion boards, forums, websites and others.

No comments :

Post a Comment

 
/* Google Analytics begin ----------------------------------------------- */ /* Google Analytics end ----------------------------------------------- */