Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems setting a static ip (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
FuriousGeorge
Apprentice
Apprentice


Joined: 03 Mar 2005
Posts: 160

PostPosted: Wed Mar 23, 2005 5:45 pm    Post subject: problems setting a static ip (solved) Reply with quote

right now i using dhcpcd and it works fine. when i ifconfig eth0 it says

Code:
eth0   Link encap:Ethernet  HWaddr 00:01:29:F1:0A:FB
          inet addr:10.0.0.103  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35385 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27814 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21611386 (20.6 Mb)  TX bytes:3493562 (3.3 Mb)
          Interrupt:12 Base address:0xe000


so i set my /etc/init.dnet.eth0's iface line to static ip 10.0.0.2 and the rest:

Code:
iface_eth0="10.0.0.2 broadcast 10.0.0.255 netmask 255.255.255.0"


then i restart networking with a /etc/init.d/net.eth0 restart, and i cant ping anything outside my lan.

UPDATE: I dug up the docs and saw that i needed to add the line gateway="eth0/10.0.0.1" to specify my router.
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