Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get static ip
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
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Mon Mar 17, 2014 10:25 am    Post subject: Cannot get static ip Reply with quote

Hi. I bought a Lenovo P400 laptop and I am trying to get static ip.
So I go to /etc/conf.d/net and I add
Code:
ifconfig_enp1s0="192.168.1.20 netmask 255.255.255.0"
routes_enp1s0="default via 192.168.1.1"
dns_servers_enp1s0="78.87.0.122"

So I link net to net.enp1s0 and restart network.
My system refuses to see the static ip and always trying to get dhcp.
But even when get dhcp ip I have packet loss.
How to make it just work?
_________________
Compile The Universe
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 167

PostPosted: Mon Mar 17, 2014 12:23 pm    Post subject: Reply with quote

I only know
Code:
config_...

instead of
Code:
ifconfig_...


Maybe give that a try.
_________________
https://gentoo.cosmofox.net/
Back to top
View user's profile Send private message
kite14
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2006
Posts: 145
Location: Pordenone/Italy

PostPosted: Tue Mar 18, 2014 7:38 am    Post subject: Reply with quote

Quote:
So I link net to net.enp1s0 and restart network.

Did you mean "link net.lo to net.enp1s0" ?

...and yes, olek is right about config_xxx / ifconfig_xxx
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