Assign different MAC to l2 switch ports in T1040

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assign different MAC to l2 switch ports in T1040

896 Views
Suraj_Prakash
Contributor II

Hi,

       I am working on T1040 reference board and i noticed that all the 8 ports of internal L2 swicth are landing on the same MAC. Is it possible to assign different Mac to different internal L2 switch ports.If yes Please suggest. Thanks in advance.

0 Kudos
Reply
3 Replies

888 Views
ufedor
NXP Employee
NXP Employee

Sorry, not clear what do you mean.

0 Kudos
Reply

885 Views
Suraj_Prakash
Contributor II

Hi,

        The T1040rdb board which i am currently working has an internal L2 switch which is connected to 2 QSGMII PHY's and gives out a total of 8 1G ports. All the 8 1G ports which comes from the internal switch are accessed via Fm1-gb0 interface only and hence all the 8 ports are having the same mac addresses.

Can we assing different mac addresses to each of the 8 individual ports?

 

0 Kudos
Reply

875 Views
ufedor
NXP Employee
NXP Employee

Refer to the QorIQ SDK V2.0-1703 Documentation, 9.4.2 Build and Installation Summary:

NOTE: Some L2 protocols require a MAC address for each switch port for proper functioning. An address can be specified in u-boot, that will serve as a seed for generating MAC addresses for each port:
setenv l2switchaddr 00:11:22:33:44:55
saveenv


This address will be available as a sysfs entry:
root@t1040d4rdb:~# cat /sys/bus/platform/devices/ffe800000.l2switch/mac_address
00:11:22:33:44:55

0 Kudos
Reply