Koozali.org: home of the SME Server

Telstra (Australia) Cable Modem HELP!

Kelvin

Re: Telstra (Australia) Cable Modem HELP!
« Reply #15 on: September 14, 2003, 03:51:24 AM »
Hi Andre,

Sometimes, suggestions and pinters given here are merely the starting point, and not the literal solutions. This can be both confusing and frustrating for new comers, and understandably so.

In this case, /etc/e-smith/templates-custom is the root folder of the user created template customisations.

To achieve what you need, have a look at the current structure of the template folder for the file you are trying to modify :-

/etc/e-smith/templates/etc/sysconfig....... and so on.

You will need to recreate the same directory structure, except under /etc/e-smith/templates-custom instead of /etc/e-smith/templates. Then modify the template fragment file under the templates-custom folder tree.

Therefore :-

mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1
cp /etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-eth1/template-begin /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1

These 2 lines above (the second line is very long but is only one command line, not two - mind the line wrap), will create the necessary folder structure for you and then copy the template fragment you need to modify.

Now modify the file, eg :-

pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1/template-begin

(again, this is only 1 long line)

There are 2 sections in the template file, one deals with "normal" mode and the other if your eth1 and eth0 are running in "swapped" mode, which you would have selected when setting up SME or when configuring it through the admin console login. Edit the corresponding section for your setup.

Add :-
MACADDR=AA:BB:CC:DD:EE:FF

in between the NETMASK and NETWORK lines then save the file.

Now, expand the template with :-

/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1

Kelvin.

Bob King

Re: Telstra (Australia) Cable Modem HELP!
« Reply #16 on: September 14, 2003, 05:25:48 AM »
Since I had that problem, I have set-up several more SME servers on Telstra Cable and learned that the Mac Address memory is only temporary. I'm not sure if it is the modem or the authentication server that remembers the Mac Address but it only retains the memory for a short time. So if you have a bit of time just turn off the modem for a few hours and then restart it and reboot the SME server all should be fine. At least that has work for me on the last few systems I set-up.

If you don't have the time to wait, just follow Kevin's instructions above as it works also.

Bob

Kelvin

Re: Telstra (Australia) Cable Modem HELP!
« Reply #17 on: September 14, 2003, 12:42:09 PM »
Hi Bob,

> the Mac Address memory is only temporary

That's right. I think Telstra's routers cache the last MAC address used to access it. If another card tries to logon with the same credentials, it is refused, until it is flushed from the cache (so don't keep trying, just wait) and the new MAC address is recorded. The MAC address spoofing technique is for those who need to get the system back up and running ASAP, which is why most popular hardware DSL/Cable routers these days all support MAC spoofing.

Kelvin

André

Re: Telstra (Australia) Cable Modem HELP!
« Reply #18 on: September 14, 2003, 01:09:06 PM »
Great! Thanks.

I was half-way that solution after I posted it as there was surprisingly little info using google and several forums.

I already discovered more of the template structure, but my mistake was to put only the mac adress in that file... and after that expanding gave a failure, now I know why.....

In respect to your remark: " learned that the Mac Address memory is only temporary"

With Chello in the NL we are faced with a database where they use the MAC address for registration purpose, so resetting the modem unfortunately does not help..

Of course you can enter the re-registration procedure every time you want to switch.... but that's not funny as you sometimes will have to wait a time until the new mac registration will become active.... so further experimentation is impossible....

I will post some remarks in the forum and also make a link to the solution in our Dutch Linux forum

groeten uit Nederland...

André

PS: small detail. Pico did not work with the long dir name (for real new one, so cd closer to ifcfg-eth1 or go even there).
Another tip for new ones: take care of the script structure using the " and the .

André

Re: Telstra (Australia) Cable Modem HELP!
« Reply #19 on: September 18, 2003, 04:00:41 PM »
Yes!
The server worked directly on Chello, after some dry test with fixed local ip's..
The dynamic ip is resolved quickly! I only had to ifdown eth0 from the current server and ifup for this  one (of course normal boot is also possible...)

I've started a search on making MSN-voice work. Although the h323 module is loaded (seen by lsmod) it does work. File transfer does, but voice not.
I've read several topics, but with respect for a lot of suggestion and maybe's I cannot really discover some one saying YES!. It is th same with Google: a lot of maybe's and suggestions...
It will probably be better to put it in a new topic or continue it a recent one on this theme.