NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Kris_Nalej
Mar 21, 2017Aspirant
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 ca...
jak0lantash
Mar 21, 2017Mentor
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
Kris_Nalej
Mar 22, 2017Aspirant
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 ?
- Kris_NalejMar 22, 2017Aspirant
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.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!