Recently there were some posts about set-up multiple IPs to one NIC in Bering.
I am interested in the setup but mine is 'Dachstein' and in my case I can get 2
dynamic IPs, not static.
Could you help me with that?
Specifically I would like to have eth0:0 and eth0:1 be assigned the IPs given from the
ISP's DHCP server. And then somehow assign those IP addresses to the variables in
/etc/network.conf so I can apply the rules I want with them.
So
1. How do I modify the config files for dhclient? I read the following in
'/etc/dhclient-script'
# 0.0 All notes numbered x.x added by Charles Steinkuehler
...
# 2.1 The alias address handeling has been tested and seems to do the right
# thing. It's up to you actually do something usefull with this, however.
but do not know where to put the alias. Can you give me an example?
2. How can I get the IPs into /etc/network.conf, similarly to the way you did with one
external IP:
# This computes the IP address of $EXTERN_IF
EXTERN_IP=`ip addr list label $EXTERN_IF | \
grep inet | sed '1!d' | \
sed 's/^[^.0-9]*\([.0-9]*\).*$/\1/'`
I see that you have a variable, 'eth0_IP_EXTRA_ADDRS' but probably it is for static
IP, right?
Thank you very much.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html