rootn5th
MIS
- Feb 6, 2009
- 10
Hi,
I hope someone can help me with a Cisco router problem. Essentially I think I need to route between VLANS but I will expand...
I have a Cisco 871 router with advanced IP services. I specfically chose this router becasue of the multiple VLANS available and need to do the following:
I have two subnets - 192.168.1.0/24 and 192.168.2.0/24. Each network has its own internet gateway - 192.168.1.254 and 192.168.2.254 respectively.
What I want to achieve is:
1. Each subnet to be able to use their respective gateway, and only that gateway.
2. The subnets to be able to 'see' each other and access resources on the other subnet.
3. Restrictions to be put in place to prevent certain protocols and IP addresses accessing resources on the other subnet - access-lists essentially.
What I have achieved so far is for the ports on the router to be able to pass traffic like a switch to the same subnet, and also to route out to one gateway. Ideally it would seem that I need to be able to set a gateway per subnet but can't find a way of doing this.
The snippet of config below allows the ports on VLAN 10 to communicate, and the same for VLAN 20. How can I route between these subnets?
interface FastEthernet0
switchport access vlan 10
!
interface FastEthernet1
switchport access vlan 10
!
interface FastEthernet2
switchport access vlan 20
!
interface FastEthernet3
switchport access vlan 20
!
interface Vlan10
ip address 192.168.1.1 255.255.255.0
!
interface Vlan20
ip address 192.168.2.1 255.255.255.0
I've been fiddling for many hours but can't find a way to get it all working.
Thanks,
Sam.
I hope someone can help me with a Cisco router problem. Essentially I think I need to route between VLANS but I will expand...
I have a Cisco 871 router with advanced IP services. I specfically chose this router becasue of the multiple VLANS available and need to do the following:
I have two subnets - 192.168.1.0/24 and 192.168.2.0/24. Each network has its own internet gateway - 192.168.1.254 and 192.168.2.254 respectively.
What I want to achieve is:
1. Each subnet to be able to use their respective gateway, and only that gateway.
2. The subnets to be able to 'see' each other and access resources on the other subnet.
3. Restrictions to be put in place to prevent certain protocols and IP addresses accessing resources on the other subnet - access-lists essentially.
What I have achieved so far is for the ports on the router to be able to pass traffic like a switch to the same subnet, and also to route out to one gateway. Ideally it would seem that I need to be able to set a gateway per subnet but can't find a way of doing this.
The snippet of config below allows the ports on VLAN 10 to communicate, and the same for VLAN 20. How can I route between these subnets?
interface FastEthernet0
switchport access vlan 10
!
interface FastEthernet1
switchport access vlan 10
!
interface FastEthernet2
switchport access vlan 20
!
interface FastEthernet3
switchport access vlan 20
!
interface Vlan10
ip address 192.168.1.1 255.255.255.0
!
interface Vlan20
ip address 192.168.2.1 255.255.255.0
I've been fiddling for many hours but can't find a way to get it all working.
Thanks,
Sam.