[b]1841 config using the physical interface in the native VLAN and creating only a single subinterface:[/b]
Router(config)# int fa0/1.37 [b]<--- the .37 after the interface number identifies your subinterface[/b]
Router(config-subif)# encap dot1q 37 [b]<--- the 37 signifies your dot1q tag that all ingress/egress traffic will be tagged with[/b]
Router(config-subif)# ip add 10.20.37.1 255.255.255.0
[b]Switch config - obviously if you don't use Cisco switches the switch config will be different[/b]
Switch(config)# vlan 37
Switch(config-vlan)# name some_name
Switch(config-vlan)# exit
Switch(config)# int f0/1 [b]<--- this is the the interface that connects your switch to your 1841. it will now be configured as a static trunk link to transport your native (10.20.36/24) traffic and your tagged (10.20.37/24) traffic[/b]
Switch(config-if)# switchport encap dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport nonegotiate
Switch(config-if)# switchport trunk allowed vlan 1,37 [b]<--- manually pruning VLANs from the link since only your native VLAN and your newly created VLAN need to traverse the trunk[/b]
[b]1841 using two subinterfaces - cleaner config:[/b]
Router(config)# default interface fa0/1
Router(config)# int fa0/1.36 [b]<--- the .36 after the interface number identifies your subinterface[/b]
Router(config-subif)# encap dot1q 36 [b]<--- the 36 signifies your dot1q tag that all ingress/egress traffic will be tagged with[/b]
Router(config-subif)# ip add 10.20.36.1 255.255.255.0
Router(config-subif)# exit
Router(config)# int fa0/1.37 [b]<--- the .37 after the interface number identifies your subinterface[/b]
Router(config-subif)# encap dot1q 37 [b]<--- the 37 signifies your dot1q tag that all ingress/egress traffic will be tagged with[/b]
Router(config-subif)# ip add 10.20.37.1 255.255.255.0
[b]Switch config[/b]
Switch(config)# vlan 36-37 [b]<--- create your vlans[/b]
Switch(config-vlan)# exit
Switch(config)# int f0/1 [b]<--- this is the the interface that connects your switch to your 1841. it will now be configured as a static trunk link to transport all of your tagged traffic[/b]
Switch(config-if)# switchport encap dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport nonegotiate
Switch(config-if)# switchport trunk allowed vlan 36,37 [b]<--- manually pruning VLANs from the link since only vlan 36 and 37 need to traverse the trunk[/b]