04-28-2019 02:11 PM
If I have a single managed Switch with some devices setup in VLANs, but also a few that arent in a VLAN (VLAN1 by default I guess, but nothing VLAN configured on their access ports, and I want to get all traffic from the switch up to the Router and then out, what are my options? Do I need to use two seperate Router Ports, one that will receive all the VLANs traffic and a seperate one that receives the traffic from the devices not in a particular VLAN? Or can I setup a trunk that will take both types of traffic and if so, how?
Solved! Go to Solution.
04-29-2019 03:37 AM
04-28-2019 02:26 PM
You can make Router as Routing point for your network to go out.
Router---Trunk---Switch ( Create VLAN for the required VLAN)
in the Router create VLAN related IP address. If the router doing NAT, then add those IP address to NAT so user can reach to Internet.
below example guide help you to configure :
https://www.cisco.com/c/en/us/support/docs/lan-switching/inter-vlan-routing/14976-50.html
04-28-2019 02:36 PM
Hi!
You may use a router on a stick.
On the interface connecting the router to the switch;
interface <interface id>
switchport mode trunk
switchport trunk allowed vlan all
switchport trunk native vlan 1
In order to allow vlans to traverse the trunk;
interface <interface id>.vlan id--match to vlan id for consistency
encapsulation dot1q vlan_id
ip address <ip address and mask>
Configuring InterVLAN Routing and ISL/802.1Q Trunking
Hosts would then use the router subinterface ip address as their default gateway.
It is possible to use one port per vlan, but in a large network the possibility of running out of phhsical ports on the router is very real and is made even more real because such networks may have a large number of vlans.
04-28-2019 06:40 PM
Yes you can use a single port configured as trunk, but try to refrain from using VLAN1 as much as you can
04-28-2019 11:22 PM
Hello Dear,
You can used that way
interface GigabitEthernet x/x/x
no ip address
!
interface GigabitEthernetx/x/x.10
encapsulation dot1Q 10
ip address x.x.x.x x.x.x.x
!
interface GigabitEthernet x/x/x.20
encapsulation dot1Q 20
ip address x.x.x.x x.x.x.x
!
interface GigabitEthernet x/x/x.30
encapsulation dot1Q 30
ip address x.x.x.x x.x.x.x
05-05-2019 10:15 AM - edited 05-05-2019 12:03 PM
Sorry, replied to wrong post.....
04-29-2019 03:37 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide