08-29-2024 01:15 AM - edited 08-29-2024 01:20 AM
Dear all
I have spent 2 days and I still cant solve the issue
My Mac Mini that connected with the swithch's interface the Gi 0/2 under the Vlan 2 is unable to connect to internet, and it failed to ping 8.8.8.8, my router gateway 192.168.50.1. It can only manage to ping the Vlan 2 Gateway 192.168.51.1 and the Gi 0/1 192.168.50.237 (this is the interface connecting router and the switch)
Hope you can help me and solve the issue
highly appreciated
Router - Asus RT AX86U Pro 192.168.50.1
Switch - 192.168.50.237 (Gi 0 /1 connecting Router with Switch)
Mac Mini - 192.168.51.2 (Gi 0/2 under Vlan 2
560CPD#show ip int brief
Interface IP-Address OK? Method Status Protocol
Vlan1 192.168.56.1 YES NVRAM up down
Vlan2 192.168.51.1 YES manual up up
Vlan3 192.168.52.1 YES NVRAM up down
Vlan4 192.168.53.1 YES NVRAM up down
Vlan5 192.168.54.1 YES NVRAM up down
GigabitEthernet0/1 192.168.50.237 YES DHCP up up
GigabitEthernet0/2 unassigned YES unset up up
GigabitEthernet0/3 unassigned YES unset up up
GigabitEthernet0/4 unassigned YES unset down down
GigabitEthernet0/5 unassigned YES unset down down
GigabitEthernet0/6 unassigned YES unset down down
GigabitEthernet0/7 unassigned YES unset down down
GigabitEthernet0/8 unassigned YES unset down down
GigabitEthernet0/9 unassigned YES unset down down
GigabitEthernet0/10 unassigned YES unset down down
3
08-29-2024 01:24 AM
1 default active
2 Nas active Gi0/2, Gi0/3
08-29-2024 01:25 AM
3 B active Gi0/4, Gi0/5
08-29-2024 01:26 AM
4 remote_access active Gi0/6, Gi0/7
5 C active Gi0/8, Gi0/9, Gi0/10
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
08-29-2024 01:38 AM - edited 08-29-2024 01:40 AM
Hello @tuart
Does th PC has got an IP, Mask and Gateway ?
Does the router has got static route towards the subnet 192.168.51.0 (vlan 2) ?
Does the Switch has got ip default-gateway command toward 192.168.50.1?
08-29-2024 03:56 AM
Does th PC has got an IP, Mask and Gateway ?
Yes, It is DHCP enabled, and it captued the following
IP: 192.168.51.2
Mask: 255.255.255.0
Gateway: 192.168.51.1
Does the router has got static route towards the subnet 192.168.51.0 (vlan 2) ?
I input the command : ip route 192.168.51.0 0.0.0.0 0.0.0.0 192.168.50.1, not sure if it is the same
Does the Switch has got ip default-gateway command toward 192.168.50.1?
yes I did
08-29-2024 01:42 AM - edited 08-29-2024 01:47 AM
Hello @tuart ,
your switch is performing inter VLAN routing .
the ASUS router needs:
a static route pointing to switch next-hop 192.168.50.237 for each subnet in the other VLANs
I use Cisco syntax here:
io route 192.168.51.0 255.255.255.0 192.168.50.237
and the router needs to perform NAT for these additional subnets in addition to the subnet 192.168.50.0/24 that is directly connected.
The switch needs a defualt route pointing to the ASUS router
ip route 0.0.0.0 0.0.0.0 192.168.50.1
at the following link you can find a user manual for your router
https://dlcdnets.asus.com/pub/ASUS/wireless/RT-AX86S/E19942_RT-AX86S_UM_WEB.pdf?model=RT-AX86U
Edit:
see page 69 for how to configure static routes on the GUI
Hope to help
Giuseppe
08-29-2024 03:59 AM
Thanks for your detailed reply.
Just to clarify, it appears to me that all the steps that you mentioned are related to Router (except the ip route 0.0.0.0 192.168.50.1), and are configured on Asus Router level, and not Cisco Switch
am I correct?
08-29-2024 04:11 AM
Hi Giuseppe
One more thing, when you said the router need "perform NAT for these additional subnets in addition to the subnet 192.168.50.0/24 that is directly connected" what are the steps that I need to take to enable the NAT?
Thanks
08-29-2024 04:11 AM
Hi @tuart
set a default route in your switch
ip route 0.0.0.0 0.0.0.0 192.168.50.1
this should works.
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