View previous topic :: View next topic |
Author |
Message |
Daniel_2 n00b

Joined: 11 Sep 2004 Posts: 55
|
Posted: Wed Jan 26, 2005 6:43 pm Post subject: Need static IP on my lan [SOLVED] |
|
|
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 |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Jan 26, 2005 6:54 pm Post subject: |
|
|
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 |
|
 |
lookinin Guru

Joined: 21 Jan 2005 Posts: 486
|
Posted: Wed Jan 26, 2005 7:01 pm Post subject: |
|
|
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 |
|
 |
Daniel_2 n00b

Joined: 11 Sep 2004 Posts: 55
|
Posted: Wed Jan 26, 2005 7:11 pm Post subject: |
|
|
lookinin - it's different from lan to lan thanks
adaptr - thanks, added 10.0.0.138 as router and it works. |
|
Back to top |
|
 |
lookinin Guru

Joined: 21 Jan 2005 Posts: 486
|
Posted: Wed Jan 26, 2005 7:13 pm Post subject: |
|
|
Daniel_2 wrote: | lookinin - it's different from lan to lan thanks
|
Yeah, I know IP's will differ, but yours is "config_eth0" and mine is "iface_eth0". Are they interchangable? |
|
Back to top |
|
 |
Daniel_2 n00b

Joined: 11 Sep 2004 Posts: 55
|
Posted: Thu Jan 27, 2005 1:46 pm Post subject: |
|
|
no idea to be honest. i learned from the net.example file, and it listed config. |
|
Back to top |
|
 |
|