⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 decnet.txt

📁 嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计 AD接口实验 CAN总线通信实验 GPS通信实验 Linux内核移植与编译实验 IC卡读写实验 SD驱动使
💻 TXT
字号:
                    Linux DECnet Networking Layer Information                   ===========================================1) Other documentation....   o Project Home Pages       http://www.chygwyn.com/DECnet/                      - Kernel info       http://linux-decnet.sourceforge.net/                - Userland tools       http://www.sourceforge.net/projects/linux-decnet/   - Status page2) Configuring the kernelBe sure to turn on the following options:    CONFIG_DECNET (obviously)    CONFIG_PROC_FS (to see what's going on)    CONFIG_SYSCTL (for easy configuration)if you want to try out router support (not properly debugged yet)you'll need the following options as well...    CONFIG_DECNET_ROUTER (to be able to add/delete routes)    CONFIG_NETFILTER (will be required for the DECnet routing daemon)    CONFIG_DECNET_ROUTE_FWMARK is optionalDon't turn on SIOCGIFCONF support for DECnet unless you are really surethat you need it, in general you won't and it can cause ifconfig tomalfunction.3) Command line optionsThe kernel command line takes options looking like the following:    decnet=1,2the two numbers are the node address 1,2 = 1.2 For 2.2.xx kernelsand early 2.3.xx kernels, you must use a comma when specifying theDECnet address like this. For more recent 2.3.xx kernels, you mayuse almost any character except space, although a `.` would be the mostobvious choice :-)There used to be a third number specifying the node type. This optionhas gone away in favour of a per interface node type. This is now setusing /proc/sys/net/decnet/conf/<dev>/forwarding. This file can beset with a single digit, 0=EndNode, 1=L1 Router and  2=L2 Router.There are also equivalent options for modules. The node address canalso be set through the /proc/sys/net/decnet/ files, as can other systemparameters.Currently the only supported devices are ethernet and ip_gre. Theethernet address of your ethernet card has to be set according to the DECnetaddress of the node in order for it to be recognised (and thus appear in/proc/net/decnet_dev). There is a utility available at the aboveFTP sites called dn2ethaddr which can compute the correct ethernetaddress to use. The address can be set by ifconfig either before atat the time the device is brought up. If you are using RedHat you canadd the line:    MACADDR=AA:00:04:00:03:04or something similar, to /etc/sysconfig/network-scripts/ifcfg-eth0 orwherever your network card's configuration lives.You will also need to set /proc/sys/net/decnet/default_device to thedevice you want DECnet to route packets out of when no specific routeis available. Usually this will be eth0, for example:    echo -n "eth0" >/proc/sys/net/decnet/default_deviceThere is a list of what the other files under /proc/sys/net/decnet/ doon the kernel patch web site (shown above).4) Run time kernel configurationThis is either done through the sysctl/proc interface (see the kernel webpages for details on what the various options do) or through the iproute2package in the same way as IPv4/6 configuration is performed.Documentation for iproute2 is included with the package, although there isas yet no specific section on DECnet, most of the features apply to bothIP and DECnet, albeit with DECnet addresses instead of IP addresses anda reduced functionality.If you want to configure a DECnet router you'll need the iproute2 packagesince its the _only_ way to add and delete routes currently. Eventuallythere will be a routing daemon to send and receive routing messages foreach interface and update the kernel routing tables accordingly. Therouting daemon will use netfilter to listen to routing packets, andrtnetlink to update the kernels routing tables. The DECnet raw socket layer has been removed since it was there purelyfor use by the routing daemon which will now use netfilter (a much cleanerand more generic solution) instead.5) How can I tell if its working ?Here is a quick guide of what to look for in order to know if your DECnetkernel subsystem is working.   - Is the node address set (see /proc/sys/net/decnet/node_address)   - Is the node of the correct type                              (see /proc/sys/net/decnet/conf/<dev>/forwarding)   - Is the Ethernet MAC address of each Ethernet card set to match     the DECnet address. If in doubt use the dn2ethaddr utility available     at the ftp archive.   - If the previous two steps are satisfied, and the Ethernet card is up,     you should find that it is listed in /proc/net/decnet_dev and also     that it appears as a directory in /proc/sys/net/decnet/conf/. The     loopback device (lo) should also appear and is required to communicate     within a node.   - If you have any DECnet routers on your network, they should appear     in /proc/net/decnet_neigh, otherwise this file will only contain the     entry for the node itself (if it doesn't check to see if lo is up).   - If you want to send to any node which is not listed in the     /proc/net/decnet_neigh file, you'll need to set the default device     to point to an Ethernet card with connection to a router. This is     again done with the /proc/sys/net/decnet/default_device file.   - Try starting a simple server and client, like the dnping/dnmirror     over the loopback interface. With luck they should communicate.     For this step and those after, you'll need the DECnet library     which can be obtained from the above ftp sites as well as the     actual utilities themselves.   - If this seems to work, then try talking to a node on your local     network, and see if you can obtain the same results.   - At this point you are on your own... :-)6) How to send a bug reportIf you've found a bug and want to report it, then there are several thingsyou can do to help me work out exactly what it is that is wrong. Usefulinformation (_most_ of which _is_ _essential_) includes: - What kernel version are you running ? - What version of the patch are you running ? - How far though the above set of tests can you get ? - What is in the /proc/decnet* files and /proc/sys/net/decnet/* files ? - Which services are you running ? - Which client caused the problem ? - How much data was being transferred ? - Was the network congested ? - If there was a kernel panic, please run the output through ksymoops   before sending it to me, otherwise its _useless_. - How can the problem be reproduced ? - Can you use tcpdump to get a trace ? (N.B. Most (all?) versions of    tcpdump don't understand how to dump DECnet properly, so including   the hex listing of the packet contents is _essential_, usually the -x flag.   You may also need to increase the length grabbed with the -s flag. The   -e flag also provides very useful information (ethernet MAC addresses))7) Mailing listIf you are keen to get involved in development, or want to ask questionsabout configuration, or even just report bugs, then there is a mailinglist that you can join, details are at:http://sourceforge.net/mail/?group_id=49938) Legal InfoThe Linux DECnet project team have placed their code under the GPL. Thesoftware is provided "as is" and without warranty express or implied.DECnet is a trademark of Compaq. This software is not a product ofCompaq. We acknowledge the help of people at Compaq in providing extradocumentation above and beyond what was previously publicly available.Steve Whitehouse <SteveW@ACM.org>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -