cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
852
Views
0
Helpful
3
Replies

Homelab InterVLAN Routing w SVI to home router

mycall3570
Level 1
Level 1

High level, I have a catalyst 3560G in my homelab.  There are some ESXi hosts and physical 2012 server.

I'm struggling to get my homelab to uplink to the home network. 

 

I am referencing the following Cisco Docs to setup.

 

1) Workstation 1 is on native vlan, what is required to get it to communicate?

2) Gi0/1 connects to, say, WRT/4

3) Not concerned right now with DHCP, but I would like it to work

 

Whiteboard:

cisco-home.png

 

Summary of steps:

! Create VLANs 10 and 20 in the switch database
C3560# configure terminal
C3560(config)# vlan 10
C3560(config)# name MGMT
C3560(config-vlan)# exit

C3560(config)# vlan 20
C3560(config-vlan)# name VMOTION
C3560(config-vlan)# exit

 

! Assign Port Gi0/10 in VLAN 10
C3560(config)# interface gigabitethernet0/10
C3560(config-if)# description Server 1
C3560(config-if)# switchport mode access
C3560(config-if)# switchport access vlan 10
C3560(config-if)# exit

! Assign Port Gi0/11 in VLAN 10
C3560(config)# interface gigabitethernet0/11
C3560(config-if)# description Server 2
C3560(config-if)# switchport mode access
C3560(config-if)# switchport access vlan 10
C3560(config-if)# exit

! Assign Port Gi0/21 in VLAN 20
C3560(config)# interface gigabitethernet0/21
C3560(config-if)# description Server 1
C3560(config-if)# switchport mode access
C3560(config-if)# switchport access vlan 20
C3560(config-if)# exit

! Assign Port Gi0/22 in VLAN 20
C3560(config)# interface gigabitethernet0/22
C3560(config-if)# description Server 2
C3560(config-if)# switchport mode access
C3560(config-if)# switchport access vlan 20
C3560(config-if)# exit

 

! Enable Layer 3 routing
C3560(config) # ip routing

! Configure a Routed Port for connecting to the Home-Router
C3560(config)# interface gigabitethernet 0/1
C3560(config-if)# description Home-UPLINK
C3560(config-if)# no switchport
C3560(config-if)# ip address 192.168.0.2 255.255.255.0

! Configure Switch Vlan Interfaces (SVI)
C3560(config)# interface vlan10
C3560(config-if)# ip address 10.1.10.1 255.255.255.0
C3560(config-if)# no shut

C3560(config)# interface vlan20
C3560(config-if)# ip address 10.1.20.1 255.255.255.0
C3560(config-if)# no shut

! Configure default route to Home-Router
C3560(config)# ip route 192.168.0.1 255.255.255.0

 

NOTE: I cannot put SVI / IP on native vlan, switch says it overlaps with Gi 0/1

3 Replies 3

brselzer
Cisco Employee
Cisco Employee

Hello,

 

What exactly is broken? 

1) Can the VMs ping each other? This would prove routing is working on the switch.

2) Can the VMs ping the WRT device? Remember, you will need routes configured on the WRT pointing back to the switch for the vlan subnets.

3) Can the VMs ping to 8.8.8.8? If not, you might have an issue with NAT.

4) Can the VMs ping google.com? If not, you might be a DNS issue. 

 

I don't think your route is correct. If you want a default route it should be "ip route 0.0.0.0 0.0.0.0 192.168.0.1". Also, your interface descriptions are a little confusing because you list Server1 and Server2 twice. 

 

Hope that helps!

-Bradley Selzer
CCIE# 60833

Hello,

 

it is probably easier to use the configuration below, where the home router does the routing, and also doubles as DHCP server. In the configuration example, the assumption is that both switch and router are connected on port GigabitEthernet0/1. The below will only connect your hosts to the Home network, not to the Internet. For that, you need to add additional NAT statements to include the new networks 10.1.10.0/24 and 10.1.20.0/24:

 

3560

 

no ip routing
!
interface GigabitEthernet0/1
description Uplink to Router
switchport mode trunk
!
interface gigabitethernet0/10
description Server 1
switchport mode access
switchport access vlan 10
spanning-tree portfast
!
interface gigabitethernet0/11
description Server 2
switchport mode access
switchport access vlan 10
spanning-tree portfast
!
interface gigabitethernet0/21
description Server 1
switchport mode access
switchport access vlan 20
spanning-tree portfast
!
interface gigabitethernet0/22
description Server 2
switchport mode access
switchport access vlan 20
spanning-tree portfast
!
interface Vlan1
ip address 192.168.0.2 255.255.255.0
!
ip default-gateway 192.168.0.1

 

Home-Router

 

ip dhcp excluded-address 10.1.10.1
ip dhcp excluded-address 10.1.20.1
!
ip dhcp pool VLAN10
network 10.1.10.0 255.255.255.0
dns-server 8.8.8.8 8.8.4.4
default-router 10.1.10.1
!
ip dhcp pool VLAN20
network 10.1.20.0 255.255.255.0
dns-server 8.8.8.8 8.8.4.4
default-router 10.1.20.1
!
interface GigabitEthernet0/1
description Native Vlan 1
ip address 192.168.0.1 255.255.255.0
!
interface GigabitEthernet0/1.10
encapsulation dot1q 10
ip address 10.1.10.1 255.255.255.0
!
interface GigabitEthernet0/1.20
encapsulation dot1q 20
ip address 10.1.20.1 255.255.255.0

Hello


@mycall3570 wrote:

NOTE: I cannot put SVI / IP on native vlan, switch says it overlaps with Gi 0/1


Switch
Default interface gig0/1
inter gig0/1
switchport host

interface vlan 1
description Home-UPLINK
ip address 192.168.0.2 255.255.255.0
no shut
ip route 0.0.0.0 0.0.0.0 vlan 1 192.168.0.1

Rtr
ip route 10.1.10.0 255.255.255.0 192.168.0.2 
ip route 10.1.20.0 255.255.255.0 192.168.0.2 


Lastly if your rtr is perfroming NAT and you wish vlan 10- 20 users to access the internet then the rtr needs to add these two subnets to its exisitng NAT configuration.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul