The information comprises of :
- The type of interface like eth0,eth1 n so on
- The IP address information like inet address 192.168.0.1,Bcast ip:192.168.0.255 Mask :225.255.225.0, RX-TX packets received-dropped-overrun-frames-collision
- Hardware address HWaddress :00.ad.cc.15.25.22 (6 octate address or 48bytes
- various other statistics
So therefore to know the inactive interfaces we must run :
# ifconfig -a
To start and stop the interfaces or in other sense bringing up and gringing down the eth0 we can run following commands:
# ifup interfacename
#ifdown interfacename
#service network restart/start/stop
#chkconfig network on/off
#netconfig interfacename .........to set the IP to the interface
The file which get modified is :
/etc/sysconfig/network-scripts/ifcfg-ethx
DEVICE=ethx
BOOPRO=dhcp/static
ONBOOT=yes
IPADDR=XXX.XXX.XXX.XXX
NETMASK=XXX.XXX.XXX.XXX
last two inputs are acceptable only if BOOTPRO is static
Global Network paramaters are available in following file :
/etc/sysconfig/network
NETWORKING=yes/no
HOSTNAME=fqdn by default
GATEWAY=XXX.XXX.XXX.XXX
NISDOMAIN=whatever
/etc/hosts For small LAN it act as a replacement for DNS
127.0.0.1 localhost.localdomain localhost
l'm suffering from some back pain so might come into my pace soon...
by the time this might act an appetiser for you Linux gigs
No comments:
Post a Comment