0

I need to configure a network interface permanently eth1 and to change the MAC address with the specified format : AA:BB:CC:DD:x:y, before the interface is up. A=1;B=2;C=2;D=2;x=6;y=8.

I wrote in /etc/network/interfaces:

auto eth1  
iface eth1 inet static  
address 10.6.8.200  
netmask 255.255.255.128  
gateway 10.6.8.129  
pre-up ifconfig eth1 hw ether 1A:2B:2C:2D:6:8  

I don't know what I'm doing wrong.

Braiam
  • 69,112

1 Answers1

0

auto eth1

This tells Ubuntu to use DHCP for eth1. What happens if you remove this line?

This link may also help: http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html

Dan O
  • 272