OpenWrt Forum Archive

Topic: clone mac address to obtain new wan-ip (cable modem) problem

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I tried to get a new wan-ip (for using stream-sites, rapidshare etc.) with my wl500gp v.1 and kamikaze openwrt-8.09.2.

I added an additional field MAC-Address in Network > Interfaces > Wan and put in a different address (only changed the last 2 digits). (using the luci interface)

After restarting the router and the cable modem as well i still don't get another WAN-IP. If i try the same with my pc directly connected to the modem (clone mac address of the NIC of the pc) it works without any problems, i get another IP.
It also was working with DD-WRT.

What else do i have to do to make it work with kamikaze???

I want to write a batch-script to automate the whole procedure, so i can have a new IP with only a double-click. already have a working one for dd-wrt.

hope somebody has a hint

regards
toyboy

(Last edited by toyboy on 27 Dec 2009, 23:31)

i don't use luci, but uci show network and see if on interface lan there's option macaddr

No, it doesn't show the option for lan, only for wan. Is it important to change both mac-adresses? Do they need to be the same? do you have a working configuration with a cable modem?

no, only WAN, is it in the correct format? like 01:02:03:04:05:06, and lowercase , and yes i have a working configuration:

config 'interface' 'wan'
    option ifname    eth0.0
    option proto    dhcp
    option macaddr '00:2d:9a:c5:e3:6f'

That's my 'cat /etc/config/network' :

config 'switch' 'eth0'
        option 'vlan0' '1 2 3 4 5*'
        option 'vlan1' '0 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'dhcp'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'macaddr' '00:1B:FC:91:79:13'

hummm try to put the mac address in lowercase... and then , go to the SSH and ifdown wan and ifup wan

I changed the mac-address format to lowercase and it's working now... thanks a lot!!!

you welcome smile have phun

The discussion might have continued from here.