[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default route [linux/network]



On Tue, 15 May 2001, Joachim Schiele wrote:

> can someone tell me why there are default routes and how to set them?

The "default route" is the way to go if the other routes don't match. The
default route points to a gateway (another router) that should help. In
other words, if you want to connect to some IP that isn't part of your
network, then the packets will go that default route gateway.

You set them like this:

  route add default gw 10.159.197.130 eth1

Usually where the IP is the IP of your ISPs router (on the same
network). (Your ISP should tell you what the gateway is.)

> eth1  ------------------- internet

  Jeremy C. Reed
  http://www.reedmedia.net/
  http://bsd.reedmedia.net/  -- BSD news and resources
  http://www.isp-faq.com/    -- find answers to your questions



Reply to: