FuriousGeorge Apprentice
Joined: 03 Mar 2005 Posts: 160
|
Posted: Wed Mar 23, 2005 5:45 pm Post subject: problems setting a static ip (solved) |
|
|
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. |
|