Ifconfig: Difference between revisions

From OLPC
Jump to navigation Jump to search
(adjust for current release)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{linux software}}
{{G1G1 Support FAQ}}

'''ifconfig''' is a [[Linux]] command to review network configuration options and must be run through the "[[Terminal Activity]]".
'''ifconfig''' is a [[Linux]] command to review network configuration options and must be run through the "[[Terminal Activity]]".


= ifconfig for Wireless '''eth0''' =
== Using ifconfig ==


At a [[Terminal Activity]] command prompt, enter
In the [[Terminal Activity]], type:


/sbin/ifconfig -a eth0
ifconfig eth0


== MAC Address ==
== MAC Address ==


The MAC Address is listed as '''HWaddr''' in the first line.
The MAC Address is listed as '''ether''' in the third line:


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
/sbin/ifconfig -a eth0
inet6 fe80::2268:9dff:fed2:7f79 prefixlen 64 scopeid 0x20<link>
eth0 Link encap:Ethernet '''HWaddr 00:17:C4:05:24:24 '''
<font color="red">ether 20:68:9d:d2:7f:79</font> txqueuelen 1000 (Ethernet)
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
RX packets 0 bytes 0 (0.0 B)
inet6 addr: fe80::217:c4ff:fe05:2424/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX errors 0 dropped 0 overruns 0 frame 0
RX packets:1597 errors:0 dropped:0 overruns:0 frame:0
TX packets 6 bytes 496 (496.0 B)
TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
TX errors 3 dropped 0 overruns 0 carrier 0 collisions 0
collisions:0 txqueuelen:1000
RX bytes:260962 (254.8 KiB) TX bytes:110450 (107.8 KiB)


== IP Address ==
== IP Address ==


If your XO is connected to a wireless network, the IP address is listed on the second line as '''inet addr:'''
If your XO is connected to a wireless network, the IP address is listed on the second line as '''inet''':


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
/sbin/ifconfig -a eth0
inet <font color="red">10.0.0.108</font> netmask 255.255.255.0 broadcast 10.0.0.255
eth0 Link encap:Ethernet HWaddr 00:17:C4:05:24:24
inet6 fe80::2268:9dff:fed2:7f79 prefixlen 64 scopeid 0x20<link>
'''inet addr:192.168.1.107''' Bcast:192.168.1.255 Mask:255.255.255.0
ether 20:68:9d:d2:7f:79 txqueuelen 1000 (Ethernet)
inet6 addr: fe80::217:c4ff:fe05:2424/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets 16 bytes 8192 (8.0 KiB)
RX packets:1597 errors:0 dropped:0 overruns:0 frame:0
RX errors 0 dropped 0 overruns 0 frame 0
TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
TX packets 79 bytes 21861 (21.3 KiB)
TX errors 3 dropped 0 overruns 0 carrier 0 collisions 0
collisions:0 txqueuelen:1000
RX bytes:260962 (254.8 KiB) TX bytes:110450 (107.8 KiB)

Latest revision as of 01:33, 28 June 2014

This command is run in the standard Linux environment via the Terminal Activity. The GUI will probably not integrate comfortably with the XO Laptop's Sugar environment. Your user experience may vary considerably depending on the established environment and the other programs running on the laptop, may need re-installation after an OS Update. See the Linux software category for other commands.
This page is part of the XO Support FAQ.     Support Index | Print This Page
<imagemap>

Image:Support-banner-square.png|173px|community support pages rect 0 0 135 204 [1] rect 135 0 345 204 Support FAQ rect 0 205 135 408 [2]

  1. Comment : there's some whitespace here:

rect 135 205 345 408 Other support

  1. maybe desc none is better. testing.

desc none

</imagemap>

ifconfig is a Linux command to review network configuration options and must be run through the "Terminal Activity".

Using ifconfig

In the Terminal Activity, type:

ifconfig eth0

MAC Address

The MAC Address is listed as ether in the third line:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::2268:9dff:fed2:7f79  prefixlen 64  scopeid 0x20<link>
        ether 20:68:9d:d2:7f:79  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 496 (496.0 B)
        TX errors 3  dropped 0 overruns 0  carrier 0  collisions 0

IP Address

If your XO is connected to a wireless network, the IP address is listed on the second line as inet:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.108  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::2268:9dff:fed2:7f79  prefixlen 64  scopeid 0x20<link>
        ether 20:68:9d:d2:7f:79  txqueuelen 1000  (Ethernet)
        RX packets 16  bytes 8192 (8.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 79  bytes 21861 (21.3 KiB)
        TX errors 3  dropped 0 overruns 0  carrier 0  collisions 0