How do I change the MAC Address of my RED Interface
This is a frig for 1.2 only!!!.
Edit /var/ipcop/ethernet/settings. Add this line after the other lines starting RED.
RED_HWADDR=hh:hh:hh:hh:hh:hh
Replace the hh with the required hex MAC address.
Edit /etc/rc.d/rc.netaddress.up. Add the ifconfig $RED_DEV hw ether $RED_HWADDR lines
if [ "$CONFIG_TYPE" = "2" -o "$CONFIG_TYPE" = "3" ]; then
if [ "$RED_DEV" != "" ]; then
if [ "$RED_TYPE" = "DHCP" ]; then
rm /etc/dhcpc/*.info -f
ifconfig $RED_DEV hw ether $RED_HWADDR
/sbin/dhcpcd -h $RED_DHCP_HOSTNAME -R $RED_DEV
elif [ "$RED_TYPE" = "STATIC" -o "$RED_TYPE" = "PPTP" ]; then
ifconfig $RED_DEV hw ether $RED_HWADDR
hierboven geldt voor Ipcop 1.2, ik wil mijn ipcop RED-interface aanpassen naar een 3com kaartje en niet de Realtek die er nu inzit (stabiliteit). Ik heb chello, dus moet zelfde mac-adres gebruiken voor wan-interface (Authenticatie dmv mac-adres via LDAP), anders bellen naar helpdesk en stuff, ik wil niet afhankelijk zijn van mijn ISP.
Heeft iemand enig idee?
This is a frig for 1.2 only!!!.
Edit /var/ipcop/ethernet/settings. Add this line after the other lines starting RED.
RED_HWADDR=hh:hh:hh:hh:hh:hh
Replace the hh with the required hex MAC address.
Edit /etc/rc.d/rc.netaddress.up. Add the ifconfig $RED_DEV hw ether $RED_HWADDR lines
if [ "$CONFIG_TYPE" = "2" -o "$CONFIG_TYPE" = "3" ]; then
if [ "$RED_DEV" != "" ]; then
if [ "$RED_TYPE" = "DHCP" ]; then
rm /etc/dhcpc/*.info -f
ifconfig $RED_DEV hw ether $RED_HWADDR
/sbin/dhcpcd -h $RED_DHCP_HOSTNAME -R $RED_DEV
elif [ "$RED_TYPE" = "STATIC" -o "$RED_TYPE" = "PPTP" ]; then
ifconfig $RED_DEV hw ether $RED_HWADDR
hierboven geldt voor Ipcop 1.2, ik wil mijn ipcop RED-interface aanpassen naar een 3com kaartje en niet de Realtek die er nu inzit (stabiliteit). Ik heb chello, dus moet zelfde mac-adres gebruiken voor wan-interface (Authenticatie dmv mac-adres via LDAP), anders bellen naar helpdesk en stuff, ik wil niet afhankelijk zijn van mijn ISP.
Heeft iemand enig idee?