cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
767
Views
0
Helpful
9
Replies

Switch unable to connect to Internet

tuart
Level 1
Level 1

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

9 Replies 9

tuart
Level 1
Level 1

1    default                          active    

2    Nas                              active    Gi0/2, Gi0/3

 

tuart
Level 1
Level 1

3    B                            active    Gi0/4, Gi0/5

tuart
Level 1
Level 1

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

M02@rt37
VIP
VIP

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?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

 

 

HI Giuseppe Larosa

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?

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

 

Hamed Fazel
Spotlight
Spotlight

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.