Is there no routing entry for loopback addresses?How shall I understand the usage of the routing tables of a guest OS and its host OS?Routing 4 NetworksLinux routing table entry disappearsNetwork connectivity trouble to non-routing multi-homed hosts?Debian network disappearingrouting problem - arpBridge eth0 and wlan0How to create/setup vpn using only SSH?Internet connectivity using linux network namespaceNAT ETH1 PORT 5000 Traffic to PPP0Routing over Gateway

Unreliable Magic - Is it worth it?

What is paid subscription needed for in Mortal Kombat 11?

What happens if you roll doubles 3 times then land on "Go to jail?"

Why not increase contact surface when reentering the atmosphere?

Short story about space worker geeks who zone out by 'listening' to radiation from stars

How to run a prison with the smallest amount of guards?

What Brexit proposals are on the table in the indicative votes on the 27th of March 2019?

What can we do to stop prior company from asking us questions?

What is the best translation for "slot" in the context of multiplayer video games?

Are student evaluations of teaching assistants read by others in the faculty?

Increase performance creating Mandelbrot set in python

How do scammers retract money, while you can’t?

Escape a backup date in a file name

System.debug(JSON.Serialize(o)) Not longer shows full string

What does "I’d sit this one out, Cap," imply or mean in the context?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Detecting if an element is found inside a container

How to pronounce the slash sign

Customer Requests (Sometimes) Drive Me Bonkers!

CREATE opcode: what does it really do?

Implement the Thanos sorting algorithm

You cannot touch me, but I can touch you, who am I?

Failed to fetch jessie backports repository

Is exact Kanji stroke length important?



Is there no routing entry for loopback addresses?


How shall I understand the usage of the routing tables of a guest OS and its host OS?Routing 4 NetworksLinux routing table entry disappearsNetwork connectivity trouble to non-routing multi-homed hosts?Debian network disappearingrouting problem - arpBridge eth0 and wlan0How to create/setup vpn using only SSH?Internet connectivity using linux network namespaceNAT ETH1 PORT 5000 Traffic to PPP0Routing over Gateway













3















$ /sbin/route -n 
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3

$ /sbin/ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.202 netmask 255.255.255.0 broadcast 192.168.122.255
inet6 fe80::5054:ff:fe99:5eee prefixlen 64 scopeid 0x20<link>
ether 52:54:00:99:5e:ee txqueuelen 1000 (Ethernet)
RX packets 14906 bytes 18020195 (17.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7390 bytes 786783 (768.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 35568

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 496 bytes 39840 (38.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496 bytes 39840 (38.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


When a packet reaches the host and the packet is destined for the loop back address (127.0.0.1),



  • will it be transmitted to ens3 (192.168.122.202) and then to gateway (192.168.122.1), according to the first rule in the routing table?


  • If yes, isn't that wrong, since the intended destination (127.0.0.1) is in the local host?


Is there really no routing entry when destination addresses are loopback addresses?



Thanks.










share|improve this question
























  • Why you keep saying ent3? Shouldn't that be ens3 ?

    – 炸鱼薯条德里克
    yesterday






  • 1





    If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

    – Stephen Kitt
    yesterday















3















$ /sbin/route -n 
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3

$ /sbin/ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.202 netmask 255.255.255.0 broadcast 192.168.122.255
inet6 fe80::5054:ff:fe99:5eee prefixlen 64 scopeid 0x20<link>
ether 52:54:00:99:5e:ee txqueuelen 1000 (Ethernet)
RX packets 14906 bytes 18020195 (17.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7390 bytes 786783 (768.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 35568

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 496 bytes 39840 (38.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496 bytes 39840 (38.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


When a packet reaches the host and the packet is destined for the loop back address (127.0.0.1),



  • will it be transmitted to ens3 (192.168.122.202) and then to gateway (192.168.122.1), according to the first rule in the routing table?


  • If yes, isn't that wrong, since the intended destination (127.0.0.1) is in the local host?


Is there really no routing entry when destination addresses are loopback addresses?



Thanks.










share|improve this question
























  • Why you keep saying ent3? Shouldn't that be ens3 ?

    – 炸鱼薯条德里克
    yesterday






  • 1





    If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

    – Stephen Kitt
    yesterday













3












3








3








$ /sbin/route -n 
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3

$ /sbin/ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.202 netmask 255.255.255.0 broadcast 192.168.122.255
inet6 fe80::5054:ff:fe99:5eee prefixlen 64 scopeid 0x20<link>
ether 52:54:00:99:5e:ee txqueuelen 1000 (Ethernet)
RX packets 14906 bytes 18020195 (17.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7390 bytes 786783 (768.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 35568

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 496 bytes 39840 (38.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496 bytes 39840 (38.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


When a packet reaches the host and the packet is destined for the loop back address (127.0.0.1),



  • will it be transmitted to ens3 (192.168.122.202) and then to gateway (192.168.122.1), according to the first rule in the routing table?


  • If yes, isn't that wrong, since the intended destination (127.0.0.1) is in the local host?


Is there really no routing entry when destination addresses are loopback addresses?



Thanks.










share|improve this question
















$ /sbin/route -n 
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3

$ /sbin/ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.202 netmask 255.255.255.0 broadcast 192.168.122.255
inet6 fe80::5054:ff:fe99:5eee prefixlen 64 scopeid 0x20<link>
ether 52:54:00:99:5e:ee txqueuelen 1000 (Ethernet)
RX packets 14906 bytes 18020195 (17.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7390 bytes 786783 (768.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 35568

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 496 bytes 39840 (38.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496 bytes 39840 (38.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


When a packet reaches the host and the packet is destined for the loop back address (127.0.0.1),



  • will it be transmitted to ens3 (192.168.122.202) and then to gateway (192.168.122.1), according to the first rule in the routing table?


  • If yes, isn't that wrong, since the intended destination (127.0.0.1) is in the local host?


Is there really no routing entry when destination addresses are loopback addresses?



Thanks.







routing route






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Stephen Kitt

178k24405481




178k24405481










asked yesterday









TimTim

28.2k78269490




28.2k78269490












  • Why you keep saying ent3? Shouldn't that be ens3 ?

    – 炸鱼薯条德里克
    yesterday






  • 1





    If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

    – Stephen Kitt
    yesterday

















  • Why you keep saying ent3? Shouldn't that be ens3 ?

    – 炸鱼薯条德里克
    yesterday






  • 1





    If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

    – Stephen Kitt
    yesterday
















Why you keep saying ent3? Shouldn't that be ens3 ?

– 炸鱼薯条德里克
yesterday





Why you keep saying ent3? Shouldn't that be ens3 ?

– 炸鱼薯条德里克
yesterday




1




1





If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

– Stephen Kitt
yesterday





If you’re going to split your existing question into multiple questions, please delete the original first, it will avoid people wasting time writing answers to that one (as I have just done).

– Stephen Kitt
yesterday










1 Answer
1






active

oldest

votes


















6














The routing table isn’t the first thing taken into account when the kernel processes a packet; there’s a rule table which comes first, which you can see with ip rule list. ip route list (and the deprecated route) list the main table, but there’s a local table which has higher priority and lists all the routes involving the loopback interface; run ip route show table local to see them.



Packets addressed to a loopback address don’t leave the system.






share|improve this answer























  • Or ip -4 route show table all to show all the IPv4 entries

    – Stephen Harris
    yesterday











  • Can the deprecated route only access the routing table main, no the other two local and default?

    – Tim
    yesterday











  • I get the impression it can only access the main routing table, yes.

    – Stephen Kitt
    18 hours ago










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508737%2fis-there-no-routing-entry-for-loopback-addresses%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














The routing table isn’t the first thing taken into account when the kernel processes a packet; there’s a rule table which comes first, which you can see with ip rule list. ip route list (and the deprecated route) list the main table, but there’s a local table which has higher priority and lists all the routes involving the loopback interface; run ip route show table local to see them.



Packets addressed to a loopback address don’t leave the system.






share|improve this answer























  • Or ip -4 route show table all to show all the IPv4 entries

    – Stephen Harris
    yesterday











  • Can the deprecated route only access the routing table main, no the other two local and default?

    – Tim
    yesterday











  • I get the impression it can only access the main routing table, yes.

    – Stephen Kitt
    18 hours ago















6














The routing table isn’t the first thing taken into account when the kernel processes a packet; there’s a rule table which comes first, which you can see with ip rule list. ip route list (and the deprecated route) list the main table, but there’s a local table which has higher priority and lists all the routes involving the loopback interface; run ip route show table local to see them.



Packets addressed to a loopback address don’t leave the system.






share|improve this answer























  • Or ip -4 route show table all to show all the IPv4 entries

    – Stephen Harris
    yesterday











  • Can the deprecated route only access the routing table main, no the other two local and default?

    – Tim
    yesterday











  • I get the impression it can only access the main routing table, yes.

    – Stephen Kitt
    18 hours ago













6












6








6







The routing table isn’t the first thing taken into account when the kernel processes a packet; there’s a rule table which comes first, which you can see with ip rule list. ip route list (and the deprecated route) list the main table, but there’s a local table which has higher priority and lists all the routes involving the loopback interface; run ip route show table local to see them.



Packets addressed to a loopback address don’t leave the system.






share|improve this answer













The routing table isn’t the first thing taken into account when the kernel processes a packet; there’s a rule table which comes first, which you can see with ip rule list. ip route list (and the deprecated route) list the main table, but there’s a local table which has higher priority and lists all the routes involving the loopback interface; run ip route show table local to see them.



Packets addressed to a loopback address don’t leave the system.







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









Stephen KittStephen Kitt

178k24405481




178k24405481












  • Or ip -4 route show table all to show all the IPv4 entries

    – Stephen Harris
    yesterday











  • Can the deprecated route only access the routing table main, no the other two local and default?

    – Tim
    yesterday











  • I get the impression it can only access the main routing table, yes.

    – Stephen Kitt
    18 hours ago

















  • Or ip -4 route show table all to show all the IPv4 entries

    – Stephen Harris
    yesterday











  • Can the deprecated route only access the routing table main, no the other two local and default?

    – Tim
    yesterday











  • I get the impression it can only access the main routing table, yes.

    – Stephen Kitt
    18 hours ago
















Or ip -4 route show table all to show all the IPv4 entries

– Stephen Harris
yesterday





Or ip -4 route show table all to show all the IPv4 entries

– Stephen Harris
yesterday













Can the deprecated route only access the routing table main, no the other two local and default?

– Tim
yesterday





Can the deprecated route only access the routing table main, no the other two local and default?

– Tim
yesterday













I get the impression it can only access the main routing table, yes.

– Stephen Kitt
18 hours ago





I get the impression it can only access the main routing table, yes.

– Stephen Kitt
18 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508737%2fis-there-no-routing-entry-for-loopback-addresses%23new-answer', 'question_page');

);

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







-route, routing

Popular posts from this blog

Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

What is this called? Old film camera viewer?What makes a good film camera?What to do with an old film camera?What should one look for when buying a used film camera?What is the value and age of this pre-1967 Ricoh 35 mm camera?DSLR recommendation, question about old Canon 35mm film Camera & lensesCan anyone identify the silver rangefinder-style camera in this advertisement?What kind of a Polaroid 600-camera is this?Will an old film camera still work even when not used in a very long time?What is this camera / Can I develop the film?How to fit an action camera into antique (bellows) housing?What to check when buying used and old film bodies?

Why is this plane circling around the Lucknow airport every day?Why do aircraft on Flight Radar 24 jump around randomly sometimes?What airport has this walkway over a taxiway?How does Chicago O'Hare's tower sequence aircraft at peak capacity?Which airport is featured in this Delta commercial?After a crash, for how long is the airport closed?Can a passenger plane stand still in the air, or hover at a fixed location above a ground?What are those trucks towing around, and why?What is this airport outside of Cairo, Egypt?Which US airport has the lowest circling MDH?What is this airport video?