cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
757
Views
0
Helpful
4
Replies

do you need a ip address for the switches on a router on stick ?

dolanduck.
Level 1
Level 1

do you need a ip address for the switches on a router on stick ?

sub-interface g0/0.10 192.168.1.1 255.255.255.0

and on switch is vlan 10 192.168.1.2 255.255.255.0

does it need a ip address on vlan 10 ?

 

 

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

If the Switch acting as Pure Layer 2 and Router handling all the routine then you do not need IP address VLAN10 (but you need to manage Switch remotely you need one of the VLAN should have a config to connect to switch), you just need VLANs to be created and allowed in the trunk interface, configure the switch interface which belongs to VLAN 10 (where you connect end device).

 

good example: if you like the switch to be Layer 3

 

http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/336-cisco-router-8021q-router-stick.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

but to have a management vlan you need a interface assigned to that vlan ?

yes, that is only for management(if you have vlan 10 only in the network) and setup default-gateway, so switch act as Layer 2.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

below is what the simplified config would have to look like on the router and the switch. On the switch, you will have to manually create Vlan 10 first:

 

Switch#conf t

Switch(config)#vlan 10

Switch (config)#end

 

Router

 

interface GigabitEthernet0/0
description Trunk to Switch
!
interface GigabitEthernet0/0.10
ip address 192.168.1.1 255.255.255.0

 

Switch

 

interface GigabitEthernet0/0
description Trunk to Router
switchport mode trunk
!
interface Vlan 10
ip address 192.168.1.2 255.255.255.0
!
ip default-gateway 192.168.1.1

Review Cisco Networking for a $25 gift card