cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
238
Views
0
Helpful
6
Replies

Catalyst 9200 VLAN macOS static IP no routing

isquare
Level 1
Level 1

There is the following setup:

1. 9200 switch with 2 VLANs.
VLAN 1: 10.0.1.0/24, IP 10.0.1.1
VLAN 2: 10.0.2.0/24, IP 10.0.2.1

2. Main router on VLAN 1: 10.0.1.2.

3. 9200 routes everything to 10.0.1.2 (main router) by a static route: 0.0.0.0 -> 10.0.1.2.

When a computer joins VLAN 1 either by DHCP or statically, it gets 10.0,1.2 as default gateway.
But when it joins VLAN 2, I can only set the switch as gateway, 10.0.2.1.

Now, everything works fine when the computer gets DHCP on VLAN 2.
When it joins VLAN 2 statically though (default gateway 10.0.2.1), the computer routing table is empty(!).
I have to manually add routes in order to access anything outside VLAN 2.

I have tried with several macOS computers with different macOS versions (Monterey, Ventura, Sonoma).
You think it’s something wrong with the switch refusing to provide routing info if the computer is not a DHCP client? Or there is something wrong with macOS static IP configuration?

Mind also that there is no problem setting static IP on VLAN 1 (default gateway 10.0.1.2, the main router).

Any thoughts might be helpful.

6 Replies 6