cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6951
Views
30
Helpful
23
Replies

CBS350 VLAN without internet access

zgtc
Level 1
Level 1

Hi,

 

I am new to cisco, and networking whatsoever. I bought a CBS350-16T-E-2G 16-Port and intend to use it as an L3 switch, if I understood correctly, I would be able to create VLANs and those would live in their own net, hidden from the other VLANs but able to connect other devices on the same VLAN directly though the switch, without going to/from the ISP router.

 

For now, I am using a very basic network:

  • ISP router is plugged to port 1, so default VLAN 1.
  • I have configured a VLAN 20 and a 192.168.20.1 IP, then assigned it to ports 5 and 9 as access.
  • Then I have plugged two raspberry pi to these ports, and assigned static IPs 192.168.20.10 and 11.
  • If I plug a computer into any other port it just gets a .1.x IP and has internet access.

PROBLEM

I can ping both rpi from the switch, and the rpi can ping each other and also the switch at 192.168.20.1, but they cannot access the internet.

 

Here is my current config:

 

switche44faf#show running-config
config-file-header
switche44faf
v3.0.0.69 / RCBS3.0_930_770_008
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
vlan database
vlan 20
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone
voice vlan oui-table add 00036b Cisco_phone
voice vlan oui-table add 00096e Avaya
voice vlan oui-table add 000fe2 H3C_Aolynk
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone
voice vlan oui-table add 00e075 Polycom/Veritel_phone
voice vlan oui-table add 00e0bb 3Com_phone
bonjour interface range vlan 1
hostname switche44faf
(username and user-key removed)
exit
exit
!
interface vlan 1
ip address 192.168.1.167 255.255.255.0
no ip address dhcp
!
interface vlan 20
name teen
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet5
switchport access vlan 20
!
interface GigabitEthernet9
switchport access vlan 20
!
exit
ip default-gateway 192.168.1.1

It is probably a very basic question, but how do I get the VLAN 20 to have internet access?

 

Thank you for your help
Sergi

23 Replies 23

sure or you can use raspberry pi with pfsense.

 

BB

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

How to Ask The Cisco Community for Help

zgtc
Level 1
Level 1

Hi again, I am back. Sorry, it took me a bit longer than expected, but following your advice, I finally swapped my router into a pfsense router. I also created a simple test scenario with a VLAN 10.

 

1. From the router itself I can ping from both VLAN 1 and 10 to the internet (both DNS and real site pings).

 

2. I can also make this VLAN 10 see the internet if I use an Unifi managed switch as access port (only 10 on a specific port).

 

3. But I still cannot make this VLAN 10 see the internet on my CBS350 switch, no matter what I try. I cannot even get a DHCP address when plugging a cable to the access port on the Cisco switch. Neither can I get it to work on a trunk port even if manually setting the IP of the plugged mac mini. I have tried leaving a trunk port, using an access port, also setting a fix IP on the VLAN or setting a DHCP relay.

 

Any help would be really appreciated since I am really lost.

Sergi

To give more info. I reset the switch to factory, then add the VLAN and assign it to a port as access. My mac mini simply doesn't know what IP to give it and assigns one out of the VLAN range:

 

Screenshot 2021-04-06 at 20.33.33.png

More info on the port I am trying to use for vlan 20:

 

switche44faf#show interfaces switchport gi9
S-VLAN Ethernet Type:  0x8100 (802.1q)
VLAN Mapping Tunnel L2 protocols Global CoS: 5
Name: gi9
Switchport: enable
Administrative Mode: access
Operational Mode: down
Access Mode VLAN: 20
Access Multicast TV VLAN: none
Trunking Native Mode VLAN: 1
Trunking VLANs: 1,20
                        2-19,21-4094 (Inactive)
General PVID: 1
General VLANs: none
General Egress Tagged VLANs: none
General Forbidden VLANs: none
General Ingress Filtering: enabled
General Acceptable Frame Type: all
General GVRP status: disabled
Customer Mode VLAN: none
Customer Multicast TV VLANs: none
Private-vlan promiscuous-association primary VLAN: none
Private-vlan promiscuous-association Secondary VLANs: none
Private-vlan host-association primary VLAN: none      
Private-vlan host-association Secondary VLAN: none

VLAN Mapping Tunnel - no resources

VLAN Mapping One-To-One - no resources

As a reminder, my other managed switch (Unifi) works perfectly and has internet access on that VLAN20. The VLAN 20 IPv4 and DHCP is managed by the pfsense router. More info on the routes as seen from the cisco switch, in case it helps:

 

show ip route
Maximum Parallel Paths: 1 (1 after reset)
IP Forwarding: enabled
Codes: > - best, C - connected, S - static


D   0.0.0.0/0 [1/8] via 192.168.1.1, 03:18:21, vlan 1                      
C   192.168.1.0/24 is directly connected, vlan 1  

zgtc
Level 1
Level 1

I also updated the firmware to the latest 3.1.0.57. Still same issue, VLAN has no internet connection

zgtc
Level 1
Level 1

Part 1 of the problem was indeed the ISP router, so I used a new computer and installed pfsense v2.5.0. That allowed me to ping (IP and name, from native vlan and new vlan, to the internet) from the new router but still had the problem with the switch.

 

Then, don't ask me why, but pfsense 2.4.5.p1 did not have any problem at all. Yes, I had reinstalled pfsense v2.5.0 and also tried OPNsense v21.1 as well, both had the same issue not letting me access internet from a Cisco port as access (VLAN x), but once I installed the old pfsense 2.4.5.p1 it all went ok from the beginning.

ccz
Level 1
Level 1

Hi zgtc

Please can you help me with this information:


The Switch CBS350 supports IP SLA commands?

 

track 25 ip sla 25 reachability

!

ip sla 25
icmp-echo x.x.x.x
timeout 1000
frequency 5
ip sla schedule 25 life forever start-time now
ip sla enable reaction-alerts

!

ip route 0.0.0.0 0.0.0.0 x.x.x.x name Ruta track 25

 

I have found this link that the CBS250 and CBS350 apparently support IP SLA completely.


https://www.cisco.com/c/en/us/support/docs/smb/switches/Cisco-Business-Switching/kmgmt-2247-configure-ip-sla-tracking-for-ipv4-static-routes-on-a-cbs.html

 

However, the emulator offered by Cisco does not have the option to configure IP SLA through the web interface. Is it possible to configure it by CLI?

 

Thanks.

 

CBS Do  support IP SLA

 

BB

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

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card