Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

vlans and cisco router

I have a netgear managed switch and a cisco 1750 router. I would like to set up 2 vlans. the first one is a wan, with a residential cable model connected to it. the other vlan is for my private lan. I will then have the cisco router connected to one port on the switch set up as a trunk. I'm no pro, but from what I've read so far, it should work that way, right? the part I need help with is setting up the cisco router as a gateway and dns proxy, accepting the dynamic ip, gateway, and dns addresses from the cable modem.

I did see this

router in a stick *write that down* so my setup should work if I can figure out the router configuration. a good online tutorial or something would be helpful for this. I have plenty of cisco books, but maybe something for dummies would help me get started, before digging into the tough stuff.

Cisco Employee

Re: vlans and cisco router

In order to set up inter vlan routing or a "router on a stick" with a netgear switch you will need a router that supports IEEE 802.1q VLAN Support.

On the router interface that is "trunked" to the switch you will need to have a configuration that looks like the what I have below.

Router(config)#interface FastEthernet0/1.1

Router(config-subif)#encapsulation dot1Q 1 native

Router(config-subif)#ip address 10.xx.xx.16

Router(config-subif)#interface FastEthernet0/1.2

Router(config-subif)#encapsulation dot1Q 2

Router(config-subif)#ip address 10.xx.xx.130

The sub-interface 1."2" corresponds to the vlan id on the trunk. In this case the .2 is vlan 2.

I have attahced a link that exlains the intricate details on inter vlan routing below:

Lastly you may want to check the Cisco IOS feature Navigator. I was looking at it and I did not see that the 1750 has IEEE 802.1q VLAN Support. It looks like the 1751 is the first platform in the 1700 series that does.

Community Member

Re: vlans and cisco router

my router has the sub-interfaces, but does not have the encapsulation command. does that mean it doesn't support vlans?

Community Member

Re: vlans and cisco router

encapsulation is a command you configure.

Are you getting any errors when configuring encapsulation?


Community Member

Re: vlans and cisco router

it just says the command doesn't exist. it's not in the list when I do "?" either.

Re: vlans and cisco router

The image you are currently using doesn't appear to support dot1q encapsulation. I believe you need atleast an IP Plus image for this feature. Use the software advisor tool to choose the appropriate IOS. You may have to login to access this tool.



Community Member

Re: vlans and cisco router

sounds like you're right. I read a website that said something about IP Plus. I wanted to set this up for my home network to replace the cheap newbie router and have something more reliable. I didn't want to spend hundreds of dollars on getting it to work. is there someplace I can get the image cheaper?

CreatePlease to create content