Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] custom 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
Rayne
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2005
Posts: 131

PostPosted: Sun Nov 13, 2005 9:14 am    Post subject: [SOLVED] custom ip Reply with quote

I'm trying to set a custom ip (dhcpcd works fine BTW), actually the same ip as dhcp gets.
On 2005.0, /etc/conf.d/net has this:

iface_eth0="193.140.7.159 broadcast 193.140.7.255 netmask 255.255.255.0"
gateway="eth0/193.140.7.129"

And it's working right now.
On 2005.1, I tried this:

config_eth0=( "193.140.7.159 broadcast 193.140.7.255 netmask 255.255.255.0" )
and it's not working.
I also tried adding
routes_eth0=( "default via 193.140.7.129" )
but nope, it's not working. It says it got ip 193.140.7.159, but when I try to ping some URL, I get "unknown host" error.
Any ideas how I can set up the same thing in 2005.1?


Last edited by Rayne on Sun Nov 13, 2005 2:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Nov 13, 2005 9:39 am    Post subject: Reply with quote

Are you able to ping by IP? For example
Code:
ping 38.99.64.201

If so it's a name resolution problem, and you've to fix /etc/resolv.conf. If not please post ifconfig and netstat -rn output.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
Rayne
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2005
Posts: 131

PostPosted: Sun Nov 13, 2005 2:29 pm    Post subject: Reply with quote

My apologizes, I've mistyped gateway address! It's working now!
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