Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Static IP fails--RTNETLINK: network is unreachable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Nov 09, 2013 3:00 am    Post subject: [SOLVED] Static IP fails--RTNETLINK: network is unreachable Reply with quote

My old Netgear router died and I replaced it with a new one. I can connect correctly with dhcp (essentially with no /etc/conf.d/net file). With the old router I had a static IP (which I prefer) and it connected without problems with this /etc/conf.d/net:
Code:
config_enp4s3="192.168.1.2/24"
routes_enp4s3="default via 192.168.2.1"

But the new router gives me this error:
Code:
 * Bringing up interface enp4s3
 *   192.168.1.2/24 ...                                                 
 *   Adding routes
 *     default via 192.168.2.1 ...
RTNETLINK answers: Network is unreachable                 
 *   Waiting for IPv6 addresses ...

I'm on openrc-0.11.8 and baselayout-2.2.

Any pointers toward solution will be gratefully received.

[SOLVED] eyoung100's sharp eyes pointed out a misconfigured default gateway. Thank you! [/SOLVED]


Last edited by cfgauss on Sat Nov 09, 2013 5:12 am; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Sat Nov 09, 2013 4:52 am    Post subject: Reply with quote

What is the Router's default IP Address :?:
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Nov 09, 2013 5:08 am    Post subject: Reply with quote

eyoung100 wrote:
What is the Router's default IP Address :?:

192.168.1.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum