What's the meaning of link#4 in mac's route table?
jichaodeiMac:~ jichaoyang$ netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default openwrt.lan UGSc 10 0 en0
127 localhost UCS 1 0 lo0
localhost localhost UH 2 54 lo0
169.254 link#4 UCS 1 0 en0
192.168.1 link#4 UCS 2 0 en0
192.168.1.1/32 link#4 UCS 2 0 en0
openwrt.lan 46:94:fc:63:fc:7 UHLWIir 11 3610 en0 1200
192.168.1.125/32 link#4 UCS 2 0 en0
jichaodeimac.lan d0:50:99:14:b7:a3 UHLWIi 1 1 lo0
yangjicdeiphone.la link#4 UHLWIi 1 0 en0
224.0.0 link#4 UmCS 1 0 en0
255.255.255.255/32 link#4 UCS 1 0 en0
What's the meaning of link#4
in the table?
macos routing
add a comment |
jichaodeiMac:~ jichaoyang$ netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default openwrt.lan UGSc 10 0 en0
127 localhost UCS 1 0 lo0
localhost localhost UH 2 54 lo0
169.254 link#4 UCS 1 0 en0
192.168.1 link#4 UCS 2 0 en0
192.168.1.1/32 link#4 UCS 2 0 en0
openwrt.lan 46:94:fc:63:fc:7 UHLWIir 11 3610 en0 1200
192.168.1.125/32 link#4 UCS 2 0 en0
jichaodeimac.lan d0:50:99:14:b7:a3 UHLWIi 1 1 lo0
yangjicdeiphone.la link#4 UHLWIi 1 0 en0
224.0.0 link#4 UmCS 1 0 en0
255.255.255.255/32 link#4 UCS 1 0 en0
What's the meaning of link#4
in the table?
macos routing
add a comment |
jichaodeiMac:~ jichaoyang$ netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default openwrt.lan UGSc 10 0 en0
127 localhost UCS 1 0 lo0
localhost localhost UH 2 54 lo0
169.254 link#4 UCS 1 0 en0
192.168.1 link#4 UCS 2 0 en0
192.168.1.1/32 link#4 UCS 2 0 en0
openwrt.lan 46:94:fc:63:fc:7 UHLWIir 11 3610 en0 1200
192.168.1.125/32 link#4 UCS 2 0 en0
jichaodeimac.lan d0:50:99:14:b7:a3 UHLWIi 1 1 lo0
yangjicdeiphone.la link#4 UHLWIi 1 0 en0
224.0.0 link#4 UmCS 1 0 en0
255.255.255.255/32 link#4 UCS 1 0 en0
What's the meaning of link#4
in the table?
macos routing
jichaodeiMac:~ jichaoyang$ netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default openwrt.lan UGSc 10 0 en0
127 localhost UCS 1 0 lo0
localhost localhost UH 2 54 lo0
169.254 link#4 UCS 1 0 en0
192.168.1 link#4 UCS 2 0 en0
192.168.1.1/32 link#4 UCS 2 0 en0
openwrt.lan 46:94:fc:63:fc:7 UHLWIir 11 3610 en0 1200
192.168.1.125/32 link#4 UCS 2 0 en0
jichaodeimac.lan d0:50:99:14:b7:a3 UHLWIi 1 1 lo0
yangjicdeiphone.la link#4 UHLWIi 1 0 en0
224.0.0 link#4 UmCS 1 0 en0
255.255.255.255/32 link#4 UCS 1 0 en0
What's the meaning of link#4
in the table?
macos routing
macos routing
asked Apr 20 '16 at 15:42
JichaoJichao
2,41884052
2,41884052
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
The expression link#x
, where x
is some digit, is used to indicate that the corresponding address is a link-level address
, .i.e, an address that operates only on the network the host is physically connected to.
Thus these addresses are not used to reach hosts outside your local network, or, in technical lingo, they are not routable: once packets with these addresses reach a gateway (the junction between 2 or more distinct networks), the gateway discards them. It also follows that these addresses do not need any gateway, because they are not even supposed to evade into a different network.
Link-level addresses belong to the so called Link Layer, which is a mix of OSI Layer 1 (physical) and OSI Layer 2 (Data Link Layer) concepts. Several useful protocols operate at the Link Layer level, like ARP, OSPF, PPP, MAC (including Ethernet).
Basically, at the Link-Layer level, you need no routing because packets destined to other hosts are sent on the wire for anyone to listen to; all hosts on the physical connection receive the packet, those to which it is not addressed discard it, while only the true addressee keeps it to read it.
Real routing takes advantage of Layer 2 by encapsulating a packet destined to a remote host into a Layer-2 packet destined to the router, which unwraps it of the Layer-2 encapsulation, checks that it is destined to a different network, moves it to an outward-facing interface, and sends it on once again as a Layer-2 packet on the outside local network destined to the next-hop router. And so on.
1
This is a great answer, but I still wonder what is the meaning of x. Doeslink#4
indicate a particular link (i..e, network interface) different fromlink#5
? If so, then is there a way to know which interfacelink#4
designates? For instances, is there a natural ordering to the interfaces reported byifconfig
, so thatlink#4
is simply the fourth interface by this ordering?
– algal
Sep 4 '18 at 5:18
add a comment |
link#4 means the ip range is on the local segment, and no routing is necessary. if the entry was not a range of ips, netstat -r shows the mac address of that single ip address. In all other cases it will show the ip (or hostname) of the router it could possibly send the packet to.
add a comment |
Regarding your second question Is there a way to know which interface link#4 designates?, one could use the netstat
command with the -i
switch (state of interfaces). [Note: I prefer netstat
not to resolve IP addresses, so in addition to the switch of interest I usually include -n
]. So a sample (partial) output would be:
][ netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 2030140 0 2030140 0 0
lo0 16384 127 127.0.0.1 2030140 - 2030140 - -
lo0 16384 ::1/128 ::1 2030140 - 2030140 - -
In this example Link#1
is associated to the loopback interface lo0
, that operates on the 127
network (AF_NET family--IP4) with the address 127.0.0.1
and on the ::1/128
network (AF_NET6 family--IP6) with address ::1
.
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1067732%2fwhats-the-meaning-of-link4-in-macs-route-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The expression link#x
, where x
is some digit, is used to indicate that the corresponding address is a link-level address
, .i.e, an address that operates only on the network the host is physically connected to.
Thus these addresses are not used to reach hosts outside your local network, or, in technical lingo, they are not routable: once packets with these addresses reach a gateway (the junction between 2 or more distinct networks), the gateway discards them. It also follows that these addresses do not need any gateway, because they are not even supposed to evade into a different network.
Link-level addresses belong to the so called Link Layer, which is a mix of OSI Layer 1 (physical) and OSI Layer 2 (Data Link Layer) concepts. Several useful protocols operate at the Link Layer level, like ARP, OSPF, PPP, MAC (including Ethernet).
Basically, at the Link-Layer level, you need no routing because packets destined to other hosts are sent on the wire for anyone to listen to; all hosts on the physical connection receive the packet, those to which it is not addressed discard it, while only the true addressee keeps it to read it.
Real routing takes advantage of Layer 2 by encapsulating a packet destined to a remote host into a Layer-2 packet destined to the router, which unwraps it of the Layer-2 encapsulation, checks that it is destined to a different network, moves it to an outward-facing interface, and sends it on once again as a Layer-2 packet on the outside local network destined to the next-hop router. And so on.
1
This is a great answer, but I still wonder what is the meaning of x. Doeslink#4
indicate a particular link (i..e, network interface) different fromlink#5
? If so, then is there a way to know which interfacelink#4
designates? For instances, is there a natural ordering to the interfaces reported byifconfig
, so thatlink#4
is simply the fourth interface by this ordering?
– algal
Sep 4 '18 at 5:18
add a comment |
The expression link#x
, where x
is some digit, is used to indicate that the corresponding address is a link-level address
, .i.e, an address that operates only on the network the host is physically connected to.
Thus these addresses are not used to reach hosts outside your local network, or, in technical lingo, they are not routable: once packets with these addresses reach a gateway (the junction between 2 or more distinct networks), the gateway discards them. It also follows that these addresses do not need any gateway, because they are not even supposed to evade into a different network.
Link-level addresses belong to the so called Link Layer, which is a mix of OSI Layer 1 (physical) and OSI Layer 2 (Data Link Layer) concepts. Several useful protocols operate at the Link Layer level, like ARP, OSPF, PPP, MAC (including Ethernet).
Basically, at the Link-Layer level, you need no routing because packets destined to other hosts are sent on the wire for anyone to listen to; all hosts on the physical connection receive the packet, those to which it is not addressed discard it, while only the true addressee keeps it to read it.
Real routing takes advantage of Layer 2 by encapsulating a packet destined to a remote host into a Layer-2 packet destined to the router, which unwraps it of the Layer-2 encapsulation, checks that it is destined to a different network, moves it to an outward-facing interface, and sends it on once again as a Layer-2 packet on the outside local network destined to the next-hop router. And so on.
1
This is a great answer, but I still wonder what is the meaning of x. Doeslink#4
indicate a particular link (i..e, network interface) different fromlink#5
? If so, then is there a way to know which interfacelink#4
designates? For instances, is there a natural ordering to the interfaces reported byifconfig
, so thatlink#4
is simply the fourth interface by this ordering?
– algal
Sep 4 '18 at 5:18
add a comment |
The expression link#x
, where x
is some digit, is used to indicate that the corresponding address is a link-level address
, .i.e, an address that operates only on the network the host is physically connected to.
Thus these addresses are not used to reach hosts outside your local network, or, in technical lingo, they are not routable: once packets with these addresses reach a gateway (the junction between 2 or more distinct networks), the gateway discards them. It also follows that these addresses do not need any gateway, because they are not even supposed to evade into a different network.
Link-level addresses belong to the so called Link Layer, which is a mix of OSI Layer 1 (physical) and OSI Layer 2 (Data Link Layer) concepts. Several useful protocols operate at the Link Layer level, like ARP, OSPF, PPP, MAC (including Ethernet).
Basically, at the Link-Layer level, you need no routing because packets destined to other hosts are sent on the wire for anyone to listen to; all hosts on the physical connection receive the packet, those to which it is not addressed discard it, while only the true addressee keeps it to read it.
Real routing takes advantage of Layer 2 by encapsulating a packet destined to a remote host into a Layer-2 packet destined to the router, which unwraps it of the Layer-2 encapsulation, checks that it is destined to a different network, moves it to an outward-facing interface, and sends it on once again as a Layer-2 packet on the outside local network destined to the next-hop router. And so on.
The expression link#x
, where x
is some digit, is used to indicate that the corresponding address is a link-level address
, .i.e, an address that operates only on the network the host is physically connected to.
Thus these addresses are not used to reach hosts outside your local network, or, in technical lingo, they are not routable: once packets with these addresses reach a gateway (the junction between 2 or more distinct networks), the gateway discards them. It also follows that these addresses do not need any gateway, because they are not even supposed to evade into a different network.
Link-level addresses belong to the so called Link Layer, which is a mix of OSI Layer 1 (physical) and OSI Layer 2 (Data Link Layer) concepts. Several useful protocols operate at the Link Layer level, like ARP, OSPF, PPP, MAC (including Ethernet).
Basically, at the Link-Layer level, you need no routing because packets destined to other hosts are sent on the wire for anyone to listen to; all hosts on the physical connection receive the packet, those to which it is not addressed discard it, while only the true addressee keeps it to read it.
Real routing takes advantage of Layer 2 by encapsulating a packet destined to a remote host into a Layer-2 packet destined to the router, which unwraps it of the Layer-2 encapsulation, checks that it is destined to a different network, moves it to an outward-facing interface, and sends it on once again as a Layer-2 packet on the outside local network destined to the next-hop router. And so on.
answered Apr 20 '16 at 16:17
MariusMatutiaeMariusMatutiae
38.2k95196
38.2k95196
1
This is a great answer, but I still wonder what is the meaning of x. Doeslink#4
indicate a particular link (i..e, network interface) different fromlink#5
? If so, then is there a way to know which interfacelink#4
designates? For instances, is there a natural ordering to the interfaces reported byifconfig
, so thatlink#4
is simply the fourth interface by this ordering?
– algal
Sep 4 '18 at 5:18
add a comment |
1
This is a great answer, but I still wonder what is the meaning of x. Doeslink#4
indicate a particular link (i..e, network interface) different fromlink#5
? If so, then is there a way to know which interfacelink#4
designates? For instances, is there a natural ordering to the interfaces reported byifconfig
, so thatlink#4
is simply the fourth interface by this ordering?
– algal
Sep 4 '18 at 5:18
1
1
This is a great answer, but I still wonder what is the meaning of x. Does
link#4
indicate a particular link (i..e, network interface) different from link#5
? If so, then is there a way to know which interface link#4
designates? For instances, is there a natural ordering to the interfaces reported by ifconfig
, so that link#4
is simply the fourth interface by this ordering?– algal
Sep 4 '18 at 5:18
This is a great answer, but I still wonder what is the meaning of x. Does
link#4
indicate a particular link (i..e, network interface) different from link#5
? If so, then is there a way to know which interface link#4
designates? For instances, is there a natural ordering to the interfaces reported by ifconfig
, so that link#4
is simply the fourth interface by this ordering?– algal
Sep 4 '18 at 5:18
add a comment |
link#4 means the ip range is on the local segment, and no routing is necessary. if the entry was not a range of ips, netstat -r shows the mac address of that single ip address. In all other cases it will show the ip (or hostname) of the router it could possibly send the packet to.
add a comment |
link#4 means the ip range is on the local segment, and no routing is necessary. if the entry was not a range of ips, netstat -r shows the mac address of that single ip address. In all other cases it will show the ip (or hostname) of the router it could possibly send the packet to.
add a comment |
link#4 means the ip range is on the local segment, and no routing is necessary. if the entry was not a range of ips, netstat -r shows the mac address of that single ip address. In all other cases it will show the ip (or hostname) of the router it could possibly send the packet to.
link#4 means the ip range is on the local segment, and no routing is necessary. if the entry was not a range of ips, netstat -r shows the mac address of that single ip address. In all other cases it will show the ip (or hostname) of the router it could possibly send the packet to.
answered Jul 20 '17 at 22:40
JakeJake
38438
38438
add a comment |
add a comment |
Regarding your second question Is there a way to know which interface link#4 designates?, one could use the netstat
command with the -i
switch (state of interfaces). [Note: I prefer netstat
not to resolve IP addresses, so in addition to the switch of interest I usually include -n
]. So a sample (partial) output would be:
][ netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 2030140 0 2030140 0 0
lo0 16384 127 127.0.0.1 2030140 - 2030140 - -
lo0 16384 ::1/128 ::1 2030140 - 2030140 - -
In this example Link#1
is associated to the loopback interface lo0
, that operates on the 127
network (AF_NET family--IP4) with the address 127.0.0.1
and on the ::1/128
network (AF_NET6 family--IP6) with address ::1
.
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
add a comment |
Regarding your second question Is there a way to know which interface link#4 designates?, one could use the netstat
command with the -i
switch (state of interfaces). [Note: I prefer netstat
not to resolve IP addresses, so in addition to the switch of interest I usually include -n
]. So a sample (partial) output would be:
][ netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 2030140 0 2030140 0 0
lo0 16384 127 127.0.0.1 2030140 - 2030140 - -
lo0 16384 ::1/128 ::1 2030140 - 2030140 - -
In this example Link#1
is associated to the loopback interface lo0
, that operates on the 127
network (AF_NET family--IP4) with the address 127.0.0.1
and on the ::1/128
network (AF_NET6 family--IP6) with address ::1
.
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
add a comment |
Regarding your second question Is there a way to know which interface link#4 designates?, one could use the netstat
command with the -i
switch (state of interfaces). [Note: I prefer netstat
not to resolve IP addresses, so in addition to the switch of interest I usually include -n
]. So a sample (partial) output would be:
][ netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 2030140 0 2030140 0 0
lo0 16384 127 127.0.0.1 2030140 - 2030140 - -
lo0 16384 ::1/128 ::1 2030140 - 2030140 - -
In this example Link#1
is associated to the loopback interface lo0
, that operates on the 127
network (AF_NET family--IP4) with the address 127.0.0.1
and on the ::1/128
network (AF_NET6 family--IP6) with address ::1
.
Regarding your second question Is there a way to know which interface link#4 designates?, one could use the netstat
command with the -i
switch (state of interfaces). [Note: I prefer netstat
not to resolve IP addresses, so in addition to the switch of interest I usually include -n
]. So a sample (partial) output would be:
][ netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 16384 <Link#1> 2030140 0 2030140 0 0
lo0 16384 127 127.0.0.1 2030140 - 2030140 - -
lo0 16384 ::1/128 ::1 2030140 - 2030140 - -
In this example Link#1
is associated to the loopback interface lo0
, that operates on the 127
network (AF_NET family--IP4) with the address 127.0.0.1
and on the ::1/128
network (AF_NET6 family--IP6) with address ::1
.
answered Jan 7 at 16:43
Omar SOmar S
1
1
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
add a comment |
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
1
1
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
It might be more informative if you could show an example of a link mapping to an interface other than the loopback interface.
– Scott
Jan 7 at 17:09
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1067732%2fwhats-the-meaning-of-link4-in-macs-route-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown