Date: Thu, 25 Mar 2004 10:01:17 +0100 (CET) From: Harti Brandt <brandt@fokus.fraunhofer.de> To: docs@freebsd.org Subject: handbook submission Message-ID: <20040325094210.D66940@beagle.fokus.fraunhofer.de>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hi all, attached is a first section for the handbook on configuring ATM. Could please someone take this, add the necessary SGML stuff and put it into the handbook? This is -current only. harti [-- Attachment #2 --] 19.17 Configuring ATM 19.17.1 Configuring classical IP over ATM (PVCs) Classical IP over ATM (CLIP) is the simplest method to use ATM with IP. It can be used with switched connections (SVCs) and with permanent connections (PVCs). This section describes how to setup a network based on PVCs. 19.17.1.1 Fully meshed configurations The first method to setup a CLIP with PVCs is to connect each machine to each other machine in the network via a dedicated PVC. While this is simple to configure it tends to become impractical for larger number of machines. The example supposes that we have four machines in the network, each connected to the ATM network with an ATM adapter card. The first step is the planning of the IP addresses and the ATM connections between the machines. We use the following: hostA: 192.168.173.1 hostB: 192.168.173.2 hostC: 192.168.173.3 hostD: 192.168.173.4 To build a fully meshed net we need one ATM connection between each pair of machines: hostA - hostB: 0.100 hostA - hostC: 0.101 hostA - hostD: 0.102 hostB - hostC: 0.103 hostB - hostD: 0.104 hostC - hostD: 0.105 Here X.Y means VPI is X and VCI is Y. The values at each end of the connection may of course differ, but for simplicity we assume that they are the same. Next we need to configure the ATM interfaces on each host: hostA# ifconfig hatm0 192.168.173.1 up hostB# ifconfig hatm0 192.168.173.2 up hostC# ifconfig hatm0 192.168.173.3 up hostD# ifconfig hatm0 192.168.173.4 up assuming that the ATM interface is hatm0 on all hosts. Now the PVCs need to configured on hostA (we assume that they are already configured on the ATM switches, you need to consult the manual for the switch on how to do this). hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr hostA# atmconfig natm add 192.168.173.4 hatm0 0 102 llc/snap ubr hostB# atmconfig natm add 192.168.173.1 hatm0 0 100 llc/snap ubr hostB# atmconfig natm add 192.168.173.3 hatm0 0 103 llc/snap ubr hostB# atmconfig natm add 192.168.173.4 hatm0 0 104 llc/snap ubr hostC# atmconfig natm add 192.168.173.1 hatm0 0 101 llc/snap ubr hostC# atmconfig natm add 192.168.173.2 hatm0 0 103 llc/snap ubr hostC# atmconfig natm add 192.168.173.4 hatm0 0 105 llc/snap ubr hostD# atmconfig natm add 192.168.173.1 hatm0 0 102 llc/snap ubr hostD# atmconfig natm add 192.168.173.2 hatm0 0 104 llc/snap ubr hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr Of course other traffic contracts than UBR can be used given the ATM adapter supports those. In this case the name of the traffic contract is followed by the parameters of the traffic. Help for the atmconfig tool can be obtained with: hostA# atmconfig help natm add or in atmconfig(1). The same configuration can also be done via rc.conf(5). For hostA this would look like: network_interfaces="lo0 hatm0 <other interfaces>" ifconfig_hatm0="inet 192.168.173.1 up" natm_static_routes="hostB hostC hostD" route_hostB="192.168.173.2 hatm0 0 100 llc/snap ubr" route_hostC="192.168.173.3 hatm0 0 101 llc/snap ubr" route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr" The current state of all CLIP routes can be obtained with: hostA# atmconfig natm showhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040325094210.D66940>
