Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble setting static IP address
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Mon May 07, 2018 5:23 pm    Post subject: Trouble setting static IP address Reply with quote

I have /etc/conf.d/net:
Code:

config_enp1s0="192.168.0.25 netmask 255.255.0.0"
routes_enp1s0="default gw 192.168.0.1"
dns_servers_enp1s0="75.75.75.75 75.75.76.76"


I can ping/ssh the machine from itself but not from elsewhere. It also has a dynamically assigned IP address, which I can ping/ssh from elsewhere.

What did I miss?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42569
Location: 56N 3W

PostPosted: Mon May 07, 2018 6:07 pm    Post subject: Reply with quote

audiodef,

Too many default routes?
Several routes to the same place, so that incoming packets arrive at one IP and responses are returned from another

Look at the output of
Code:
route
and
Code:
route -n

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2880
Location: Illinois, USA

PostPosted: Mon May 07, 2018 6:19 pm    Post subject: Re: Trouble setting static IP address Reply with quote

audiodef wrote:
It also has a dynamically assigned IP address, which I can ping/ssh from elsewhere.
This is very strange. What is the ouput of "ifconfig -a" ?
Are you also running something else that might give you a dynamic address?

How about your router? Is it configured to assign addresses?
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