assign mac address for virtual interface eth1:0


 
Thread Tools Search this Thread
Special Forums IP Networking assign mac address for virtual interface eth1:0
# 1  
Old 12-08-2009
assign mac address for virtual interface eth1:0

Hi ,
by default the physical interface (eth1) and virtual interface eth1:0 will be having same mac address, is there any way we can assign separate mac addresses for both the interfaces.

would some one help me out in this.

Thanks
Gopi
# 2  
Old 12-14-2009
The manpage for ifconfig(8) says:
Code:
ifconfig interface [aftype] options | address ...

and:
Code:
       hw class address
              Set the hardware address of this interface, if the device driver
              supports  this  operation.   The keyword must be followed by the
              name of the hardware class and the printable ASCII equivalent of
              the  hardware  address.   Hardware  classes  currently supported
              include ether (Ethernet), ax25 (AMPR AX.25), ARCnet  and  netrom
              (AMPR NET/ROM).

So you need something like:
Code:
# ifconfig eth1 hw ether 00:01:02:aa:bb:cc

Whether you can do:
Code:
# ifconfig eth0:1 hw ether 00:01:02:aa:bb:cc

I'm not sure?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies

2. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

3. IP Networking

IPv6 address block assign/associate with an interface

Hello all, I am trying to receive (tcp/udp/sctp) traffic from all IPs and, eventually, all ports of an IPv6 address block using as few sockets as possible short of implementing my own network stack. One possible solution was to associate an IP block to an interface then bind to that... (6 Replies)
Discussion started by: redwil
6 Replies

4. IP Networking

Virtual Adapter MAC address..

Hi, I just want to know whether two MAC address can exist in a adapter.. I mean one there will be mandatory one And another as user defined one.. Any replies will be more helpful.. Please help.. :wall: (0 Replies)
Discussion started by: Priya Amaresh
0 Replies

5. UNIX for Dummies Questions & Answers

Removing IP address from eth1 on SUSE

Hello folks; I have a NIC card on my SUSE 10.3 server with eth0 & eth1 configured with two IP addresses (172.16.5.3 & 172.16.5.4) I'd like to remove the IP assigned to eth1 (172.16.5.4). i think i know i can go into ifcfg-eth1 and edit it but before i do that, i want to know if there's a better... (2 Replies)
Discussion started by: Katkota
2 Replies

6. UNIX for Dummies Questions & Answers

What would the physical address be for virtual address?

Hi guys, I got one problem which I definetily no idea. What would the physical address be for virtual address? 1) 2ABC 2) 3F4B Here is the page table:see attached Thank you sos sososososso much!! (0 Replies)
Discussion started by: lemon_06
0 Replies

7. Red Hat

Assign port dedicatedly against an interface !

Dear Friends , I am using RHEL 5 . In my Linux Box i have two Lan cards (eth0 and eth1) . "eth0" is connected with network 192.168.10.0 and "eth1" is connected with network 192.168.11.0 . Both Network are inter connected via routing . Now I want a situation where , I want to dedicatedly... (2 Replies)
Discussion started by: shipon_97
2 Replies

8. Solaris

How to assign MAC address to N/W interface in solaris

I m having interface ce0 ce1 and its sub interfaces for that. I want to give MAC addresses for the same. How will I assign it. Please give solution for the same (4 Replies)
Discussion started by: sunray
4 Replies

9. Shell Programming and Scripting

virtual interface

How would i create virtual interface in linux to configure more than one IP address for a physical interface? any help wll be appreciated. https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: salil2012
1 Replies

10. UNIX for Dummies Questions & Answers

How to assign virtual address?.

Hello,I am new to unix,i want to know how to assign virtual ip address to a system that is in my personal network? (1 Reply)
Discussion started by: veeru_jarugula
1 Replies
Login or Register to Ask a Question