Tuesday, June 3, 2008

Where Does Phlegm Sit In Your Throat



ifconfig-a command shell that allows you to configure and view the settings of the card / and network.
-The command syntax is:
ifconfig [interface] address

options - Options: Some of the options we can go to the command are:-a

Show all interfaces network with its features, even if they are set down (inactive)
-s Shows a short list
-v verbose mode, it also indicates if there are errors
-up Enable network interface
an Off-down '
-network interface netmask 'address' Sets the address of the netmask
-broadcast 'address' Set the broadcast address
.
Examples: If you want to see the network setup data after the previous command, just give the command: ifconfig


we as output:

eth0 Link encap: Ethernet HWaddr 00:18: DE: 74:11:4 B
inet addr: 192.168.0.79 Bcast: 192.168.0.255 Mask: 255.255.255.0 UP BROADCAST MULTICAST
MTU: 1500 Metric:
1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets
: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000 RX bytes
: 0 (0.0 b ) TX bytes: 0 (0.0 b)
Interrupt: 16 Base address: 0xC000 Memory: b0200000-b0200fff
lo Link encap: Local Loopback inet addr
: 127.0.0.1 Mask: 255.0.0.0 inet6 addr
::: 1 / 128 Scope: Host UP LOOPBACK RUNNING
MTU: 16436 Metric: 1 RX packets
: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0 RX bytes
: 0 (0.0 b) TX bytes: 0 (0.0 b)


it * is * a ' logical interface, called Loopback * *. It must always be active, even if the computer is not connected to the network. For more information go to * man.

It can be seen also as the command it shows the various interface specifications, such as the IP address associated with them (written in the line inet addr:), it was the same (next line) and a host of other terms and policies which details can be found in the manual page of command.

If we want to configure our NIC eth0 * *. The card is off, we want to enable, set the IP address, netmask and broadcast. We give the following command: ifconfig eth0 192.168.0.79

netmask 255.255.255.0 broadcast 192.168.0.255 up


http://linuxpedia.netsons.org/index.php/Ifconfig

0 comments:

Post a Comment