Moxa V2616A-C5-CT-W7E [27/111] Etc nsswitch conf

Moxa V2616A-C8-W7E [27/111] Etc nsswitch conf
V2616A Linux Managing Communications
3-5
/etc/nsswitch.conf
This file defines the sequence of files, /etc/hosts or /etc/resolv.conf, to be read to resolve the IP address.
The hosts line in /etc/nsswitch.conf means use /etc/host first and DNS service to resolve the address.
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference’ and `info’ packages installed, try:
# `info libc “Name Service Switch”‘ for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Configuring Ethernet Bonding
The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical
"bonded" interface. To use the bonding feature, you have to load the bonding driver with mode setting. Then
use ifenslave to add the Ethernet interface into bond0 interface. Here is the script bonded eth1 and eth2
together, you can put it in /etc/init.d/bonding.sh.
#! /bin/bash
#### BEGIN INIT INFO
# Provides: bonding
# Short-Description: Start the bonding service, bond eth1 and eth2.
# Required-Start: $all
# Required-Stop: $all
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
NAME=bonding
PATH=/bin:/usr/bin:/sbin:/usr/sbin
case "$1" in
start)
# to set ethX interfaces as slave the bond0 must have an ip
if [ "$2" == "" ]; then
$0
exit 1

Содержание

Похожие устройства

Скачать