Bitcoin Forum
May 05, 2024, 09:00:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can anyone help me to setup a static IP in Linuxcoin?  (Read 1036 times)
mackminer (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



View Profile
June 30, 2011, 12:54:20 PM
 #1

The /etc/network/interfaces file only lists the below..

auto lo
iface lo inet loopback


However my machine does have a dynamic ip.

Thanks a mill.

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714942848
Hero Member
*
Offline Offline

Posts: 1714942848

View Profile Personal Message (Offline)

Ignore
1714942848
Reply with quote  #2

1714942848
Report to moderator
1714942848
Hero Member
*
Offline Offline

Posts: 1714942848

View Profile Personal Message (Offline)

Ignore
1714942848
Reply with quote  #2

1714942848
Report to moderator
zubatej
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 30, 2011, 02:03:06 PM
 #2

Add to the file these lines…

auto eth0
iface eth0 inet static
       address 192.168.1.2
       netmask 255.255.255.0
       broadcast 192.168.1.255
       network 192.168.1.0
       gateway 192.168.1.1

modified according to your needs. Interface name can be obtained by "ip link" command. After you are finished with editing restart the networking service by "/etc/init.d/networking restart" command. You can check the result by "ip addr" command.
mackminer (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



View Profile
June 30, 2011, 02:55:28 PM
 #3

Thanks for that. I did do it but on restarting it reverts back .ie removes all the static settings. Even though I'm running persistence.

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
SilverLeaf
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
June 30, 2011, 03:00:19 PM
 #4

I have set in /etc/rc.local these lines:

sudo ifconfig eth0 192.168.1.2 255.255.255.0 up
sudo route add default gw 192.168.1.1

That file is kept if you're using persistence =) .
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!