|
User #239908 14 posts
Participant
|
Hi everyone. I've been tasked with setting up a new Cisco 871. It actually turning out to be very difficult. I hope someone can help. I've been searching for an answer for days now. I've set up 4 VLANs on my 871, with each VLAN assigned to an individual switchport on the 871. Each VLAN can successfully NAT out to the Internet via a small pool of 2 ip addresses given to me by my ISP. The VLANs are: VLAN1 192.168.40.0 Router interface 192.168.40.1 Interface FastEthernet0 I can ping the router interface of any of the VLANs from any other VLAN. For example from VLAN10 I can ping 192.168.20.1 (the router interface of VLAN20). I can ping any external public IP address from any VLAN. But I cannot contact any host from one VLAN to another. For example I can't ping host 192.168.20.2 from VLAN1, 10, or 30. I've read I need to make a bridge but as soon as I set one up and tie a VLAN to it, my connection from that VLAN to the Internet dies. I've tried setting up an ACL but once again once I do, my connection to the Internet gets cut the minute I assign it to a VLAN. Maybe I'm not using these correctly. I hope some one can point me in the right direction. I mean the 871 is a great little router switch combo but it's driving me mad with this final problem. I have looked at George Ou's solution on TechRepulic but unfortunately it didn't help. I've heard SVI could work but I thought I had already set that up. I set up BVIs but they cut my connection to the Internet as well. Thanks in advance for any advice you can provide. Please be detailed in your solutions. I'm still a bit new to Cisco. It's a fairly steep learning curve. Fairly steep indeed. Rob Rob |
posted 2008-Jul-28, 10pm AEST
|
|
User #164243 94 posts
Forum Regular
|
Once you setup a vlan, the intervlan routing should work automatically. If you can post your current config (ex. confidential stuff) then I can better see where things are going wrong. But from the outset, are all your internal VLAN's having "ip nat inside" on them? Make sure none of the ACLs are blocking the traffic between vlans. You can also check routing by doing "sho ip route". You should have all VLAN interfaces in the routing table. |
posted 2008-Jul-28, 11pm AEST
|
|
User #239908 14 posts
Participant
|
Geniesis, I've heard it's supposed to start working right away so no doubt I've done something silly to prevent it from doing so. The VLAN do have ip nat inside on them. I'm not sure if the ACLs are blocking traffic between vlans. I've checked show ip route and the VLANs are in the routing table. Currently on static routes are configured. I have not turned on RIP or any other dynamic routing protocol. I've tried turning on RIP but my router remains unconvinced by this trick and the VLANs don't want to talk to each other. My ISP has provided me with two ip addresses. In the example I'll post them as 123.123.123.19, 123.123.123.20 with the ISP gateway at 123.123.123.1 My setup (I've cut out a lot of extraneous info) !This is the running config of the router: 192.168.40.1 ! ip dhcp pool sdm-pool1 ip dhcp pool InternalLAN ip dhcp pool GuestLAN ip dhcp pool VideoLAN ip dhcp pool VCUnit ! multilink bundle-name authenticated ! ! zone security out-zone ! interface FastEthernet0 interface FastEthernet1 interface FastEthernet2 interface FastEthernet3 interface FastEthernet4 interface Vlan1 interface Vlan10 interface Vlan20 interface Vlan30 ip forward-protocol nd ! logging trap debugging end |
posted 2008-Jul-29, 12pm AEST
|
|
User #30659 1554 posts
Whirlpool Enthusiast
|
Are the IP interfaces up and up? If not, add the VLAN to the VLAN database. |
posted 2008-Jul-29, 7pm AEST
|
|
User #17494 1145 posts
Whirlpool Enthusiast
|
Why not take the zone security off the vlan interfaces then if it works you know that is the cause of the problem. |
posted 2008-Jul-29, 7pm AEST
|
|
User #210990 214 posts
Forum Regular
|
vlan and svi are configured separately even though they interoperate. you must define vlans separately. so router(config)#vlan 10 vlan 20 and so on for other vlans. following this u create vlan interfaces u must do a no shut on vlan interfaces too.. that should do i beleieve |
posted 2008-Jul-29, 8pm AEST
|
|
User #30659 1554 posts
Whirlpool Enthusiast
|
I believe you still need to use the VLAN database with 870s |
posted 2008-Jul-29, 8pm AEST
|
|
User #239908 14 posts
Participant
|
>Are the IP interfaces up and up? If not, add the VLAN to the VLAN database. Yes, IP interfaces are up and running. |
posted 2008-Jul-30, 12am AEST
edited 2008-Jul-30, 12am AEST
|
|
User #239908 14 posts
Participant
|
>vlan and svi are configured separately even though they interoperate. > so > router(config)#vlan 10 > vlan 20 > and so on for other vlans. following this u create vlan interfaces > u must do a no shut on vlan interfaces too.. You mean something like interface Vlan10 no shut vlan10 interface BVI10 no shut BVI10 So instead of the VLAN do I include the BVIs in my NAT translation? I tried this before and lost my connection to the Internet. |
posted 2008-Jul-30, 12am AEST
edited 2008-Jul-30, 12am AEST
|
|
User #239908 14 posts
Participant
|
>Why not take the zone security off the vlan I had thought about that but I couldn't figure out how to take off the zone security using the SDM. I should try the cli. Maybe something like: config term But if the zone security is the problem, how do I fix it? |
posted 2008-Jul-30, 12am AEST
edited 2008-Jul-30, 12am AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
enter the commands. ip classless then try again. can you provide the output from "show ip int brief" & "sh vlan-sw" just to confirm l1 & l2 is up on the router. You don't need to be faffing around with bridge groups, completely wrong path there. Failing that. generate some icmp traffic from hosts attached to each port and show the output here. a sh ver would be nice as well :) |
posted 2008-Jul-30, 12am AEST
edited 2008-Jul-30, 1am AEST
|
|
User #210990 214 posts
Forum Regular
|
You mean something like no just goto config mode and give following commands vlan 10 and whatever vlan no. is present as an svi interface on router. |
posted 2008-Jul-30, 2am AEST
|
|
User #239908 14 posts
Participant
|
Good tips on debug. Thanks. For this router (the 871) both ip classless and ip routing are on by default. Interestingly enough if I type no ip routing I lose complete connectivity to the Internet. I understand the no ip routing turning off what I need but it's alarming when ip routing fails to turn it on again. I have to turn off the router to get internet connectivity back again. First things first, the version: MyRouter#sh ver ROM: System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE MyRouter uptime is 15 hours, 35 minutes blah blah yada yada Cisco 871 (MPC8272) processor (revision 0x300) with 118784K/12288K bytes of memory. Configuration register is 0x2102 Next, the interface status MyRouter#show ip int brief Then vlan-sw MyRouter#sh vlan-sw VLAN Name Status Ports 1 default active Fa0 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 I thought for sure debug would tell me something but alas no. When I attempt to ping between hosts I get the following: July 30 09:37:06.579: NET-RED 0.0.0.0/0 repeated for each time I try. |
posted 2008-Jul-30, 10am AEST
|
|
User #239908 14 posts
Participant
|
>Why not take the zone security off Nice try but that doesn't work either. Taking off the zone security on any of the vlans means a) hosts on any vlan still can't talk to each other and b) can't communicate with the internet. I really hope the zone security isn't the issue. That looks like one scary feature to configure. |
posted 2008-Jul-30, 11am AEST
edited 2008-Jul-30, 11am AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
edited for correctness |
posted 2008-Jul-30, 11am AEST
edited 2008-Jul-30, 12pm AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
I can ping the router interface of any of the VLANs from any other VLAN. For example from VLAN10 I can ping 192.168.20.1 (the router interface of VLAN20). I can ping any external public IP address from any VLAN. But I cannot contact any host from one VLAN to another. For example I can't ping host 192.168.20.2 from VLAN1, 10, or 30. Sorry I may have been looking at this the wrong way.. you say you can ping the router interfaces from any other vlan. So the machine that is plugged into vlan 10, can ping the interface of vlan20/30/40? but it can't ping anything else plugged into vlan 20/30/40? If so the problem isn't routing. You have disabled any software firewalls on the devices? and made sure that dhcp is working correctly |
posted 2008-Jul-30, 11am AEST
|
|
User #239908 14 posts
Participant
|
If so the problem isn't routing. You have disabled any software firewalls on the devices? and made sure that dhcp is working correctly Oh Mother Mary! That's it. I feel like a total idiot. I'm beating my 871 to death when it was working all along. The individual firewalls on each machine were turned on and configureded to block ICMP. Turn off the firewall and sure enough ping-go! Everything works as expected SUPER thanks. I should have figured this out when I could ping the interfaces of each VLAN. Okay, I have another question. The VLANs can all talk to each other but I'd like to make sure the Guest VLAN (VLAN 30) can't see any other VLANs yet still access the Internet and the other VLANS should be able to see hosts on VLAN30. Can I do this with a single ACL like this: access-list extended Guest-ACL interface vlan30 or do I use The other VLANs should be able to see hosts on the Guest VLAN but not the other way around. Guest VLAN shouldn't see other host on other VLANs. Finally, I have one last question. My router has a static route to the ISP via an ADSL line. It sounds like a basic question but should I turn on dynamic routing? I only received training a few months ago so I'm still new to the router config stuff. I learned about EIGRP, RIP, etc. But since my router has no other route to the Internet, and static routes are the quickest, should I simply leave well enough alone and forego dynamic routing? Thanks again. Your help has been invaluable in saving my sanity! |
posted 2008-Jul-30, 12pm AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
Okay, I have another question. The VLANs can all talk to each other but I'd like to make sure the Guest VLAN Yup. Basically create a DMZ via the SDM. or by using ip access-group Guest-ACL out – depends on if you want to lock down the wireless at a later stage and add inspection to it etc When I first replied, I didn't read the OP properly and missed the part where you were able to ping the other ip address of the vlans. But since my router has no other route to the Internet, and static routes are the quickest, should I simply leave well enough alone and forego dynamic routing? Correct. No point using dynamic routing with a small network (single router) & single site. |
posted 2008-Jul-30, 12pm AEST
|
|
User #3373 323 posts
Forum Regular
|
Oh Mother Mary! That's it. I feel like a total idiot. I'm beating my 871 to death when it was working all along. The individual firewalls on each machine were turned on and configureded to block ICMP. Turn off the firewall and sure enough ping-go! Everything works as expected hehehe |
posted 2008-Jul-30, 1pm AEST
|
|
User #239908 14 posts
Participant
|
Yup. Basically create a DMZ via the SDM. or by using ip access-group Guest-ACL out – depends on if you want to lock down the wireless at a later stage and add inspection to it etc Well, I thought it was pretty basic but I guess I've got more to learn. This is what I have: interface Vlan30 ip access-list extended Guest-ACL I thought this would prevent access to the other VLANs but it does not. I can still ping others hosts from Vlan30. If I change ip access-group Guest-ACL out to ip access-group Guest-ACL in None of the hosts on Vlan30 can ping hosts on other Vlans (good) but none of the other hosts on other vlans can ping hosts on Vlan30 (bad). Is there a way for other Vlans to access Vlan30 but Vlan30 not to access other hosts? Thanks. Rob |
posted 2008-Jul-30, 3pm AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
Yup. replace the above with. access-list 199 deny 192.168.30.0 0.0.0.7 int vlan 10 int vlan 20 |
posted 2008-Jul-30, 4pm AEST
|
|
User #239908 14 posts
Participant
|
Yup. replace the above with. Believe or not, this fails as well. Despite restricting packets out from VLAN30 or denying packets from VLAN30 on the other LANs, hosts from VLAN30 can still reach hosts on other VLANs. Is this a bug? A quick review: The following applied to VLAN30 keeps VLAN30 from reaching other lans but other lans can't reach vlan30 vlan30 out Action Source Destination Service If I try on VLAN10, it is completely ineffective. VLAN10 can still be reached by VLAN30. I don't get it. How? Are VLANs somehow different that other types of traffic. |
posted 2008-Jul-31, 10am AEST
edited 2008-Jul-31, 11am AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
Is this a bug? Nope I don't get it. How? Are VLANs somehow different that other types of traffic. It's the SDM firewall. It's being applied before the ACL's Save your current working config (sh ru to text file) add in the following commands – create a dmz zone security dmz-zone zone-pair security sdm-zp-self-out source self destination out-zone int vlan 30 You owe me beer ! *edit* If required you can add rules to allow certain types of DMZ traffic into the LAN (dns/smtp etc) |
posted 2008-Jul-31, 12pm AEST
edited 2008-Jul-31, 12pm AEST
|
|
User #239908 14 posts
Participant
|
You owe me beer ! Definitely! Thanks again. I love this line by Cisco on Zone based firewalls: Zone-based policy firewall (also known as "Zone-Policy Firewall" or "ZPF") changes the firewall from the older interface-based model to a more flexible, more easily understood zone-based configuration model. I guess I'm lucky I'm not dealing with the less easily understood whatever was before. Although I get the impression that while old Cisco gear had flaws the newer stuff has new 'challenges'. One of the hardest things about getting help with Cisco are the changes between what was and what is. |
posted 2008-Jul-31, 12pm AEST
edited 2008-Jul-31, 12pm AEST
|
|
User #193514 565 posts
Whirlpool Enthusiast
|
Thanks again. So that worked fine? |
posted 2008-Jul-31, 3pm AEST
|
|
User #239908 14 posts
Participant
|
So that worked fine? Sorry for the late reply. On vacation. Yes, it did indeed work. I basically put the Guest LAN in it's own Zone and then defined how other zones could interact with it and how it could interact with other zones. By default any vlans that are within the same zone trust each other. This is why the ACLs that normally would work in non-Zone-based Firewall system failed. As mentioned, the firewall takes priority. Thanks again. Rob |
posted 2008-Aug-5, 7pm AEST
|