You are here

setting mac address

1 post / 0 new
KI5QHC
setting mac address
ok ... so i know this is kind of specific and very much a one off but i was hoping someone could help me ....

i need to be able to set the MAC address on the wan bridge

i am setting up a x86 node on ovh ( a hosting platform ) and to get the wan to work it need to be set to a certain mac they provide 

i have got it to work by editing /etc/config/network and setting it there 
and also removing the tag on the port ( not sure why this one)

i.e : 
this : 

#### WAN configuration
# Generated by advancednetwork

config bridge-vlan
        option device 'br0'
        option vlan '1'
        list ports 'eth0:t'

config device
        option name 'br-wan'
        option type 'bridge'
        option macaddr 'OL:DM:AC:AD:RE:SS'
        list ports 'br0.1'



to this: 
 

#### WAN configuration
# Generated by advancednetwork

config bridge-vlan
        option device 'br0'
        option vlan '1'
        list ports 'eth0'

config device
        option name 'br-wan'
        option type 'bridge'
        option macaddr 'NE:WM:AC:AD:RE:SS'
        list ports 'br0.1'

 
and then restarting the network

/etc/init.d/network restart


and it will all work after that .... but anytime i save anything with the web ui it reverts it all and i have to login to the console and set all the changes again 

bottom line is there any way to set the wan-br mac address permeantly ?

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer