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
$ /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
add a comment |
$ /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
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
add a comment |
$ /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
$ /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
routing route
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
Orip -4 route show table allto show all the IPv4 entries
– Stephen Harris
yesterday
Can the deprecatedrouteonly access the routing tablemain, no the other twolocalanddefault?
– Tim
yesterday
I get the impression it can only access the main routing table, yes.
– Stephen Kitt
18 hours ago
add a comment |
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
);
);
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%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
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.
Orip -4 route show table allto show all the IPv4 entries
– Stephen Harris
yesterday
Can the deprecatedrouteonly access the routing tablemain, no the other twolocalanddefault?
– Tim
yesterday
I get the impression it can only access the main routing table, yes.
– Stephen Kitt
18 hours ago
add a comment |
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.
Orip -4 route show table allto show all the IPv4 entries
– Stephen Harris
yesterday
Can the deprecatedrouteonly access the routing tablemain, no the other twolocalanddefault?
– Tim
yesterday
I get the impression it can only access the main routing table, yes.
– Stephen Kitt
18 hours ago
add a comment |
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.
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.
answered yesterday
Stephen KittStephen Kitt
178k24405481
178k24405481
Orip -4 route show table allto show all the IPv4 entries
– Stephen Harris
yesterday
Can the deprecatedrouteonly access the routing tablemain, no the other twolocalanddefault?
– Tim
yesterday
I get the impression it can only access the main routing table, yes.
– Stephen Kitt
18 hours ago
add a comment |
Orip -4 route show table allto show all the IPv4 entries
– Stephen Harris
yesterday
Can the deprecatedrouteonly access the routing tablemain, no the other twolocalanddefault?
– 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
add a comment |
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.
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%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
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
-route, routing
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