Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need static IP on my lan [SOLVED]
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
Daniel_2
n00b
n00b


Joined: 11 Sep 2004
Posts: 55

PostPosted: Wed Jan 26, 2005 6:43 pm    Post subject: Need static IP on my lan [SOLVED] Reply with quote

My network setup goes like this:
3 PCs are connected to a switch that is connected to an ADSL modem (10.0.0.138 if it matters) that's connected to the... world.
My configuration now is like this:
Code:
 config_eth0=( "dhcp" )
, and i get addresses usally like 10.0.0.2 or 10.0.0.3. Now, I remember on Windows I could set a static IP - on the Network Card setup I just added 10.0.0.x (where x is what I want).
I tried doing this on linux, i.e.
Code:
 config_eth0=( "10.0.0.3 netmask 255.0.0.0 broadcast 10.255.255.255" )
 

But then I have no network at all.
How do I do this?


Last edited by Daniel_2 on Wed Jan 26, 2005 7:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Jan 26, 2005 6:54 pm    Post subject: Reply with quote

You have to add a gateway in order to get off the local LAN.
Read the comments in /etc/conf.d/net on how to do this.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Jan 26, 2005 7:01 pm    Post subject: Reply with quote

What file is that in? My /etc/conf.d/net entry looks more like this:

iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
Back to top
View user's profile Send private message
Daniel_2
n00b
n00b


Joined: 11 Sep 2004
Posts: 55

PostPosted: Wed Jan 26, 2005 7:11 pm    Post subject: Reply with quote

lookinin - it's different from lan to lan :P thanks

adaptr - thanks, added 10.0.0.138 as router and it works.
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Jan 26, 2005 7:13 pm    Post subject: Reply with quote

Daniel_2 wrote:
lookinin - it's different from lan to lan :P thanks


Yeah, I know IP's will differ, but yours is "config_eth0" and mine is "iface_eth0". Are they interchangable?
Back to top
View user's profile Send private message
Daniel_2
n00b
n00b


Joined: 11 Sep 2004
Posts: 55

PostPosted: Thu Jan 27, 2005 1:46 pm    Post subject: Reply with quote

no idea to be honest. i learned from the net.example file, and it listed config.
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