My PC internet connection is through Dlink router. Now, I changed my mac address of RHEL5 by running below lines:
[crap@localhost ~]$ /sbin/ifconfig -a | grep HWaddr
cipsec0 Link encap:Ethernet HWaddr 00:0C:EC:A8:09:5C
eth0 Link encap:Ethernet HWaddr 00:1F:3C:4D:C5:12
[root@localhost crap]# /sbin/ifconfig eth0 down
[root@localhost crap]# /sbin/ifconfig eth0 hw ether 00:1C:30:A1:A5:D3
[root@localhost crap]# /sbin/ifconfig eth0 up
Now, I'm not able to access the internet.
[root@localhost crap]# /etc/init.d/network restart
Shutting down interface eth0: Device eth0 has MAC address 00:1C:30:A1:A5:D3, instead of configured address 00:1F:3C:4D:C5:12. Ignoring. [FAILED]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Device eth0 has different MAC address than expected, ignoring. [FAILED]
I'm not sure what is cipsec0 & if I need to do anything with that too.
Can any one tell me what's wrong? And how do I get internet connection after changing the MAC address?