1828306 Members
3181 Online
109975 Solutions
New Discussion

MAC address

 
SOLVED
Go to solution
Sanjoy Paul
Advisor

MAC address

Can anyone please answer how to get the mac address of the network card(s) from the command prompt ?
10 REPLIES 10
Art Wiens
Respected Contributor

Re: MAC address

One way can be:

$ mcr lancp show config/user

LAN Configuration:
Device Parent Medium/User Version Speed Size LAN Address
------ ------ ----------- ------- ----- ---- -----------------
EWA0 CSMA/CD 07030187 100 1500 00-00-F8-06-EA-E3
EWA4 60-03 DNA Routing 1498 AA-00-04-00-06-CC
EWA5 08:00 IP 1500 AA-00-04-00-06-CC
EWA6 08-06 ARP 1500 AA-00-04-00-06-CC
EWA7 80-35 1500 AA-00-04-00-06-CC

Or from the console prompt :

>>> show device

Cheers,
Art
Robert Brooks_1
Honored Contributor

Re: MAC address

On V8.3 and up, $ SHOW DEVICE will display a lot of LAN-related information; MAC address is one of them.

-- Rob
Sanjoy Paul
Advisor

Re: MAC address

Thanks a lot ..........Sanjoy
Wim Van den Wyngaert
Honored Contributor
Solution

Re: MAC address

But most of the time "what is your mac address" is asked by the network team to find out which traffic you are doing. And then the mac address of the card is not used but an address that DECNET generates (beginning with AA-). Use
$ana/sys
show lan/full

to see which protocol uses which address (check for label "physical address").

Wim
Wim
Sanjoy Paul
Advisor

Re: MAC address

Hi Wim ,

You are correct , I need it to give it to network people . But the command the version of VMS is 6.2 1H3 the the output what I am getting is :

LAN Data Structures
-------------------
-- LAN Information Summary 3-OCT-2007 13:09:37 --

LAN flags: 0000000D REG_VCI,LAN_INIT,CNM_INIT

LAN block address 80E1AB80 Timer DELTA time 10000000
Number of stations 1 DAT sequence number 1
LAN module version 1 First SVAPTE FFE10DA8
LANIDEF version 33 Number of PTEs 2
LANUDEF version 16 SVA of first page 8436A000
First LSB address 80E1AE40

-- LAN CSMACD Network Management 3-OCT-2007 13:09:37 --

Creation time 23-SEP 12:59:51 Times created 1
Deletion time None Times deleted 0
Module EAB 80EDB2C0 Latest EIB 00000000
Port EAB 80EDB480
Station EAB 80EDBCC0
NM flags: 00000003 REG_EMAA,CREATED

Press RETURN for more.
SDA>


Which one is relevent ?

Regards,

Sanjoy

Art Wiens
Respected Contributor

Re: MAC address

From a VAX/VMS v6.2 system it seems the /user switch does not work but you can at least get the physical mac:

$ mcr lancp show config

LAN Configuration:
Device Medium Default LAN Address Version
------ ------ ------------------- -------
EZA0 CSMA/CD 00-0F-20-F8-96-A4 Not available

You can calculate the AA-00-04... mac address that will be created. A quick Google to find out how, reveals that someone has actually written an "Internet application" to do it:

http://www.powerdog.com/addrconv.cgi

Thanks "Power Dog"! Does Kevin Riddy (name at the bottom of the page) participate in this forum?

Cheers,
Art
Wim Van den Wyngaert
Honored Contributor

Re: MAC address

You have to type return (a lot).

Or use
show lan/client=decnet|tcpip

Wim
Wim
Robert Gezelter
Honored Contributor

Re: MAC address

Sanjoy,

As has been noted, if you are using DECnet, the MAC address will be changed to an address in the range reserved for DECnet. It will be computed by adding the prefix (as has been noted) to the DECnet node number.

Otherwise, you can get it using LANCP.

- Bob Gezelter, http://www.rlgsc.com
Sanjoy Paul
Advisor

Re: MAC address

Thanks Wim and all .... got the answer ... Sanjoy
Sanjoy Paul
Advisor

Re: MAC address

Thanks