× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Default gateway to Internet

Kris_Nalej
Aspirant

Default gateway to Internet

ReadyNas RN4220 has 6 network adapters.

Each one can be connected to a different subnet.

Only one subnet has a connection to the Internet.

How to set the default gatewey to Internet ?

ReadyNas can't check for updates or connect to ReadyCloud because

default gateway is set to the wrong ethernet adapter.

I use static configuration.

Firmware version 6.6.1

 

 

Model: RN4220X|ReadyNAS 4220 10Gbase-T
Message 1 of 11
jak0lantash
Mentor

Re: Default gateway to Internet

The configuration UI for this is stupid imo.

Set the default gateway on the correct interface, set 0.0.0.0 on all the other interfaces (or leave empty, don't remember if that is supported now).

Message 2 of 11
Kris_Nalej
Aspirant

Re: Default gateway to Internet

Thank you for the answer.

 

Unfortunately seting 'router' to 0.0.0.0 = empty doesn't help.

Connection to the Internet works only when one ethernet card is configured.

In my opinion only some command line (ssh) configuration can help.

 

Message 3 of 11
jak0lantash
Mentor

Re: Default gateway to Internet

That's the way I configured my RN312.

First NIC in the main subnet with gateway and Internet connectivity, second NIC in a secondary subnet without gateway and no Internet connectivity, and it works for me.

Via SSH, can you give the output of 

netstat -rn

I'll check later today the exact configuration from the GUI. 

Message 4 of 11
jak0lantash
Mentor

Re: Default gateway to Internet

I confirm that's what I have configured in the GUI:

eth0: DHCP
IP 192.168.1.2/24
GW 192.168.1.1
DNS 192.168.1.1

eth1: Static
IP 10.0.0.1/24
GW 0.0.0.0

 Via SSH

 

# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
10.0.0.0       0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0

And Internet connection is OK

# ping google.com
PING google.com (209.85.202.113): 56 data bytes
64 bytes from 209.85.202.113: seq=0 ttl=48 time=26.572 ms

 

Message 5 of 11
Kris_Nalej
Aspirant

Re: Default gateway to Internet

Configuration in my GUI:

 

eth.jpg

bond0: Static

IP 10.0.0.2

netmask 255.255.255.0

GW 10.0.0.1

DNS 10.0.0.1

(this is the connection to Internet)

 

eth3:

IP 10.10.10.20

netmask 255.255.255.0

GW 0.0.0.0

DNS not set

 

netstat -nr

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 eth3
10.0.0.0        0.0.0.0         255.255.252.0   U         0 0          0 bond0
10.0.0.1        0.0.0.0         255.255.255.255 UH        0 0          0 bond0
10.10.10.0      0.0.0.0         255.255.255.0   U         0 0          0 eth3

Default gateway is set to eth3, and this is the problem. How can I change it to bond0 ?

 

 

 

Message 6 of 11
Kris_Nalej
Aspirant

Re: Default gateway to Internet

I changed default gateway

 ip route change default via 10.0.0.1 dev bond0

and routing table now looks like:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         gateway         0.0.0.0         UG        0 0          0 bond0
10.0.0.0        *               255.255.252.0   U         0 0          0 bond0
gateway         *               255.255.255.255 UH        0 0          0 bond0
10.10.10.0      *               255.255.255.0   U         0 0          0 eth3

and connection to the Internet works, but only until restart I think.

 

Message 7 of 11
jak0lantash
Mentor

Re: Default gateway to Internet

For a permanent solution, you should look for the correct config using the GUI. Otherwise, your modifications can potentially be overwriiten by ReadyNASd at next boot, or next write interaction with the config.
Message 8 of 11
jrsmith61
Tutor

Re: Default gateway to Internet

I have a similar problem with my RN626X and I wonder if it is related to the order in which the bonds were created. The RN626X has 2 x 1 Gb interfaces, eth0/1, and 2 x 10 Gb interfaces, eth2/3. I created bond0 using the 10 Gb interfaces and bond1 using the 1 Gb interfaces. bond0 connects to an isolated network used for iSCSI only. bond0 is configured with a router address of 0.0.0.0. bond1 connects to a network with Internet access. bond1 is configured with a router address that points to my firewall. DNS for bond1 points to the same firewall.

 

Everything was working fine until I installed 6.7.0 last night. After that, I could only access my ReadyNAS from networks to which it is directly connected. While searching for a solution I found this discussion. I was able to correct the problem by enabling ssh and using ip route to change the default gateway, but I don't think that is a permanent solution.

 

I can't figure out how to use the GUI to make the change stick. I thought I might try deleting and recreating the bonds so that bond0 uses the 1 Gb NICs and bond1 uses the 10 Gb NICs, but I'm open to suggestions.

Model: RN626X | ReadyNAS 626X 6-Bay with Intel® Xeon® Quad-Core Server Processor
Message 9 of 11
Kris_Nalej
Aspirant

Re: Default gateway to Internet

Yes, it's trure that after update 6.7.0 you could only access  ReadyNAS from networks to which it is directly connected.

I have the same issue.

The solution is to add each subnet to 'routes' in GUI ( menu 'Network' than tab 'Routes'). It's worked for me.

Unfortunetly I have still problem to acces the Internet. 😞

 

Message 10 of 11
jrsmith61
Tutor

Re: Default gateway to Internet

I deleted and recreated both bonds and added a static route using the command line, ip route change default via 192.168.168.1 dev bond0. The default route has been persistent across multiple reboots.

 

ReadyNAS routes.PNG

 

Model: RN626X | ReadyNAS 626X 6-Bay with Intel® Xeon® Quad-Core Server Processor
Message 11 of 11
Top Contributors
Discussion stats
  • 10 replies
  • 3852 views
  • 0 kudos
  • 3 in conversation
Announcements