01-24-2018 10:47 AM - edited 03-08-2019 01:32 PM
I have setup an Ubiquiti USG with 3 networks. Lan 1 (untagged) is 192.168.1.0/24. vlan 10 is 172.16.0.0/24, and vlan 50 is 192.168.0.0/24. I am trying to put a raspberry pi 3 with a static on the "lan" network so it is on same network as the router. Coming out of interface lan port 1 from the USG router is connected to port fa0/2 on the Cisco switch. I have set port fa0/1 as unconfigured and plugged the raspberry pi 3 with static IP 192.168.1.2 but it is unable to connect to the network. If I unplug it from fa0/1 set the pi to DHCP on port fa0/3 I get an IP from vlan 10 and can get a route to the USG router IP of 192.168.1.1. The goal is to use the LAN network as a management network and want to set a management IP for the switch itself on to the management LAN.
Why can't I get connectivity to the router if setting the static IP to the LAN network. Attached is the switch config
Solved! Go to Solution.
01-24-2018 01:14 PM - edited 01-24-2018 01:15 PM
It looks like you don't have VLAN 1 enabled on Fa0/2. If you don't allow the VLAN onto the trunk, only control traffic will be permitted, which will block your Pi from reaching the Ubiquiti.
Try this:
interface fa0/2 switchport trunk allowed vlan 1,10,50
01-24-2018 02:43 PM
Did that fix things up for you? If so, please accept the configuration change as a solution so it shows up for anyone else who might be looking. If not, let me know what results you're getting now and we'll look into it further.
01-25-2018 05:14 PM
Yes sir!! It did fix it. On switch 1. I integrated your recommendation and updated my config as shown:
interface FastEthernet0/1
description Device on Management
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
description Connection to Router
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,50
switchport mode trunk
01-24-2018 01:14 PM - edited 01-24-2018 01:15 PM
It looks like you don't have VLAN 1 enabled on Fa0/2. If you don't allow the VLAN onto the trunk, only control traffic will be permitted, which will block your Pi from reaching the Ubiquiti.
Try this:
interface fa0/2 switchport trunk allowed vlan 1,10,50
01-24-2018 02:43 PM
Did that fix things up for you? If so, please accept the configuration change as a solution so it shows up for anyone else who might be looking. If not, let me know what results you're getting now and we'll look into it further.
01-24-2018 05:10 PM
I have not had a chance to test it but I believe you are spot on.
Thank you for the quick reply. I will test this out as soon as I get back and in front of that switch.
01-25-2018 05:14 PM
Yes sir!! It did fix it. On switch 1. I integrated your recommendation and updated my config as shown:
interface FastEthernet0/1
description Device on Management
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
description Connection to Router
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,50
switchport mode trunk
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