- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Default gateway to Internet
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Default gateway to Internet
Configuration in my GUI:
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 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Default gateway to Internet
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. 😞
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.