Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Mac address of serial interface of router

Hi all,

Here is exam question

Pc is conected to switch ,and switch is connected to router r1.Router r1 has serail connection to ISP router.

We are accessing remote server.when frame leaves router R1 serial interface will it carry any mac address or not.

many thanks

mahesh

3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Mac address of serial interface of router

Serial interfaces does not have mac addresses, so the answer would no mac-address.

New Member

Re: Mac address of serial interface of router

MAC address is used only on Ethernet interfaces, not on serial ones.

For your specific case, probably you have used HDLC on your serial interface.

The router just fill in that HDLC frame with the necessary header info, encapsulates the IP packet and passes the frame then on its serial interface.

The router does not need to know any info about the destination L2 address, so the router just sends the frame out the corresponding serial interface.

Hall of Fame Super Silver

Re: Mac address of serial interface of router

Mahesh

To helpfully understand this question and its answer we should start by reviewing a few fundamental concepts about layer 3 addressing and about layer 2 addressing.

The layer 3 addressing is IP addressing. And a fundamental concept is that as a packet is forwarded from the source to the destination that the IP addresses (the source address and the destination address) remain the same all the way through. So all the way, over all the different segments that it may travel it will have the same source IP address and the same destination IP address.

The layer 2 addressing depends on the individual segment. If it is Ethernet then the layer 2 address is a MAC. And if the layer 2 is Frame Relay then the layer 2 address is the DLCI. And the fundamental concept is that as a packet is forwarded through the network the layer 2 address is unique to the local segment and will change as the packet is forwarded over different segments. So as a packet is forwarded over a segment its layer 2 source address represents the interface that sends it onto that segment and its layer 2 destination address represents the interface that is its next hop toward the destination.

So for example if a packet is received by a router on an Ethernet interface and is forwarded out another Ethenet interface, then the packet had a source MAC address when recieved on one Ethernet interface and it has a different source MAC when it is forwarded out the next interface.

And if a packet is received by a router on an Ethernet interface it will have source and destination MAC addresses. And when it is forwarded out the outbound interface it will have layer 2 addresses consistent with the outbound interface. If the outbound interface is Frame Relay then the layer 2 address is the DLCI and there is no MAC address. And if the outbound interface is HDLC or PPP it will have the layer 2 addresses of those protocols and there is no MAC address.

HTH

Rick

8 REPLIES

Re: Mac address of serial interface of router

Serial interfaces does not have mac addresses, so the answer would no mac-address.

New Member

Re: Mac address of serial interface of router

Hi bosalaza,

thanks for reply

can you explain me please how packet

will move from one serial int of router to another serial interface with out

MAc

Thanks

mahesh

New Member

Re: Mac address of serial interface of router

MAC address is used only on Ethernet interfaces, not on serial ones.

For your specific case, probably you have used HDLC on your serial interface.

The router just fill in that HDLC frame with the necessary header info, encapsulates the IP packet and passes the frame then on its serial interface.

The router does not need to know any info about the destination L2 address, so the router just sends the frame out the corresponding serial interface.

Re: Mac address of serial interface of router

It will depend on what encapsulation the serial interface is using, for example on frame relay, you will map an ip for example to a dlci.

New Member

Re: Mac address of serial interface of router

Yes of course, that is true, for Frame Relay you need this mapping IP@ to DLCI.

As the question was not pointing to a frame relay, I assumed it is the default encapsulation (HDLC) and my comment was around HDLC only, not generalizing for all L2 types.

But it is maybe better you pointed this out, it will exclude any possible confusion.

Hall of Fame Super Silver

Re: Mac address of serial interface of router

Mahesh

To helpfully understand this question and its answer we should start by reviewing a few fundamental concepts about layer 3 addressing and about layer 2 addressing.

The layer 3 addressing is IP addressing. And a fundamental concept is that as a packet is forwarded from the source to the destination that the IP addresses (the source address and the destination address) remain the same all the way through. So all the way, over all the different segments that it may travel it will have the same source IP address and the same destination IP address.

The layer 2 addressing depends on the individual segment. If it is Ethernet then the layer 2 address is a MAC. And if the layer 2 is Frame Relay then the layer 2 address is the DLCI. And the fundamental concept is that as a packet is forwarded through the network the layer 2 address is unique to the local segment and will change as the packet is forwarded over different segments. So as a packet is forwarded over a segment its layer 2 source address represents the interface that sends it onto that segment and its layer 2 destination address represents the interface that is its next hop toward the destination.

So for example if a packet is received by a router on an Ethernet interface and is forwarded out another Ethenet interface, then the packet had a source MAC address when recieved on one Ethernet interface and it has a different source MAC when it is forwarded out the next interface.

And if a packet is received by a router on an Ethernet interface it will have source and destination MAC addresses. And when it is forwarded out the outbound interface it will have layer 2 addresses consistent with the outbound interface. If the outbound interface is Frame Relay then the layer 2 address is the DLCI and there is no MAC address. And if the outbound interface is HDLC or PPP it will have the layer 2 addresses of those protocols and there is no MAC address.

HTH

Rick

New Member

Re: Mac address of serial interface of router

Hi Rburts

thanks for great reply

mahesh

New Member

Re: Mac address of serial interface of router

Hi Bosalaza,

Many thanks for your reply

mahesh

870
Views
15
Helpful
8
Replies
CreatePlease login to create content