

How do I start and stop a network interface like ppp0? How do I get my modem to dial the server's number?

Specifically, you want to know the answers to these questions: As with the routers in LANs, you do not need to worry about the server's uplink IP address.Īlthough it's nice to know how this process works, you are probably more interested in actually getting a connection to work. Figure 5-2 shows the link between your local IP address and the server's IP address. To reach the rest of the Internet, you set the default gateway to the server's IP address and let the server do the rest. After the connection initiates, the PPP software on your machine knows how to reach the server's IP address, and the server knows how to reach your machine's IP address. When you dial up and register with a PPP server, the server gives you your own IP address and tells you about its IP address. Although PPP is a very flexible protocol, its main use is to connect one machine without a direct IP connection to second machine (a PPP server) that has one, with the second machine possibly asking the first for a username and password along the way. The most popular standard for single-machine Internet connectivity with a modem is PPP (Point-to-Point Protocol). However, if you have a modem and telephone line to connect to the Internet, you cannot use the same host-to-network layer interfaces described in previous sections because your connection does not run over the Ethernet physical medium. So far, you have seen Internet connections based on a local area network (LAN) and a default gateway on that network.
