 We've seen netstat minus s show me statistics minus t show me TCP connections if you read the man page for netstat There are many many different options TCP connections you can show about UDP you can show listening you can show routing information interface information Statistics and others all right, so it does a lot Let's do a couple more netstat minus I And I'll pipe it into less Show me something about the interfaces and some statistics Doesn't come up very well The command netstat minus I Some statistics about my interfaces All right, so my ETH 0 1 and 2 and some of the data of packets received okay transmitted. Okay, and so netstat minus R Shows me the routing table And I should have did it with the minus n option to show no nicknames It was a bit slow without it but the routing table if we look at the first two columns Gives me two entries and it says Look at the last column maybe first to reach anyone on network 10 10 16 dot zero We know that network address from our first task to reach anyone on this subnet There is no gateway send direct Doesn't make sense to send to a router If they're on the same subnet as me a gateway also means router The first row is for anyone else Send to the router or gateway 10 10 16 dot one So if I want to communicate with anyone that starts with 10 10 16 Then send direct to them in the the LAN If I want to communicate with someone else Maybe the Google website Facebook Then the default action is to send to the gateway 10 10 16 dot one So we say 10 10 16 dot one is my default router or default gateway It's a computer upstairs on the third floor So that's a routing table we will see and modify the routing table with commands in another lab today We're just looking at the information another way to see that is using the route command Before we do it net stat minus our minus end shows the no nicknames the raw addresses And it's generally faster because it doesn't have to look up and find the nicknames To see the routing table. You can also use route route minus end shows exactly the same information We will commonly use the route command to see the routing table And we'll also modify the routing table using the route command net stat just shows us Net stat minus r or the route command are effectively the same from our purposes