Using ifconfig

You can use the ifconfig command to manage a network interface card. The command has been around for years now and is not the most flexible command, but it will do the job fine. If you use the ifconfig command without any parameters, it will show information about the current configuration of the network cards in your server. You can see an example of this in Figure 13-10.

Edn View Teimina Tabs Help laksmi:/ ethO

# ifconfig

Link encap:Ethernet HWaddr 00 : OC:29:C7:82:F6

inet addr:192.168.1.125 Beast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fec7:82f6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:! RX packets : 12037 errors:0 dropped:0 overruns:0 frame:0 TX packets:1228 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000

RX bytes:859905 (839.7 Kb) TX bytes:55776 (54.4 Kb) Interrupt:177 Base address:0x1400

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:1516 errors:0 dropped:0 overruns:0 frame:0

TX packets:1516 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:148066 {144.5 Kb) TX bytes:148066 (144.5 Kb)

Figure 13-10. If used without any parameters, ifconfig shows information about the current configuration of network boards.

Was this article helpful?

0 0

Post a comment