NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SGNOC
Nov 21, 2023Aspirant
M4300-24X24F Basic Layer 2 Switching Only Configuration Issue
I'm trying to replace an older switch with this new M4300-24X24F switch, but am having trouble getting it configured the way that I need.
Just to get things operational, I am trying to configure Port 1 (F) and Port 25 (X) as trunk ports, passing all VLAN traffic (native VLAN 5) from a router/firewall (Port 1) to another switch (Port 25) and the remaining ports will be configured as access ports with VLAN PVID 5. I only want layer 2 switching functioning, so the core router (Port 1) will do the VLAN routing and pass traffic back down to this switch for traffic between VLANs. I don't want this switch to make any routing decisions, but still be accessible on the VLAN 5 IP assigned for configuration.
This isn't the end result, I just need to get this working first, so I can then make additional modifications for the rest of the settings I need.
What is wrong with my configuration file? When I try to connect my firewall/router to port 1, I lose the internet connection. If I try to connect a downstream switch to another trunk port I configured, I lose communication. I can temporarily plug in a trunk port from the switch this unit will eventually replace, into port 25 (configured as trunk) and I can get communication to devices on this switch. I've been going between the CLI and WebGUI, but some of this isn't making sense on disabling IP routing, but still having the switch send traffic where it needs to go on layer 2.
I'm attaching my config file (with hashes removed for accounts).
2 Replies
- SGNOCAspirant
I've done some additional testing and changed all non trunk ports to switchport mode access, along with switchport access vlan 5. I've also removed all ip routing options that I could find. That has disabled the management access to the 10.10.5.8 on VLAN 5, so it seems that some routing has to be enabled for that to work. I'll tackle that once I get the rest working. Still trying to get just switching w/ vlans working along with the trunk ports from the router/firewall and to another downstream switch. Attached is my updated config file.
- SGNOCAspirant
I was able to get the switch working as a layer 2 switch from the last config posted by removing the native vlan trunk lines from the trunks. The router and switches on either side of this switch were expecting untagged vlans on everything and I mistakenly thought the trunk line with native vlan trunk configured would just tag incoming traffic that was not tagged with the native tag, but it also removed the vlan tag for the native vlan on the way out, which the devices were not accepting apparently.
My only remaining question is if anything else looks out of place in the config, and if I can enable the management interface on a specific vlan, which enables some routing features and the default gateway, without having the switch turn into routing mode and start routing traffic that should have gone to the router?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!