1 |
Thanks for the advice Konstantin. To be honest the "crazy" option looks |
2 |
very interesting, but perhaps for another day. I think I may have found |
3 |
my solution. It occurred to me that I just needed to have a unique MAC |
4 |
for my ISP's dhcp server, but not necessarily for the network proper. |
5 |
In that case, I can simply pass a "unique" CLIENTID to dhcpcd when I |
6 |
call it, as in the following test (-T) example: |
7 |
|
8 |
# dhcpcd -T -I 00:GE:NT:00:RO:CK eth0:0 |
9 |
IPADDR='192.168.1.105' |
10 |
NETMASK='255.255.255.0' |
11 |
BROADCAST='192.168.1.255' |
12 |
ROUTES='' |
13 |
GATEWAYS='192.168.1.1' |
14 |
DNSSERVERS='DNS server IPs are here' |
15 |
DHCPSID='192.168.1.1' |
16 |
LEASETIME='86400' |
17 |
RENEWALTIME='0' |
18 |
REBINDTIME='0' |
19 |
INTERFACE='eth0:0' |
20 |
CLASSID='dhcpcd 3.1.5' |
21 |
CLIENTID='00:GE:NT:00:RO:CK |
22 |
DHCPCHADDR='my:re:al:ma:ca:dd' |
23 |
|
24 |
Now, of course, I didn't actually use 00:GE:NT:00:RO:CK as the CLIENTID, |
25 |
but you get the point. |
26 |
|
27 |
At this point the question becomes: Will I be able to use this with my |
28 |
IP, not just my internal router? I hope so, I will test very soon. |
29 |
|
30 |
Another question is: How do I add this to /etc/conf.d/net so that this |
31 |
all occurs nice & clean whrn I start net.eth0? |
32 |
|
33 |
Regardless, thanks for the assistance. I will post with further news as |
34 |
I learn. Anyone with any experience with this subject, please know that |
35 |
your past and future assistance is appreciated. |
36 |
|
37 |
Cheers, |
38 |
Summers |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
Konstantin Astafjev wrote: |
45 |
> Hello M, |
46 |
> |
47 |
> Monday, December 3, 2007, 8:46:58 PM, you wrote: |
48 |
> |
49 |
>> I have a rather pressing issue with IP aliasing. So, my ISP assigns IPs |
50 |
>> via dhcp using the MAC address to bind it statically. What I need to |
51 |
>> do is get multiple static public IPs via their dhcp server. My ISPs |
52 |
>> reliance on dhcp presents an interesting problem. How am I to acquire |
53 |
>> multiple static public IPs from one NIC, say eth0, if their dhcp server |
54 |
>> requires a unique MAC address per IP? I have tried using macchanger, |
55 |
>> but it doesn't work for aliases alone. It changes the MAC for the main |
56 |
>> interface, eth0, not eth0:{0,N}. |
57 |
>> |
58 |
> |
59 |
> If I'm not mistaken you have 3 options: |
60 |
> |
61 |
> - force your ISP make some static rules mac=some_IPs in their |
62 |
> switches/routers. I guess they forcing clients to use DHCP because |
63 |
> of "dhcp snooping" and "arp inspection" features helps them filter |
64 |
> alien ips&macs. |
65 |
> |
66 |
> - take a simple switch and some NICs with different MACs. |
67 |
> Quantity depends on how many IPs do you need. ;) |
68 |
> |
69 |
> - the craziest one: take vlan switch, on your NIC create some VLANs, |
70 |
> change MAC address on each VLAN. |
71 |
> |
72 |
> AFAIK, DHCP assigning a different IPs simultaneously on one MAC impossible. |
73 |
> |
74 |
> |
75 |
|
76 |
-- |
77 |
gentoo-server@g.o mailing list |