static IP setup of grid-appliance

18 views
Skip to first unread message

Kyungyong Lee

unread,
Nov 23, 2011, 12:41:03 PM11/23/11
to aci...@googlegroups.com
Based on this source code,
https://github.com/kyungyonglee/Grid-Appliance/blob/1b8b9771f10129482b21e57608dba598f77d5124/scripts/groupvpn.sh#L122

It is groupvpn.sh file in the start() function:
The condition "STATIC" is from the /etc/ipop.vpn.config file
(http://www.grid-appliance.org/wiki/index.php/Archer:StaticAddresses)

It looks like, it is using ifconfig to set a static IP address. You
should ignore

if [[ "$USE_IPOP_HOSTNAME" ]]; then
$DIR/bin/hostname.sh
fi

at right below ifconfig command. I added it during a test.

BTW, if it uses "ifconfig" to set the an static ip address, the dns
server address should be added manually, right? Or is it better to use
dhcp instead?

Kyungyong.

Pierre St Juste

unread,
Nov 23, 2011, 1:10:09 PM11/23/11
to aci...@googlegroups.com
You are correct. In the past, static IPs were set using DHCP, now they use ifconfig. I looked at the code in Ipop and when it sees the static IP address for the first time, it checks the DHT, if the address is taken then it throws an exception. I believe that things work as Dr. Figueiredo mentioned, when you manually set static IP, IP collisions can occur but the new node will not overwrite the old node. So if a node tries to claim an IP address that's already taken, old node will still work, new node will not, until new node is configured to use a new IP address that's not taken. I believe this is the right way to do thing. So I would leave it the way it is and use ifconfig.

Kyungyong.

--
You received this message because you are subscribed to the Google Groups "acis.p2p" group.
To post to this group, send email to aci...@googlegroups.com.
To unsubscribe from this group, send email to acisp2p+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/acisp2p?hl=en.




--
Pierre St Juste
Reply all
Reply to author
Forward
0 new messages