Documente Academic
Documente Profesional
Documente Cultură
Isbat Uzzin
Device Recognition
All drivers for network interface cards are
builts as modules
Networking scripts reference logical
interface name, eg:
Eth0
/etc/modprobe.conf maps logical names to
specific module name
Example
Alias eth0 3c59x
Network Interafaces
Interfaces names
Ethernet: eth0, eth1, ethN
Token Ring: tr0, tr1, trN
FDDI: fdi0,fddi1,fddiN
PPP: ppp0,ppp1,pppN
Data Link layer address
ifconfig
Mii-tool
Views and controls the negotiated media
speed (100BaseTX, 10BaseT) of same
ethernet cards
Useful for forcing specific ethernet speed
and duplex settings
Changes with mii-tool should be made on
inactive interfaces
ifconfig
Used to configure and set IP Address on
network interfaces
Not usually called directly, but by other
scripts
Also used to view properties of active and
inactive network interfaces
ifup / ifdown
If(up|down) interface
Start and stop network interfaces
Take care of details specific to interface
Changing/adding/deleting routes
Obtains addresses as needed
BOOTP, DHCP
Interface Configuration Files
Ifcfg-xxx
Located in:
/etc/sysconfig/network-scripts/
Configuration methods
Static
Dhcp
bootp
Configuration Utility
Netconfig
Text-Based network configuration tool
Only writes config files. Does not activate device or
changes. Use ifup/ifdown to activate changes
Used bu kudzu when new network card found at boot
time
System-config-network
GNOME-based network configuration tool
Can be launched by a non-privilaged user, but
requires authentication as root
Binding multiple IP Address
Use Multiple IP addresses on NIC
Virtual (interface(s)
For small number of Ips, create an ifcfg
file for each virtual interface
Ifcfg—ethX:xxx