At this point, you’re speaking directly to the PPP daemon. You can issue commands, set instructions, and generally boss it around. To tell it to connect to the ISP, enter “dial.” ppp ON openbsdtest> dial ppp ON openbsdtest> Although you shouldn’t see anything back from the PPP daemon, you should be able to go to another console or terminal window and ping the outside world. You can also use ifconfig(8) to examine your Internet connection interface. tun0 is the first user PPP network interface. If the link is down, it will look like this. # ifconfig tun0 tun0: flags=8011 mtu 1500 # Once the link comes up, the tun0 interface will show the new IP address of your system, the IP address of the remote side of the connection, and a status of “UP”. # ifconfig tun0 tun0: flags=8011 mtu 1500 inet 1 192.168.1.108 –> 2 192.168.1.250 netmask 0xffffff00 # The 1 first IP given is your local IP address, and the 2 second is the remote side. You should be able to ping the other side of the network connection: in this case (192.168.1.250). To disconnect the PPP session, just give the “quit” command. PPP ON openbsdtest> quit # This interactive mode supports many different commands, and allows you to perform all sort of connection customization and debugging, as documented in ppp(8). Connection Types While interactive mode provides all sorts of detailed functionality, most people never need any of it. It’s nice to have the ability in case something goes wrong, but most people just want to configure a dial-up connection to their ISP and have it Just Work. You can do this by specifying the connection type. We’ll discuss the most common types of connection and how they work. (You can find more in ppp(8), but these are overwhelmingly the most commonly used.) Background Connections A background connection dials up the Net when you run the “ppp” command, but becomes a background process as soon as the connection is established. This may take a moment; you won’t get a command prompt back until your modem has finished dialing the ISP, all protocol details have been negotiated, and your interface and routing are configured. Choose a background connection with the “-background” flag. # ppp -background AbsoluteOpenBSD Working in background mode Using interface: tun0 PPP enabled Page 183
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp hosting services
This entry was posted
on Saturday, November 18th, 2006 at 8:36 am and is filed under jsp.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.