--- wikisrc/guide/net-practice.mdwn 2013/03/14 23:07:45 1.1 +++ wikisrc/guide/net-practice.mdwn 2013/03/21 11:11:21 1.3 @@ -1,3 +1,7 @@ +**Contents** + +[[!toc levels=3]] + # Setting up TCP/IP on NetBSD in practice ## A walk through the kernel configuration @@ -564,7 +568,7 @@ the connection messages of pppd, give th # tail -f /var/log/messages -To disconnect, do a **kill -HUP** of **pppd**. +To disconnect, do a `kill -HUP` of `pppd`. # pkill -HUP pppd @@ -768,7 +772,7 @@ The `/etc/nsswitch.conf` file should be Summing up, to configure the network the following must be done: the network adapters must be installed and physically connected. Next they must be -configured (with **ifconfig**) and, finally, the file `/etc/rc.conf` must be +configured (with `ifconfig`) and, finally, the file `/etc/rc.conf` must be modified to configure the interface and possibly default router, and `/etc/resolv.conf` and `/etc/nsswitch.conf` should be adjusted if DNS should be used. This type of network management is sufficient for small networks without @@ -874,7 +878,7 @@ section. Of course you don't want to give this command every time, so it's better to define the `defaultroute` entry in the `/etc/rc.conf` file: the default route will be set automatically during system initialization, using the defaultroute -option as an argument to the **route add default** command. +option as an argument to the `route add default` command. If the client machine is not using NetBSD, the configuration will be different. On Windows PCs you need to set the gateway property of the TCP/IP protocol to @@ -888,7 +892,7 @@ The following commands can be useful for * `ping` -- tries to connect to other computers via ICMP (usually used for testing if a connection exists). - * `netstat -r` -- Displays the routing tables (similar to **route show**). + * `netstat -r` -- Displays the routing tables (similar to `route show`). * `traceroute` -- On the client it shows the route followed by the packets to their destination. * `tcpdump` -- Use on the gateway to monitor TCP/IP traffic. @@ -1061,7 +1065,7 @@ use a little trick: * Create a Remote Access connection like the one described before for Windows NT, but using the *Standard Modem*. - * In `.ppprc` substitute the line that calls **chat** with the following line + * In `.ppprc` substitute the line that calls `chat` with the following line connect '/usr/sbin/chat -v ATH OK AT OK ATE0V1 OK AT OK ATDT CONNECT'