linuxcbt-add-nic

### Add Network Interfaces to Hosts###
Features:
 1. On-the fly NIC provisioning

Tasks:
 1. Explore NIC layout on: 'linuxcbtserv2'
  a. 'ifconfig -a' - enumerates detected NICs - named: 'ethn'
  b. 'ethtool eth1'
  c. Explore: '/etc/sysconfig/network-scripts/ifcfg*' - search for device scripts
  c. 'np-applet' - configure 'eth1' with static address
Note: 'nm-applet' will create: '/etc/sysconfig/network-scripts/ifcfg-eth1' script
Note: This will ensure that the interface is resumed upon reboot/runlevel-switch

 2. Explore NIC layout on: 'linuxcbtserv1'
  a. 'ifconfig -a'
Note: The presence of an IPv6 link-local address: 'fe80::' means that the link is connected to another device: i.e. switch, hosts, etc.
  b. 'ethtool eth1' && 'ethtool eth2'
  c. 'system-config-network'
  d. Enumerate 'ifcfg-eth1' script from both localtions:
'ls -li /etc/sysconfig/{networking/devices,network-scripts}/ifcfg-eth1'
23 -rw-r--r--. 3 root root 123 Aug 13 13:39 /etc/sysconfig/networking/devices/ifcfg-eth1
23 -rw-r--r--. 3 root root 123 Aug 13 13:39 /etc/sysconfig/network-scripts/ifcfg-eth1

Note: Now both: 'linuxcbtserv1' and 'linuxcbtserv2' are both configured to allow DHCP configureation on their private subnet
'linuxcbtserv2' - DHCP Server
'linuxcbtserv1' - DHCP Client
Note: Ensure that interface script file contains: 'ONBOOT=yes' directive to ensure that the OS brings the interface up thwn rebooting (init 6) and/or switching run-levels
Note: get help from: '/usr/share/doc/initscripts*/sysconfig.txt'

你可能感兴趣的:(linux,职场,eth0,休闲)