Linux Networking HOWTO | ||
---|---|---|
Prev | Chapter 9. Advanced Networking with Kernel 2.2 | Next |
Listing the Routing Table:
ip route
Now on my machine, this equates to the following output:
207.149.43.62 dev eth0 scope link 207.149.43.0/24 dev eth0 proto kernel scope link src 207.149.43.62 default via 207.149.43.1 dev eth0 |
The first line:
207.149.43.62 dev eth0 scope link is the route for the interface
The second line:
207.149.43.0/24 dev eth0 proto kernel scope link src 207.149.43.62 Is the route that says everything that goes to 207.149.43.0 needs to go out 207.149.43.62.
The third line:
default via 207.149.43.1 dev eth0 is the default route.
Now that we have walked through a basic routing table, lets see how we use it. First read the Policy routing text. If you get confused, don't worry -- it is a confusing text. It will give you the run down on everything that the new routing code can accomplish.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |