Debian Codegraph @

docs/dev/logs/2012-05-30.ifconfig-outputs

raw
1 Here are some "ifconfig -a" outputs that help for the explorer/ifaces parser.
2
3 The current regexp is 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p'
4
5
6 You should get the interface list when you run:
7
8 ifconfig -a | sed -n -r 's/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p'
9
10 If you don't maybe try to replace the sed -r option by -E (works on Darwin).
11
12
13 If you still don't get any output, the regexp might be wrong.
14
15
16
17 On Archlinux:
18 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
19 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1
20 inet 127.0.0.1 netmask 255.0.0.0
21 inet6 ::1 prefixlen 128 scopeid 0x10<host>
22 loop txqueuelen 0 (Local Loopback)
23 RX packets 300081 bytes 49637437 (47.3 MiB)
24 RX errors 0 dropped 0 overruns 0 frame 0
25 TX packets 300081 bytes 49637437 (47.3 MiB)
26 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
27
28 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
29 inet 192.168.1.38 netmask 255.255.255.0 broadcast 192.168.1.255
30 inet6 fe80::ba8d:12ff:fe15:fdfa prefixlen 64 scopeid 0x20<link>
31 ether b8:8d:12:15:fd:fa txqueuelen 1000 (Ethernet)
32 RX packets 421381 bytes 442228597 (421.7 MiB)
33 RX errors 0 dropped 0 overruns 0 frame 0
34 TX packets 319266 bytes 41111233 (39.2 MiB)
35 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
36 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
37
38 On Debian Linux:
39 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
40 eth0 Link encap:Ethernet HWaddr 00:16:17:55:2d:00
41 inet addr:172.16.5.2 Bcast:172.16.255.255 Mask:255.255.0.0
42 inet6 addr: fe80::216:17ff:fe55:2d00/64 Scope:Link
43 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
44 RX packets:2854022168 errors:5 dropped:0 overruns:0 frame:4
45 TX packets:2200088072 errors:0 dropped:0 overruns:0 carrier:0
46 collisions:0 txqueuelen:1000
47 RX bytes:2708386800354 (2.4 TiB) TX bytes:531552070314 (495.0 GiB)
48 Base address:0x3000 Memory:d0120000-d0140000
49
50 eth0:1 Link encap:Ethernet HWaddr 00:16:17:55:2d:00
51 inet addr:172.16.5.1 Bcast:172.16.255.255 Mask:255.255.0.0
52 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
53 Base address:0x3000 Memory:d0120000-d0140000
54
55 lo Link encap:Local Loopback
56 inet addr:127.0.0.1 Mask:255.0.0.0
57 inet6 addr: ::1/128 Scope:Host
58 UP LOOPBACK RUNNING MTU:16436 Metric:1
59 RX packets:36487087 errors:0 dropped:0 overruns:0 frame:0
60 TX packets:36487087 errors:0 dropped:0 overruns:0 carrier:0
61 collisions:0 txqueuelen:0
62 RX bytes:3388870184 (3.1 GiB) TX bytes:3388870184 (3.1 GiB)
63
64 sit0 Link encap:IPv6-in-IPv4
65 NOARP MTU:1480 Metric:1
66 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
67 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
68 collisions:0 txqueuelen:0
69 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
70
71 tap0 Link encap:Ethernet HWaddr 16:db:17:fb:a1:4a
72 inet addr:10.254.0.1 Bcast:10.254.255.255 Mask:255.255.0.0
73 inet6 addr: fe80::14db:17ff:fefb:a14a/64 Scope:Link
74 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
75 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
76 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
77 collisions:0 txqueuelen:100
78 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
79
80 bond0 Link encap:Ethernet HWaddr 00:13:72:3c:bf:57
81 inet6 addr: fe80::213:72ff:fe3c:bf57/64 Scope:Link
82 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
83 RX packets:6930494799 errors:0 dropped:38584515 overruns:0 frame:17
84 TX packets:1678579772 errors:0 dropped:0 overruns:0 carrier:0
85 collisions:0 txqueuelen:0
86 RX bytes:10006832472618 (9.1 TiB) TX bytes:168031719693 (156.4 GiB)
87
88 bond0.123 Link encap:Ethernet HWaddr 00:13:72:3c:bf:57
89 inet addr:10.73.38.250 Bcast:10.73.38.255 Mask:255.255.255.0
90 inet6 addr: fe80::213:72ff:fe3c:bf57/64 Scope:Link
91 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
92 RX packets:12382478 errors:0 dropped:5777 overruns:0 frame:0
93 TX packets:564 errors:0 dropped:0 overruns:0 carrier:0
94 collisions:0 txqueuelen:0
95 RX bytes:586071334 (558.9 MiB) TX bytes:64180 (62.6 KiB)
96
97 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
98 inet addr:172.31.255.9 P-t-P:172.31.255.10 Mask:255.255.255.255
99 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
100 RX packets:9655 errors:0 dropped:0 overruns:0 frame:0
101 TX packets:15118 errors:0 dropped:0 overruns:0 carrier:0
102 collisions:0 txqueuelen:100
103 RX bytes:1760236 (1.6 MiB) TX bytes:14929984 (14.2 MiB)
104 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
105
106 On OpenBSD:
107 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
108 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33160
109 priority: 0
110 groups: lo
111 inet6 ::1 prefixlen 128
112 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
113 inet 127.0.0.1 netmask 0xff000000
114 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
115 lladdr 00:50:56:b3:00:15
116 priority: 0
117 groups: egress
118 media: Ethernet autoselect (1000baseT full-duplex,master)
119 status: active
120 inet6 XXXX::XXX:XXXX:XXXX:XX%em0 prefixlen 64 scopeid 0x1
121 inet6 XXXX:XXX:XXX:XX::XXX prefixlen 64
122 inet XXX.XXX.XXX.XXX netmask 0xffffffc0 broadcast XXX.XXX.XXX.XXX
123 enc0: flags=0<>
124 priority: 0
125 groups: enc
126 status: active
127 pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33160
128 priority: 0
129 groups: pflog
130 tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
131 priority: 0
132 groups: tun
133 status: active
134 inet 172.31.255.13 --> 172.31.255.14 netmask 0xffffffff
135 tun2: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1500
136 priority: 0
137 groups: tun
138 status: down
139 inet 172.31.253.1 --> 172.31.253.2 netmask 0xffffffff
140 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
141 priority: 0
142 groups: tun
143 status: active
144 inet 172.31.254.1 --> 172.31.254.2 netmask 0xffffffff
145 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
146
147 On Darwin:
148 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
149 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
150 inet6 ::1 prefixlen 128
151 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
152 inet 127.0.0.1 netmask 0xff000000
153 gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
154 stf0: flags=0<> mtu 1280
155 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
156 ether 34:15:9e:2e:8b:aa
157 inet6 fe80::3615:9eff:fe2e:8baa%en0 prefixlen 64 scopeid 0x4
158 inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255
159 media: autoselect (100baseTX <full-duplex,flow-control>)
160 status: active
161 en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
162 ether 7c:6d:62:a3:6f:57
163 inet6 fe80::7e6d:62ff:fea3:6f57%en1 prefixlen 64 scopeid 0x5
164 inet 192.168.2.105 netmask 0xffffff00 broadcast 192.168.2.255
165 media: autoselect
166 status: active
167 fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
168 lladdr 34:15:9e:ff:fe:2e:8b:aa
169 media: autoselect <full-duplex>
170 status: inactive
171 tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
172 inet 172.31.255.29 --> 172.31.255.30 netmask 0xffffffff
173 open (pid 24727)
174 tun1: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
175 inet 172.31.254.25 --> 172.31.254.26 netmask 0xffffffff
176 open (pid 24757)
177 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--