Thanks Bucky!!! I watched this video the night before my midterm, and this was exactly the same question on my exam. Thank you so much! Your videos have made my 4 years college life so much easier.
Thanks a lot! I was struggling with getting access to a service from a machine with multiple NICs (this was in a VPC environment) and this video provided sufficient information for me to be able to figure out that I needed to manually add a route in my table.
It's been years since highschool and I forgot newbosten taught me physics, java, python and even backgammon. He has risen to help me with my networking course haha
after listening to this video for some time I thought heyy this guy sounds a LOT like bucky i used to listen to back in high school. Scroll down a bit and it really was you lmao!!
@@pauraspatil9314 pivoting and creating ip tables is very important, learn it properly. And everything you need is covered in the study material and labs. Best of luck 🤩🤩🤩
7:18 where's the tutorial about the vm router please? I've just setup a vm router but am confused on the packet routing and how to diagram the connections using $ route command?
You don't explain what happens in this case when the destination matches two or more rules with the longest subnet mask. What is the conclusion for your example? Is the packet sent randomly to wlan0 or eth0? To both?
It will be defined by the metric column. The lower the metric, higher the priority. If the metric is the same, usually it will pick the first in the order it is displayed, but it can also take in consideration other factors like interface bandwidth, or even it can be random. If you want a higher priority in an interface, assign a metric value.
I have seen the flags in my router and never understood what they meant until watching this video. Thank you explaining so simply. I am interested in watching the video about windows routers because I have one but not sure where you have it.
At the end of the video you say 192.168.0.15/0 is your IP. Isn't it 192.168.0.15/32, as that would be the subnet mask of 255.255.255.255, while /0 is 0.0.0.0. 192.168.0.15 with a subnet mask of 0.0.0.0 doesn't really make sense.
Sir, I have a question here. I suspect some hackers hacked my macOS through kernel. But when I type # route, it did not show kernel IP address, but shows usage: route [-dnqtv] command [[modifiers] args]. My WiFi connected to hackers fake WiFi 78:65:59:70:9c:19 and when I use Ethernet it connected to hackers too: 01:00:5e:7f:ff:fa.
What is chain of packet? electric/optic signal to network device -> convert electric/optical signal to binary code -> convert to frame -> convert to packet-> iptables -> ip route-> do something with this packet and send ancknowlegmets packets - > chain output iptables -> ip route -> convert frame to electrical signal\optical? Am I right or miss something?
Help. When I enter sudo ip -6 route del default and add a new one, sooner or later the new route disappears and the old route returns. I need it gone; it links to a link-local-adress that is gone. And I can't get route to work with IPv6. Doesn't do what the tutorials show.
I don't believe this statement is correct in modern applications and the routing table. Metric is also used to create priority for interfaces in routing daemons as well.
The “cost” of the route. The metric is used to sort duplicate routes if any appear in the table. Beyond this, a dynamic routing protocol is required to make use of the metric.
Which command to add IP address and its MAC address to a macOS routing table? Route add -host 192.168.1.254 -link MAC address The ‘link’ in that command is wrong, isn’t it? I added the correct gateway but after 2 minutes it reverted to hackers MAC address again. Is there any way to solve this?
Would have liked to know what the metric column is for. What if mask is the same as in your last two entries? Which one will it use then? Will it use wlan0 or eth0?
The metric column acts as a tie-breaker when an IP matches several entries successfully. That example is not ideal because the last two entries match the IP, even if using metric (of 0). In that case, the FIRST item will be selected (here, wlan0). The order in the table acts as a tiebreaker. netbeez.net/blog/linux-set-route-priorities/
This is incorrect or poorly explained. If you send a packet to 54.123.2.2 (the ADDRESS), the routing code does the operation : ADDRESS & MASK = DESTINATION. So (54.123.2.2 & 255.255.255.0 ) => 54.123.2.0 and then (54.123.2.0 = 192.168.0.0) => false. The last one is done twice. Next (54.123.2.2 & 0.0.0.0) = 0.0.0.0 and then (0.0.0.0 = 0.0.0.0) => true [default is equal to 0.0.0.0]. For all the lines where the result is true, the routing code orders them by metric from small to big and sends the packet to the interface of the first ordered line (the smallest metric).
I’m a routing table there is no music sounds or notes I’m positive but I feel strongly towards it I I’d use because at default you cross at least 222 faults under default and having one especially at home can be a symptom to a problem better off checking it some people “” more frequently check theirs very often why ??
The reason it is showing _gateway is that the "route" command is trying to resolve the name of the IP. You can use route -n (to stop route command resolve the IP --> name).
when router doesnot have destination mac in Mac table then as it is collision domain it will not broadcast and simply drops it so to avoid this we use default gateway this is where to send packets when router dont know ehere tto send
listen you can connect your pc to a router by using ethernet cables or wlan wifi methods , this is just the way you will sent and receive packets from your router ,but the default gateway is how your router is connected to internet , and i'm 100% sure that you have a adsl cable network installation so it' normal that your router only use cable as a default and not wifi ,hope that i was clair ps even 3g and 4g from what i know use cable connection but just use cables to connect to internet it's just that they broadcast the signals using big antennas so even 3g 4g ..and satelite are in nature Ethernet connections
Please, bear in mind, I am very new to CS and developing, but I have been following this playlist of videos. Around 0:40 Bucky is talking about viewing your routing table, and he says "if you're on Linux..." and proceeds to explain from there. I am brand new to Linux, and I see someone else mentioned Kali and I see root@kali at the top of the browser. I investigated Kali a bit off of that, and have some questions. Is this another OS that he is running in conjunction w/ Windows? Trying to follow along. I am downloading Kali Linux Light right now in the hopes that I'll find my answers there. Just putting out more lines. Thank you!
Mike Filicetti I'm not aware of his setup but it might well be a VM running Kali Linux. Beware the light version might not have a desktop environment so if you are new to linux the console might be a bit daunting.
This dude is the pioneer of computer tutorials.
the og
Thanks Bucky!!! I watched this video the night before my midterm, and this was exactly the same question on my exam. Thank you so much! Your videos have made my 4 years college life so much easier.
Pro tip : watch series on Flixzone. Been using them for watching lots of of movies these days.
wow, 10+ years later, I still end up clicking into your tutorial! Kudos!
Are you a time traveler?
There's a serious problem with your mathematics, Yijing Meng.
@@heathen0001he means he started to watch this channel 10 years ago
Thanks a lot! I was struggling with getting access to a service from a machine with multiple NICs (this was in a VPC environment) and this video provided sufficient information for me to be able to figure out that I needed to manually add a route in my table.
Once again, TheNewBoston saved my arse!
It's been years since highschool and I forgot newbosten taught me physics, java, python and even backgammon. He has risen to help me with my networking course haha
These videos are still relevant in 2021. Thanks
I love the way you explain everything. Gonna watch more of your videos. Good job
after listening to this video for some time I thought heyy this guy sounds a LOT like bucky i used to listen to back in high school. Scroll down a bit and it really was you lmao!!
in middle of my eJPT exam, you saved my ass, thanks!
After few days i'm going to give eJPT exam. any tips for me bro?
@@pauraspatil9314 pivoting and creating ip tables is very important, learn it properly. And everything you need is covered in the study material and labs.
Best of luck 🤩🤩🤩
@@sadBytesThank You:)
Great explanation. Simple, relevant and clear. Thanks!
I'm time traveller from year 2050. Your tutorial still helps
are you still using these routing tables in 2050??
Great tutorial, thenewboston.
7:18 where's the tutorial about the vm router please? I've just setup a vm router but am confused on the packet routing and how to diagram the connections using $ route command?
You don't explain what happens in this case when the destination matches two or more rules with the longest subnet mask. What is the conclusion for your example? Is the packet sent randomly to wlan0 or eth0? To both?
no such thing as why or callx or know or let gox etc, say, do, can say, do any nmw and any s perfx
I hope it chose the ethernet one
Does anybody have an answer to this question ?
It will be defined by the metric column. The lower the metric, higher the priority. If the metric is the same, usually it will pick the first in the order it is displayed, but it can also take in consideration other factors like interface bandwidth, or even it can be random. If you want a higher priority in an interface, assign a metric value.
I have seen the flags in my router and never understood what they meant until watching this video. Thank you explaining so simply. I am interested in watching the video about windows routers because I have one but not sure where you have it.
At the end of the video you say 192.168.0.15/0 is your IP. Isn't it 192.168.0.15/32, as that would be the subnet mask of 255.255.255.255, while /0 is 0.0.0.0. 192.168.0.15 with a subnet mask of 0.0.0.0 doesn't really make sense.
Thank you so much. Awesome explanation.
192.168.0.15 falls into the last 2 rules. then which interface the data will be sent to?
on Linux, the first entry is used
netbeez.net/blog/linux-set-route-priorities/
As mentioned on 7:20 where's the "How to turn your own personal computer into a router tutorial" ?
I was looking for the more advanced steps as mentioned @ 7:20.
Thank you for the awesome explanation!
Can a computer with one network interface card(NIC) have more than one interface?
Does each connection correspond to one interface?
Sir, I have a question here. I suspect some hackers hacked my macOS through kernel. But when I type # route, it did not show kernel IP address, but shows usage: route [-dnqtv] command [[modifiers] args]. My WiFi connected to hackers fake WiFi 78:65:59:70:9c:19 and when I use Ethernet it connected to hackers too: 01:00:5e:7f:ff:fa.
Thank you, this is gold, really
How to add the routes permanently in RHEL Linux
What is chain of packet? electric/optic signal to network device -> convert electric/optical signal to binary code -> convert to frame -> convert to packet-> iptables -> ip route-> do something with this packet and send ancknowlegmets packets - > chain output iptables -> ip route -> convert frame to electrical signal\optical? Am I right or miss something?
great tutorials, thanks man
Help. When I enter sudo ip -6 route del default and add a new one,
sooner or later the new route disappears and the old route returns. I
need it gone; it links to a link-local-adress that is gone. And I can't get route to work with IPv6. Doesn't do what the tutorials show.
Its explained here. It will be reset on reboot unless you change the config
netbeez.net/blog/linux-set-route-priorities/
Very clear, thank you very much !
What is the metric column for?
how long it takes for a signal to reach that route
I don't believe this statement is correct in modern applications and the routing table. Metric is also used to create priority for interfaces in routing daemons as well.
The “cost” of the route. The metric is used to sort duplicate routes if any appear in the table. Beyond this, a dynamic routing protocol is required to make use of the metric.
Metric-The value assigned to the route. Lower metrics take precedence when there are
two or more routes to the same destination.
Which command to add IP address and its MAC address to a macOS routing table? Route add -host 192.168.1.254 -link MAC address
The ‘link’ in that command is wrong, isn’t it?
I added the correct gateway but after 2 minutes it reverted to hackers MAC address again. Is there any way to solve this?
Superb explanation.. thank you
Lovely explanation, thank you very much
Legend, cheers bro!
Would have liked to know what the metric column is for. What if mask is the same as in your last two entries? Which one will it use then? Will it use wlan0 or eth0?
The metric column acts as a tie-breaker when an IP matches several entries successfully.
That example is not ideal because the last two entries match the IP, even if using metric (of 0). In that case, the FIRST item will be selected (here, wlan0). The order in the table acts as a tiebreaker.
netbeez.net/blog/linux-set-route-priorities/
I just checked my IP address which starts with 192.168.... (same as his) Coincidence? or am I missing something?
thats your local ip address. Only the public ip address varies.
I think you forgot to mention the administrative distance over here which is pretty important in regards to reading a routing table.
So for a 192.168.0.15 packet, it will go out on both wlan0 and eth0?? The packet gets copied?
on Linux, the first entry is used
netbeez.net/blog/linux-set-route-priorities/
This is incorrect or poorly explained. If you send a packet to 54.123.2.2 (the ADDRESS), the routing code does the operation : ADDRESS & MASK = DESTINATION. So (54.123.2.2 & 255.255.255.0 ) => 54.123.2.0 and then (54.123.2.0 = 192.168.0.0) => false. The last one is done twice. Next (54.123.2.2 & 0.0.0.0) = 0.0.0.0 and then (0.0.0.0 = 0.0.0.0) => true [default is equal to 0.0.0.0]. For all the lines where the result is true, the routing code orders them by metric from small to big and sends the packet to the interface of the first ordered line (the smallest metric).
I’m a routing table there is no music sounds or notes I’m positive but I feel strongly towards it I I’d use because at default you cross at least 222 faults under default and having one especially at home can be a symptom to a problem better off checking it some people “” more frequently check theirs very often why ??
I am not getting a default gateway its showing _gateway
What does _gateway signify ??
The reason it is showing _gateway is that the "route" command is trying to resolve the name of the IP. You can use route -n (to stop route command resolve the IP --> name).
Awesome explanation
Thank you soo soo much pal!!!
when router doesnot have destination mac in Mac table
then as it is collision domain
it will not broadcast and simply drops it
so to avoid this we use default gateway
this is where to send packets when router dont know ehere tto send
why there is no wlan0 default route?
listen you can connect your pc to a router by using ethernet cables or wlan wifi methods , this is just the way you will sent and receive packets from your router ,but the default gateway is how your router is connected to internet , and i'm 100% sure that you have a adsl cable network installation so it' normal that your router only use cable as a default and not wifi ,hope that i was clair
ps even 3g and 4g from what i know use cable connection but just use cables to connect to internet it's just that they broadcast the signals using big antennas so even 3g 4g ..and satelite are in nature Ethernet connections
+Ilyas Abdelwahab thank you:)
no problem if you need more info ask
Kali is boss. do you have a special wifi chip with monitor mode
Please, bear in mind, I am very new to CS and developing, but I have been following this playlist of videos. Around 0:40 Bucky is talking about viewing your routing table, and he says "if you're on Linux..." and proceeds to explain from there. I am brand new to Linux, and I see someone else mentioned Kali and I see root@kali at the top of the browser. I investigated Kali a bit off of that, and have some questions. Is this another OS that he is running in conjunction w/ Windows? Trying to follow along. I am downloading Kali Linux Light right now in the hopes that I'll find my answers there. Just putting out more lines. Thank you!
Mike Filicetti I'm not aware of his setup but it might well be a VM running Kali Linux. Beware the light version might not have a desktop environment so if you are new to linux the console might be a bit daunting.
What are you referring to when you say "CS" ?
a god.
Again, Bucky, see u again
i lol'ed at 4:11 ... "dudu dudu duu "...
SUBSCRIBED!
THANKS!
Thank you !!
You didn't explain metric :(
What the hell is metric y
Is this Guru alive ?
"route PRINT" on windows
great
Hm, for newbies.. :-/ Seeing the screen was hoping to get tutorial on multiple routing tables in Linux..
24,000 views and 8 comments ?
right
This u bucky
kali linux i see u
You mean the impersonator.
He is not the real one.