📄 kernel.texi
字号:
@node Kernel Interface, SNMP Support, IPv6 Support, Top@comment node-name, next, previous, up@chapter Kernel InterfaceThere are several different methods for reading kernel routing tableinformation, updating kernel routing tables, and for looking upinterfaces.@table @samp@item ioctlThe @samp{ioctl} method is a very traditional way for reading or writingkernel information. @samp{ioctl} can be used for looking up interfacesand for modifying interface addresses, flags, mtu settings and othertypes of information. Also, @samp{ioctl} can insert and delete kernelrouting table entries. It will soon be available on almost any platformwhich zebra supports, but it is a little bit ugly thus far, so if abetter method is supported by the kernel, zebra will use that.@item sysctl@samp{sysctl} can lookup kernel information using MIB (ManagementInformation Base) syntax. Normally, it only provides a way of gettinginformation from the kernel. So one would usually want to change kernelinformation using another method such as @samp{ioctl}.@item proc filesystem@samp{proc filesystem} provides an easy way of getting kernelinformation.@item routing socket@item netlinkOn recent Linux kernels (2.0.x and 2.2.x), there is a kernel/usercommunication support called @code{netlink}. It makes asynchronouscommunication between kernel and Zebra possible, similar to a routingsocket on BSD systems.Before you use this feature, be sure to select (in kernel configuration) the kernel/netlink support option 'Kernel/User network link driver' and 'Routing messages'.Today, the /dev/route special device file is obsolete. Netlinkcommunication is done by reading/writing over netlink socket.After the kernel configuration, please reconfigure and rebuild Zebra.You can use netlink as a dynamic routing update channel between Zebraand the kernel.@end table
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -